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 <button.h>
Public Member Functions | |
LcdGfxButton (const char *text, const NanoRect &rect) | |
template<typename D > | |
void | show (D &d) |
void | setFocus (bool focus) |
bool | isActive () |
void | setRect (const NanoRect &rect) |
const NanoPoint | getSize () |
const NanoRect & | getRect () const |
template<typename D > | |
void | updateSize (D &d) |
LcdGfxButton::LcdGfxButton | ( | const char * | text, |
const NanoRect & | rect | ||
) |
Creates button object with the provided text.
text | button text |
rect | screen area to use for button |
|
inline |
const NanoPoint LcdGfxButton::getSize | ( | ) |
Returns size of button in pixels
bool LcdGfxButton::isActive | ( | ) |
returns true if button in focus
void LcdGfxButton::setFocus | ( | bool | focus | ) |
Sets or removes focus on button. After this method call show() to update button state on the display.
focus | focus state for the button |
void LcdGfxButton::setRect | ( | const NanoRect & | rect | ) |
Sets new area for the button. Use show() method to update button state on the display.
rect | new button area |
|
inline |
|
inline |