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

NexProgressBar,subclass of NexTouch,provides simple methods to control progress bar component. More...

#include <NexProgressBar.h>

Inheritance diagram for NexProgressBar:
NexTouch

Public Member Functions

 NexProgressBar (NexPid pid, NexCid cid, char *name)
 Constructor,inherited NexTouch's constructor function.
 
bool getValue (uint32_t *number)
 Get the value of progress bar. More...
 
bool setValue (uint32_t number)
 Set the value of progress bar. 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

NexProgressBar,subclass of NexTouch,provides simple methods to control progress bar component.

Examples:
CompProgressBar.ino.

Definition at line 26 of file NexProgressBar.h.

Member Function Documentation

bool NexProgressBar::getValue ( uint32_t *  number)

Get the value of progress bar.

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

Definition at line 35 of file NexProgressBar.cpp.

bool NexProgressBar::setValue ( uint32_t  number)

Set the value of progress bar.

Parameters
number- the value of progress bar.
Return values
true- success.
false- failed.
Examples:
CompProgressBar.ino.

Definition at line 52 of file NexProgressBar.cpp.


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