#include <TextBox.h>
|
| | TextBox (Canvas &DestCanvas, uint16_t x, uint16_t y, uint16_t textWidth, uint16_t unitsWidth, uint16_t height, uint16_t baseline, GrFont *TextFont, GrFont *UnitsFont) |
| | Generic Constructor.
|
| |
| | TextBox (Canvas &DestCanvas, const ConfigTextBox_t *config) |
| | Simplified construct that accepts one of the pre-defined configuration structures.
|
| |
| void | begin (void) |
| | Initiatizes a specific TectBoxUnits instance.
|
| |
◆ TextBox() [1/2]
| TextBox::TextBox |
( |
Canvas & | DestCanvas, |
|
|
uint16_t | x, |
|
|
uint16_t | y, |
|
|
uint16_t | textWidth, |
|
|
uint16_t | unitsWidth, |
|
|
uint16_t | height, |
|
|
uint16_t | baseline, |
|
|
GrFont * | TextFont, |
|
|
GrFont * | UnitsFont ) |
|
inline |
Generic Constructor.
- Note
- A call to TextBox::begin() must be completed after this object is instantiated
- Parameters
-
| [in] | DestCanvas | Canvas that will 'display' the TextBox |
| [in] | x | UL x-position of the TextBox within Canvas |
| [in] | y | UL y-position of the TextBox within Canvas |
| [in] | textWidth | Width of the "Value" TextBox in pixels |
| [in] | unitsWidth | Width of Text Box holding the "Units" |
| [in] | height | Height of the TextBox in pixels |
| [in] | baseline | Position of the font's baseline within the TextBox |
| [in] | TextFont | GrFont object for "Value" |
| [in] | UnitsFont | GrFont object for "Units" |
◆ TextBox() [2/2]
Simplified construct that accepts one of the pre-defined configuration structures.
- Note
- A call to TextBox::begin() must be completed after this object is instantiated
- Parameters
-
| [in] | DestCanvas | Canvas that will 'display' the TextBox |
| [in] | config | Configuration information |
◆ begin()
| void TextBox::begin |
( |
void | | ) |
|
|
inline |
Initiatizes a specific TectBoxUnits instance.
- Note
- This medhod should be called immediately after an object is instantiated. This method configures the internal data structures used by this object.
- Parameters
- None.
◆ initializeFonts()
| void TextBox::initializeFonts |
( |
void | | ) |
|
|
static |
Iniitlizes the fonts and configuration data used by TextBox.
- Note
- This method must be called before instantiating any TextBox objects
- Parameters
- None.
◆ config
Data structure containing a collection of TextBox configuration.
◆ HEIGHT
| const uint16_t TextBox::HEIGHT |
◆ Units
Text box containing the units to be displayed.
◆ Value
Text box containing the value to be displayed.
◆ WIDTH
| const uint16_t TextBox::WIDTH |
| const uint16_t TextBox::X |
| const uint16_t TextBox::Y |
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/include/TextBox_Config.h