Class implements button object for lcdgfx library.
More...
#include <button.h>
Class implements button object for lcdgfx library.
Definition at line 44 of file button.h.
◆ LcdGfxButton()
| LcdGfxButton::LcdGfxButton |
( |
const char * |
text, |
|
|
const NanoRect & |
rect |
|
) |
| |
Creates button object with the provided text.
- Parameters
-
| text | button text |
| rect | screen area to use for button |
◆ setFocus()
| void LcdGfxButton::setFocus |
( |
bool |
focus | ) |
|
Sets or removes focus on button.
After this method call show() to update button state on the display.
- Parameters
-
| focus | focus state for the button |
◆ setRect()
| void LcdGfxButton::setRect |
( |
const NanoRect & |
rect | ) |
|
Sets new area for the button.
Use show() method to update button state on the display.
- Parameters
-
◆ show()
template<typename D >
| void LcdGfxButton::show |
( |
D & |
d | ) |
|
|
inline |
Shows button on the display.
- Parameters
-
Definition at line 60 of file button.h.
The documentation for this class was generated from the following file: