LCDGFX LCD display driver  1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI

Class implements YesNo dialog for lcdgfx library. More...

#include <yesno.h>

Public Member Functions

 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.
 

Detailed Description

Class implements YesNo dialog for lcdgfx library.

Definition at line 45 of file yesno.h.

Constructor & Destructor Documentation

◆ LcdGfxYesNo()

LcdGfxYesNo::LcdGfxYesNo ( const char *  text,
const NanoRect rect = {} 
)
explicit

Creates yes/no dialog with the provided text.

Parameters
textyes/no dialog text
rectscreen area to use for button or 0 if to use full screen area

Member Function Documentation

◆ show()

template<typename D >
void LcdGfxYesNo::show ( D &  d)
inline

Shows button on the display.

Parameters
ddisplay object

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: