Nextion User Manual
For Arduino developers
|
Father class of the components with touch events. More...
#include <NexTouch.h>
Public Member Functions | |
NexTouch (uint8_t pid, uint8_t cid, const char *name) | |
Constructor. More... | |
void | attachPush (NexTouchEventCb push, void *ptr=NULL) |
Attach an callback function of push touch event. More... | |
void | detachPush (void) |
Detach an callback function. More... | |
void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
Attach an callback function of pop touch event. More... | |
void | detachPop (void) |
Detach an callback function. More... | |
Public Member Functions inherited from NexObject | |
NexObject (uint8_t pid, uint8_t cid, const char *name) | |
Constructor. More... | |
void | printObjInfo (void) |
Print current object'address, page id, component id and name. More... | |
Father class of the components with touch events.
Derives from NexObject and provides methods allowing user to attach (or detach) a callback function called when push(or pop) touch event occurs.
Definition at line 53 of file NexTouch.h.
NexTouch::NexTouch | ( | uint8_t | pid, |
uint8_t | cid, | ||
const char * | name | ||
) |
Constructor.
pid | - page id. |
cid | - component id. |
name | - pointer to an unique name in range of all components. |
Definition at line 18 of file NexTouch.cpp.
void NexTouch::attachPop | ( | NexTouchEventCb | pop, |
void * | ptr = NULL |
||
) |
Attach an callback function of pop touch event.
pop | - callback called with ptr when a pop touch event occurs. |
ptr | - parameter passed into pop[default:NULL]. |
Definition at line 39 of file NexTouch.cpp.
void NexTouch::attachPush | ( | NexTouchEventCb | push, |
void * | ptr = NULL |
||
) |
Attach an callback function of push touch event.
push | - callback called with ptr when a push touch event occurs. |
ptr | - parameter passed into push[default:NULL]. |
Definition at line 27 of file NexTouch.cpp.
void NexTouch::detachPop | ( | void | ) |
void NexTouch::detachPush | ( | void | ) |