#include <yesno.h>
Class implements YesNo dialog for lcdgfx library
Definition at line 45 of file yesno.h.
◆ LcdGfxYesNo()
LcdGfxYesNo::LcdGfxYesNo |
( |
const char * |
text, |
|
|
const NanoRect & |
rect = {} |
|
) |
| |
|
explicit |
Creates yes/no dialog with the provided text.
- Parameters
-
text | yes/no dialog text |
rect | screen area to use for button or 0 if to use full screen area |
◆ isYes()
bool LcdGfxYesNo::isYes |
( |
| ) |
|
Returns true if yes button is active
◆ show()
template<typename D >
void LcdGfxYesNo::show |
( |
D & |
d | ) |
|
|
inline |
Shows button on the display.
- Parameters
-
Definition at line 61 of file yesno.h.
◆ swapToNo()
void LcdGfxYesNo::swapToNo |
( |
| ) |
|
Changes selection to No Redraw element using show() method.
◆ swapToYes()
void LcdGfxYesNo::swapToYes |
( |
| ) |
|
Changes selection to Yes. Redraw element using show() method.
◆ updateSize()
template<typename D >
void LcdGfxYesNo::updateSize |
( |
D & |
d | ) |
|
|
inline |
Calculates size for GUI component if it was not set before
Definition at line 93 of file yesno.h.
The documentation for this class was generated from the following file: