17 #ifndef __NEXTOUCH_H__
18 #define __NEXTOUCH_H__
32 #define NEX_EVENT_PUSH (0x01)
37 #define NEX_EVENT_POP (0x00)
56 static void iterate(
NexTouch **list, uint8_t pid, uint8_t cid, int32_t event);
63 NexTouch(uint8_t pid, uint8_t cid,
const char *name);
void detachPop(void)
Detach an callback function.
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Attach an callback function of pop touch event.
void(* NexTouchEventCb)(void *ptr)
Type of callback funciton when an touch event occurs.
void detachPush(void)
Detach an callback function.
NexTouch(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Root class of all Nextion components.
The definition of class NexObject.
Father class of the components with touch events.
Options for user can be found here.
void attachPush(NexTouchEventCb push, void *ptr=NULL)
Attach an callback function of push touch event.