![]() |
Software Reference Manual 9.2.2
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
#include <hV_GUI.h>
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. More... | |
| void | draw (fsmGUI_e fsm=fsmReleased) |
| Draw the button. More... | |
| bool | check (uint8_t mode=checkNormal) |
| Check button is pressed. More... | |
Public Member Functions inherited from Text | |
| 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... | |
| bool Button::check | ( | uint8_t | mode = checkNormal | ) |
Check button is pressed.
| mode | default = checkNormal waits for release, checkInstant = element is activated by press only |
| void Button::draw | ( | fsmGUI_e | fsm = fsmReleased | ) |
Draw the button.
| fsm | state fsm = fsmReleased or fsmTouched |
| 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.
| x0 | point coordinate, x-axis |
| y0 | point coordinate, y-axis |
| dx | length, x-axis |
| dy | height, y-axis |
| text0 | text |
| size0 | size for text, default = 0 |
More: Coordinate, Colour