API
For Arduino developers
Public Member Functions | List of all members
NexSlider Class Reference

NexSlider,subclass of NexTouch,provides simple methods to control slider component. More...

#include <NexSlider.h>

Inheritance diagram for NexSlider:
NexTouch

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...
 

Detailed Description

NexSlider,subclass of NexTouch,provides simple methods to control slider component.

Examples:
CompSlider.ino.

Definition at line 26 of file NexSlider.h.

Member Function Documentation

void NexSlider::attachPop ( NexTouchEventCb  pop,
void *  ptr = NULL 
)

Register slider pop callback function.

Parameters
pop- the pointer to picture pop callback function.
ptr- the parameter to be transmitted to picture pop callback function.
Examples:
CompSlider.ino.

Definition at line 73 of file NexSlider.cpp.

bool NexSlider::getValue ( uint32_t *  number)

Get the value of slider.

Parameters
number- an output parameter to save the value of slider.
Return values
true- success.
false- failed.
Examples:
CompSlider.ino.

Definition at line 36 of file NexSlider.cpp.

bool NexSlider::setValue ( uint32_t  number)

Set the value of slider.

Parameters
number- the value of slider.
Return values
true- success.
false- failed.

Definition at line 53 of file NexSlider.cpp.


The documentation for this class was generated from the following files: