API
For Arduino developers
NexHotspot.h
Go to the documentation of this file.
1 
16 #ifndef __NEXHOTSPOT_H__
17 #define __NEXHOTSPOT_H__
18 #ifdef __cplusplus
19 #include "NexTouch.h"
20 
25 class NexHotspot: public NexTouch
26 {
27 public: /* methods */
28  NexHotspot(NexPid pid, NexCid cid, char *name,
29  NexTouchEventCb pop = NULL, void *pop_ptr = NULL,
30  NexTouchEventCb push = NULL, void *push_ptr = NULL);
31 
32  void attachPush(NexTouchEventCb push, void *ptr = NULL);
33  void detachPush(void);
34  void attachPop(NexTouchEventCb pop, void *ptr = NULL);
35  void detachPop(void);
36 
37 };
38 
39 #endif /* #ifdef __cplusplus */
40 #endif /* #ifndef __NEXHOTSPOT_H__ */
void detachPop(void)
Unload hotsopt pop callback function.
Definition: NexHotspot.cpp:64
void detachPush(void)
Unload hotsopt push callback function.
Definition: NexHotspot.cpp:44
API of Nextion.
NexHotspot(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL)
Constructor,inherited NexTouch's constructor function.
Definition: NexHotspot.cpp:22
NexHotspot,subclass of NexTouch,provides simple methods to control hotspot component.
Definition: NexHotspot.h:25
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register hotspot pop callback function.
Definition: NexHotspot.cpp:55
Root Class of Nextion Components.
Definition: NexTouch.h:57
void attachPush(NexTouchEventCb push, void *ptr=NULL)
Register hotspot push callback function.
Definition: NexHotspot.cpp:35