#include <NexTouch.h>
Public Member Functions | |
NexTouch (uint8_t pid, uint8_t cid, const char *name) | |
void | attachPush (NexTouchEventCb push, void *ptr=NULL) |
void | detachPush (void) |
void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
void | detachPop (void) |
Public Member Functions inherited from NexObject | |
NexObject (uint8_t pid, uint8_t cid, const char *name) | |
void | printObjInfo (void) |
Static Public Member Functions | |
static void | iterate (NexTouch **list, uint8_t pid, uint8_t cid, int32_t event) |
Additional Inherited Members | |
Protected Member Functions inherited from NexObject | |
uint8_t | getObjPid (void) |
uint8_t | getObjCid (void) |
const char * | getObjName (void) |
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.
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. |
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]. |
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]. |
void NexTouch::detachPop | ( | void | ) |
Detach an callback function.
void NexTouch::detachPush | ( | void | ) |
Detach an callback function.