NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
INextionBooleanValued Class Reference

Interface for widgets that store a boolean value. More...

#include <INextionBooleanValued.h>

Inheritance diagram for INextionBooleanValued:
Inheritance graph
[legend]
Collaboration diagram for INextionBooleanValued:
Collaboration graph
[legend]

Public Member Functions

 INextionBooleanValued (Nextion &nex, uint8_t page, uint8_t component, const char *name)
 Create a new widget adapter. More...
 
bool isActive ()
 Gets the state of the boolean value of the control. More...
 
bool setActive (bool active)
 Sets the state of the boolean value. More...
 

Detailed Description

Interface for widgets that store a boolean value.

Assumes that the boolean value is a property named "val".

Constructor & Destructor Documentation

INextionBooleanValued::INextionBooleanValued ( Nextion nex,
uint8_t  page,
uint8_t  component,
const char *  name 
)
inline

Create a new widget adapter.

Parameters
nexReference to the Nextion driver
pageID of page this widget is on
componentComponent ID of this widget
nameName of this widget

Member Function Documentation

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
activeState
Returns
True if successful

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