Abstract class for all UI widgets.
More...
#include <INextionWidget.h>
|
bool | sendCommand (char *commandStr, bool checkComplete=true) |
|
Abstract class for all UI widgets.
Widget objects act as a adapter/API for the widgets defined in the Nextion Editor software.
INextionWidget::INextionWidget |
( |
Nextion & |
nex, |
|
|
uint8_t |
page, |
|
|
uint8_t |
component, |
|
|
const char * |
name |
|
) |
| |
Create a new widget adapter.
- Parameters
-
nex | Reference to the Nextion driver |
page | ID of page this widget is on |
component | Component ID of this widget |
name | Name of this widget |
uint8_t INextionWidget::getComponentID |
( |
| ) |
|
Gets the component ID of this widget.
- Returns
- Component ID
uint32_t INextionWidget::getNumberProperty |
( |
char * |
propertyName | ) |
|
Gets the value of a numerical property of this widget.
- Parameters
-
propertyName | Name of the property |
- Returns
- Value (may also return 0 in case of error)
uint8_t INextionWidget::getPageID |
( |
| ) |
|
Gets the ID of the page this widget resides on.
- Returns
- Page ID
size_t INextionWidget::getStringProperty |
( |
char * |
propertyName, |
|
|
char * |
value, |
|
|
size_t |
len |
|
) |
| |
Gets the value of a string property of this widget.
- Parameters
-
propertyName | Name of the property |
value | Pointer to char array to store result in |
len | Maximum length of value |
- Returns
- Actual length of value
bool INextionWidget::setNumberProperty |
( |
char * |
propertyName, |
|
|
uint32_t |
value |
|
) |
| |
Sets the value of a numerical property of this widget.
- Parameters
-
propertyName | Name of the property |
value | Value |
- Returns
- True if successful
bool INextionWidget::setStringProperty |
( |
char * |
propertyName, |
|
|
char * |
value |
|
) |
| |
Sets the value of a string property of this widget.
- Parameters
-
propertyName | Name of the property |
value | Value |
- Returns
- True if successful
The documentation for this class was generated from the following files: