17#include "UIWidgetGroup.h"
Area consisting of left, top, right, and bottom value.
Definition: UIArea.h:20
Widget group which shows nothing or exactly one of its sub-widgets.
Definition: UICards.h:35
void layout(U8G2 *display, UIArea *dim)
Layout the cards widget.
Definition: UICards.cpp:24
void showFirstWidget()
Shortcut: Show first widget.
Definition: UICards.cpp:45
void setVisibleWidget(UIWidget *visible)
Set the widget to show on the area of the cards widget group.
Definition: UICards.cpp:33
void computePreferredSize(U8G2 *display, UISize *preferredSize)
Compute the preferred size as the maximum envelope of the preferred sizes of all subwidgets.
Definition: UICards.cpp:68
void childNeedsRendering(UIWidget *child)
UICards will consider the render request from the child only if it is the currently visible child.
Definition: UICards.cpp:77
UIArea * render(U8G2 *display, bool force)
Render the cards widget group onto the display.
Definition: UICards.cpp:49
void hide()
Shortcut: Hide all widgets, clear the UICards area on the display.
Definition: UICards.cpp:41
UICards(UIWidget *firstChild, UIWidget *next=nullptr)
Initialize the cards widget with the first widget and a potential successor on the same level.
Definition: UICards.cpp:21
Representation of a size, i.e.
Definition: UISize.h:9