LCDGFX LCD display driver  1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays

#include <yesno.h>

Public Member Functions

 LcdGfxYesNo (const char *text, const NanoRect &rect={})
 
template<typename D >
void show (D &d)
 
void swapToYes ()
 
void swapToNo ()
 
bool isYes ()
 
template<typename D >
void updateSize (D &d)
 

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

◆ 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
ddisplay object

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: