API
For Arduino developers
NexText.h
Go to the documentation of this file.
1 
16 #ifndef __NEXTEXT_H__
17 #define __NEXTEXT_H__
18 #ifdef __cplusplus
19 #include "NexTouch.h"
20 
25 class NexText: public NexTouch
26 {
27 public: /* methods */
28  NexText(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  uint16_t getText(char *buffer, uint16_t len);
34  bool setText(const char *buffer);
35 };
36 
37 #endif /* #ifdef __cplusplus */
38 #endif /* #ifndef __NEXTEXT_H__ */
bool setText(const char *buffer)
Set the value of text.
Definition: NexText.cpp:53
void detachPop(void)
Unload text pop callback function.
Definition: NexText.cpp:79
uint16_t getText(char *buffer, uint16_t len)
Get the value of text.
Definition: NexText.cpp:35
API of Nextion.
NexText(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL)
Constructor,inherited NexTouch's constructor function.
Definition: NexText.cpp:22
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register text pop callback function.
Definition: NexText.cpp:70
Root Class of Nextion Components.
Definition: NexTouch.h:57
NexText,subclass of NexTouch,provides simple methods to control text component.
Definition: NexText.h:25