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