69 UIExpansion expansion;
72 UIAlignment alignment;
Area consisting of left, top, right, and bottom value.
Definition: UIArea.h:20
Envelope widget which contains exactly one other widget and changes its representation.
Definition: UIEnvelope.h:27
UIArea * render(U8G2 *display, bool force)
Render the envelope - which also renders the content if it exists.
Definition: UIEnvelope.cpp:46
void computePreferredSize(U8G2 *display, UISize *preferredSize)
Compute the preferred size which is determined by the content by may be changed by the envelope.
Definition: UIEnvelope.cpp:57
void childNeedsRendering(UIWidget *child)
Called by the child of this envelope to indicate that it wants to be rendered.
Definition: UIEnvelope.cpp:42
UIEnvelope(UIExpansion expansion, UIAlignment alignment, UISize borderSize=UISize(), UIWidget *content=nullptr, UIWidget *next=nullptr)
Create an envelope widget.
Definition: UIEnvelope.cpp:17
void layout(U8G2 *display, UIArea *dim)
Layout the envelope.
Definition: UIEnvelope.cpp:26
Simple abstraction of elements which have at least one child.
Definition: UIParent.h:14
Representation of a size, i.e.
Definition: UISize.h:9