75 void setUpdateTiles(uint16_t maxFirstUpdateTiles=0xffff,uint16_t maxFollowUpdateTiles=0xffff);
84 void enable(U8G2* display,
bool render=
false,
bool force=
false);
135 void render(U8G2* display,
bool force=
false);
157 bool renderingNeeded;
160 uint16_t maxFirstUpdateTiles;
163 uint16_t maxFollowUpdateTiles;
169 UIArea furtherUpdateTiles;
177 void doUpdateTiles(U8G2 *display,uint16_t maxUpdateTiles);
185 void computeTileAreaFromPixelArea(U8G2 *display,
UIArea * pixelArea,
UIArea * tileArea);
Area consisting of left, top, right, and bottom value.
Definition: UIArea.h:20
Representation of the display onto which UiUiUi renders its user interface.
Definition: UIDisplay.h:24
void setUpdateTiles(uint16_t maxFirstUpdateTiles=0xffff, uint16_t maxFollowUpdateTiles=0xffff)
Sets or changes the number of tiles to be sent to the display in one chunk.
Definition: UIDisplay.cpp:43
void enable(U8G2 *display, bool render=false, bool force=false)
Enable the UI: It presents itself on screen, display is turned on.
Definition: UIDisplay.cpp:49
void render(U8G2 *display, bool force=false)
Render the interface, update everything that has changed since the last render() call.
Definition: UIDisplay.cpp:112
void activate()
Activates the UI: Rendering will be performed if render() is called.
Definition: UIDisplay.cpp:72
void childNeedsRendering(UIWidget *child)
Called by the root widget to indicate that rendering must be performed.
Definition: UIDisplay.cpp:77
UIDisplay(UIWidget *root)
Setup the UIDisplay onto the given U8g2 instance and with the given root widget.
Definition: UIDisplay.cpp:14
void init(U8G2 *display, bool enable=true, bool render=true)
Initialize the whole user interface, layout the widgets.
Definition: UIDisplay.cpp:20
bool isUpdatingDisplay()
Returns whether the UI is updating the display due to some earlier call to render().
Definition: UIDisplay.cpp:130
void disable(U8G2 *display)
Disables the UI: No rendering and display is switched to powersaving mode.
Definition: UIDisplay.cpp:59
void deactivate()
Deactivates the UI: It will be shown but no rendering will be performed.
Definition: UIDisplay.cpp:67
Simple abstraction of elements which have at least one child.
Definition: UIParent.h:14