|
NeoNextion
Arduino library for the Nextion displays.
|
Interface for widgets that can have their fonts styled. More...
#include <INextionFontStyleable.h>


Public Member Functions | |
| INextionFontStyleable (Nextion &nex, uint8_t page, uint8_t component, const char *name) | |
| Create a new widget adapter. More... | |
| bool | setFont (uint8_t id, bool refresh=true) |
| Sets the active font for the text. More... | |
| uint8_t | getFont () |
| Gets the active font for the text. More... | |
| bool | setHAlignment (NextionFontAlignment align, bool refresh=true) |
| Sets the horizontal alignment of the text. More... | |
| NextionFontAlignment | getHAlignment () |
| Gets the horizontal alignment of the text. More... | |
| bool | setVAlignment (NextionFontAlignment align, bool refresh=true) |
| Sets the vertical alignment of the text. More... | |
| NextionFontAlignment | getVAlignment () |
| Gets the vertical alignment of the text. More... | |
| bool | afterSet (bool result, bool refresh) |
| Handles refreshing the page after a style has been changed. More... | |
Public Member Functions inherited from INextionWidget | |
| INextionWidget (Nextion &nex, uint8_t page, uint8_t component, const char *name) | |
| Create a new widget adapter. More... | |
| uint8_t | getPageID () |
| Gets the ID of the page this widget resides on. More... | |
| uint8_t | getComponentID () |
| Gets the component ID of this widget. More... | |
| bool | setNumberProperty (char *propertyName, uint32_t value) |
| Sets the value of a numerical property of this widget. More... | |
| uint32_t | getNumberProperty (char *propertyName) |
| Gets the value of a numerical property of this widget. More... | |
| bool | setStringProperty (char *propertyName, char *value) |
| Sets the value of a string property of this widget. More... | |
| size_t | getStringProperty (char *propertyName, char *value, size_t len) |
| Gets the value of a string property of this widget. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from INextionWidget | |
| bool | sendCommand (char *commandStr, bool checkComplete=true) |
Protected Attributes inherited from INextionWidget | |
| Nextion & | m_nextion |
| Reference to the Nextion driver. | |
| uint8_t | m_pageID |
| ID of page this widget is on. | |
| uint8_t | m_componentID |
| Component ID of this widget. | |
| const char * | m_name |
| Name of this widget. | |
Interface for widgets that can have their fonts styled.
| INextionFontStyleable::INextionFontStyleable | ( | Nextion & | nex, |
| uint8_t | page, | ||
| uint8_t | component, | ||
| const char * | name | ||
| ) |
Create a new widget adapter.
| 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 INextionFontStyleable::afterSet | ( | bool | result, |
| bool | refresh | ||
| ) |
Handles refreshing the page after a style has been changed.
| result | Success of style change |
| refresh | If the widget should be refreshed |
| uint8_t INextionFontStyleable::getFont | ( | ) |
Gets the active font for the text.
| NextionFontAlignment INextionFontStyleable::getHAlignment | ( | ) |
Gets the horizontal alignment of the text.
| NextionFontAlignment INextionFontStyleable::getVAlignment | ( | ) |
Gets the vertical alignment of the text.
| bool INextionFontStyleable::setFont | ( | uint8_t | id, |
| bool | refresh = true |
||
| ) |
Sets the active font for the text.
| id | Font ID |
| refresh | If the widget should be refreshed |
| bool INextionFontStyleable::setHAlignment | ( | NextionFontAlignment | align, |
| bool | refresh = true |
||
| ) |
Sets the horizontal alignment of the text.
| align | Alignment |
| refresh | If the widget should be refreshed |
| bool INextionFontStyleable::setVAlignment | ( | NextionFontAlignment | align, |
| bool | refresh = true |
||
| ) |
Sets the vertical alignment of the text.
| align | Alignment |
| refresh | If the widget should be refreshed |
1.8.6