#include <TextBox.h>
|
| const uint16_t | X |
| | UL x position of the text box within _DestCanvas.
|
| |
| const uint16_t | Y |
| | UL y position of the text box within _DestCanvas.
|
| |
| const uint16_t | WIDTH |
| | Width of the text box within _DestCanvas.
|
| |
| const uint16_t | HEIGHT |
| | Height of the text box within _DestCanvas.
|
| |
◆ TextAlign
Enumeration used to specify text alignment within the DynamicText.
| Enumerator |
|---|
| LEFT | |
| CENTER | |
| RIGHT | |
◆ DynamicText()
| DynamicText::DynamicText |
( |
Canvas & | DestCanvas, |
|
|
uint16_t | x, |
|
|
uint16_t | y, |
|
|
uint16_t | width, |
|
|
uint16_t | height, |
|
|
uint16_t | baseline, |
|
|
GrFont * | Font, |
|
|
TextAlign | align = CENTER ) |
|
inline |
◆ align()
| virtual void DynamicText::align |
( |
TextAlign | align | ) |
|
|
inlinevirtual |
◆ begin()
| void DynamicText::begin |
( |
void | | ) |
|
|
virtual |
◆ initializeFonts()
| static void DynamicText::initializeFonts |
( |
void | | ) |
|
|
static |
◆ update() [1/2]
| void DynamicText::update |
( |
const char * | text, |
|
|
uint16_t | textBuffSize ) |
Updates the text inside a DynamicText.
- Parameters
-
| [in] | text | Null-terminated character array containing the text |
| [in] | textBuffSize | Number of characters in text |
◆ update() [2/2]
| void DynamicText::update |
( |
int | value | ) |
|
Updates the numerical value (int) inside a DynamicText.
- Parameters
-
◆ HEIGHT
| const uint16_t DynamicText::HEIGHT |
Height of the text box within _DestCanvas.
◆ WIDTH
| const uint16_t DynamicText::WIDTH |
Width of the text box within _DestCanvas.
| const uint16_t DynamicText::X |
UL x position of the text box within _DestCanvas.
| const uint16_t DynamicText::Y |
UL y position of the text box within _DestCanvas.
The documentation for this class was generated from the following files:
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/TextBox.h
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/TextBox.cpp