Text GUI element.
More...
#include <hV_GUI.h>
|
| | Text (GUI *gui) |
| | Constructor.
|
| void | dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint8_t size=0) |
| | Define a text box, vector coordinates.
|
| void | draw (STRING_CONST_TYPE text) |
| | Display the text.
|
Text GUI element.
Text displays a text with format options
◆ Text()
Constructor.
- Parameters
-
| gui | &gui to which the element belongs |
◆ dDefine()
| void Text::dDefine |
( |
uint16_t | x0, |
|
|
uint16_t | y0, |
|
|
uint16_t | dx, |
|
|
uint16_t | dy, |
|
|
uint8_t | size = 0 ) |
Define a text box, vector coordinates.
- Parameters
-
| x0 | point coordinate, x-axis |
| y0 | point coordinate, y-axis |
| dx | length, x-axis |
| dy | height, y-axis |
| size | size of the font, default = 0 = small, optional |
More: Coordinate, Colour
◆ draw()
| void Text::draw |
( |
STRING_CONST_TYPE | text | ) |
|
Display the text.
- Parameters
-
| text | text to be displayed, UTF-8 coded |
- Warning
- Required UTF-8 coded
The documentation for this class was generated from the following file: