Nextion User Manual
For Arduino developers
NexProgressBar Class Reference

NexProgressBar component. More...

#include <NexProgressBar.h>

Inheritance diagram for NexProgressBar:
Collaboration diagram for NexProgressBar:

Public Member Functions

 NexProgressBar (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
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 NexObject
 NexObject (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
void printObjInfo (void)
 Print current object'address, page id, component id and name. More...
 

Detailed Description

NexProgressBar component.

Examples:
CompProgressBar.ino.

Definition at line 30 of file NexProgressBar.h.

Constructor & Destructor Documentation

NexProgressBar::NexProgressBar ( uint8_t  pid,
uint8_t  cid,
const char *  name 
)

Constructor.

Parameters
pid- page id.
cid- component id.
name- pointer to an unique name in range of all components.

Definition at line 18 of file NexProgressBar.cpp.

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 23 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 32 of file NexProgressBar.cpp.


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