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

Button. More...

#include <hV_GUI.h>

Inheritance diagram for Button:
[legend]
Collaboration diagram for Button:
[legend]

Public Member Functions

 Button (GUI *gui)
 Constructor param gui &gui to which the element belongs.
void dStringDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, STRING_CONST_TYPE text0, uint8_t size0=0)
 Define button, vector coordinates.
void draw (fsmGUI_e fsm=fsmReleased)
 Draw the button.
bool check (uint8_t mode=checkNormal)
 Check button is pressed.
Public Member Functions inherited from Text
 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

Button.

Button is an active text

Member Function Documentation

◆ check()

bool Button::check ( uint8_t mode = checkNormal)

Check button is pressed.

Parameters
modedefault = checkNormal waits for release, checkInstant = element is activated by press only
Returns
true if button pressed

◆ draw()

void Button::draw ( fsmGUI_e fsm = fsmReleased)

Draw the button.

Parameters
fsmstate
fsm = fsmReleased or fsmTouched

◆ dStringDefine()

void Button::dStringDefine ( uint16_t x0,
uint16_t y0,
uint16_t dx,
uint16_t dy,
STRING_CONST_TYPE text0,
uint8_t size0 = 0 )

Define button, vector coordinates.

Parameters
x0point coordinate, x-axis
y0point coordinate, y-axis
dxlength, x-axis
dyheight, y-axis
text0text, UTF-8 coded
size0size for text, default = 0
Warning
Required UTF-8 coded


More: Coordinate, Colour


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