Software Reference Manual 9.2.2
Library for Pervasive Displays e-paper screens, extension boards and development kits
Text Class Reference

Text GUI element. More...

#include <hV_GUI.h>

Inheritance diagram for Text:
[legend]

Public Member Functions

 Text (GUI *gui)
 Constructor. More...
 
void dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint8_t size=0)
 Define a text box, vector coordinates. More...
 
void draw (STRING_CONST_TYPE text)
 Display the text. More...
 

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

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