Interface for widgets that store a boolean value.
More...
#include <INextionBooleanValued.h>
Interface for widgets that store a boolean value.
Assumes that the boolean value is a property named "val".
INextionBooleanValued::INextionBooleanValued |
( |
Nextion & |
nex, |
|
|
uint8_t |
page, |
|
|
uint8_t |
component, |
|
|
const char * |
name |
|
) |
| |
|
inline |
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 |
bool INextionBooleanValued::isActive |
( |
| ) |
|
|
inline |
Gets the state of the boolean value of the control.
- Returns
- True if boolean state is active
bool INextionBooleanValued::setActive |
( |
bool |
active | ) |
|
|
inline |
Sets the state of the boolean value.
- Parameters
-
- Returns
- True if successful
The documentation for this class was generated from the following file: