Pervasive Displays Library Suite - Basic edition 8.0.8
Library for Pervasive Displays e-paper screens and EXT3 extension board
|
#include <hV_GUI.h>
Public Member Functions | |
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 text) |
Display the text. | |
Text.
Display a text with format options
Text::Text | ( | GUI * | gui | ) |
Constructor.
gui | &gui to which the element belongs |
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.
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
void Text::draw | ( | String | text | ) |
Display the text.
text | text to be displayed |