|
UiUiUi
A user interface library for micro controller sketches based on U8g2
|
A widget drawing a checkerboard into its space. More...
#include <UICheckerboard.h>


Public Member Functions | |
| UICheckerboard (UISize preferredSize=UISize(), UIWidget *next=nullptr) | |
| Create a checkerboard widget with the given preferred size and a potential successor. | |
| UICheckerboard (UIWidget *next) | |
| Create a checkerboard widget with the given successor. | |
| UIArea * | render (U8G2 *display, bool force) |
| Render the checkerboard pattern. More... | |
Public Member Functions inherited from UIWidget | |
| UISize | preferredSize (U8G2 *display) |
| Return the preferred size of this widget, will be called before a call to layout(). More... | |
| virtual void | layout (U8G2 *display, UIArea *area) |
| Layout widget in the given rectanglar area, will be called before first call to render(). More... | |
| virtual UIArea * | render (U8G2 *display, bool force)=0 |
| Render component in the space given in layout(). More... | |
| virtual void | setParent (UIParent *parent) |
| Set the parent widget group (if it exists). More... | |
Protected Member Functions | |
| void | computePreferredSize (U8G2 *display, UISize *preferredSize) |
| Generate the preferred size from the font size. More... | |
Protected Member Functions inherited from UIWidget | |
| UIWidget (UIWidget *next=nullptr) | |
| Initialize this widget and potentially set its successor. | |
| void | clearBox (U8G2 *display, UIArea *dimm) |
| Clear the given area. | |
| void | clearFull (U8G2 *display) |
| Clear the full area of this widget. | |
| void | clip (U8G2 *display) |
| Set U8g2's clip window to the area of this widget, should be called from render(). | |
| virtual void | computePreferredSize (U8G2 *display, UISize *preferredSize)=0 |
| Store preferred size of this widget into the preferredSize reference. More... | |
| void | signalNeedsRendering () |
| Called internally: Signals to parent that this widget needs to be rendered. | |
Additional Inherited Members | |
Public Attributes inherited from UIWidget | |
| UIWidget * | next |
| Pointer to the next widget on the same level. | |
Protected Attributes inherited from UIWidget | |
| UIArea | dim |
| Actual area of this widget, set in layout(). | |
| UIParent * | parent |
| Reference to the group this widget is connected to. | |
A widget drawing a checkerboard into its space.
|
protectedvirtual |
Generate the preferred size from the font size.
Implements UIWidget.
|
virtual |
Render the checkerboard pattern.
Implements UIWidget.