Software Reference Manual 10.0.2
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
Text Class Reference

Text GUI element. More...

#include <hV_GUI.h>

Inheritance diagram for Text:
[legend]

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_CONST_TYPE text)
 Display the text.

Detailed Description

Text GUI element.

Text displays a text with format options

Constructor & Destructor Documentation

◆ Text()

Text::Text ( GUI * gui)

Constructor.

Parameters
gui&gui to which the element belongs

Member Function Documentation

◆ 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
x0point coordinate, x-axis
y0point coordinate, y-axis
dxlength, x-axis
dyheight, y-axis
sizesize of the font, default = 0 = small, optional


More: Coordinate, Colour

◆ draw()

void Text::draw ( STRING_CONST_TYPE text)

Display the text.

Parameters
texttext to be displayed, UTF-8 coded
Warning
Required UTF-8 coded

The documentation for this class was generated from the following file: