API
For Arduino developers
NexPicture.h
Go to the documentation of this file.
1 
16 #ifndef __NEXPICTURE_H__
17 #define __NEXPICTURE_H__
18 #ifdef __cplusplus
19 #include "NexTouch.h"
20 
25 class NexPicture: public NexTouch
26 {
27 public: /* methods */
28  NexPicture(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop = NULL, void *pop_ptr = NULL);
29 
30  void attachPop(NexTouchEventCb pop, void *ptr = NULL);
31  void detachPop(void);
32 
33  bool getPic(uint32_t *number);
34  bool setPic(uint32_t number);
35 };
36 
37 #endif /* #ifdef __cplusplus */
38 #endif /* #ifndef __NEXPICTURE_H__ */
void detachPop(void)
Unload picture pop callback function.
Definition: NexPicture.cpp:81
bool setPic(uint32_t number)
Set picture's number.
Definition: NexPicture.cpp:52
NexPicture(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL)
Constructor,inherited NexTouch's constructor function.
Definition: NexPicture.cpp:22
NexPicture,subclass of NexTouch,provides simple methods to control picture component.
Definition: NexPicture.h:25
API of Nextion.
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register picture pop callback function.
Definition: NexPicture.cpp:72
bool getPic(uint32_t *number)
Get picture's number.
Definition: NexPicture.cpp:35
Root Class of Nextion Components.
Definition: NexTouch.h:57