![]() |
API
For Arduino developers
|
NexSlider,subclass of NexTouch,provides simple methods to control slider component. More...
#include <NexSlider.h>
Public Member Functions | |
| NexSlider (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL) | |
| Constructor,inherited NexTouch's constructor function. | |
| void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
| Register slider pop callback function. More... | |
| void | detachPop (void) |
| Unload slider pop callback function. | |
| bool | getValue (uint32_t *number) |
| Get the value of slider. More... | |
| bool | setValue (uint32_t number) |
| Set the value of slider. More... | |
Public Member Functions inherited from NexTouch | |
| NexTouch (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL) | |
| Constructor of Nextouch. More... | |
| NexPid | getPid (void) |
| Get page id. More... | |
| NexCid | getCid (void) |
| Get component id. More... | |
| const char * | getObjName (void) |
| Get component name. More... | |
NexSlider,subclass of NexTouch,provides simple methods to control slider component.
Definition at line 26 of file NexSlider.h.
| void NexSlider::attachPop | ( | NexTouchEventCb | pop, |
| void * | ptr = NULL |
||
| ) |
Register slider pop callback function.
| pop | - the pointer to picture pop callback function. |
| ptr | - the parameter to be transmitted to picture pop callback function. |
Definition at line 73 of file NexSlider.cpp.
| bool NexSlider::getValue | ( | uint32_t * | number | ) |
Get the value of slider.
| number | - an output parameter to save the value of slider. |
| true | - success. |
| false | - failed. |
Definition at line 36 of file NexSlider.cpp.
| bool NexSlider::setValue | ( | uint32_t | number | ) |
Set the value of slider.
| number | - the value of slider. |
| true | - success. |
| false | - failed. |
Definition at line 53 of file NexSlider.cpp.
1.8.7