![]() |
API
For Arduino developers
|
NexButton,subclass of NexTouch,provides simple methods to control button component. More...
#include <NexButton.h>
Public Member Functions | |
| NexButton (NexPid pid, NexCid cid, const char *name) | |
| Constructor,inherited NexTouch's constructor function. | |
| uint16_t | getText (char *buffer, uint16_t len) |
| Get text value from button component. More... | |
| bool | setText (const char *buffer) |
| Set text value of button component. More... | |
Public Member Functions inherited from NexTouch | |
| NexTouch (NexPid pid, NexCid cid, const char *name) | |
| Constructor of Nextouch. More... | |
Public Member Functions inherited from NexObject | |
| NexObject (NexPid pid, NexCid cid, const char *name) | |
| Constructor. More... | |
| NexPid | getObjPid (void) |
| Get page id. More... | |
| NexCid | getObjCid (void) |
| Get component id. More... | |
| const char * | getObjName (void) |
| Get component name. More... | |
| void | printObjInfo (void) |
| Print current object address,page id,component id, component name,pop event function address,push event function address. | |
NexButton,subclass of NexTouch,provides simple methods to control button component.
Definition at line 26 of file NexButton.h.
| uint16_t NexButton::getText | ( | char * | buffer, |
| uint16_t | len | ||
| ) |
Get text value from button component.
| buffer | - text buffer. |
| len | - text buffer length. |
Definition at line 35 of file NexButton.cpp.
| bool NexButton::setText | ( | const char * | buffer | ) |
Set text value of button component.
| buffer | - text buffer. |
| true | - success. |
| false | - failed. |
Definition at line 53 of file NexButton.cpp.
1.8.7