83 UIAlignment alignment;
106 uint16_t getTextHeight(U8G2* display);
Area consisting of left, top, right, and bottom value.
Definition: UIArea.h:20
Representation of a point on the display.
Definition: UIPoint.h:9
Representation of a size, i.e.
Definition: UISize.h:9
A widget containing a line of text which is set dynamically during runtime using setText().
Definition: UITextLine.h:25
UIArea * render(U8G2 *display, bool force)
Render the text line.
Definition: UITextLine.cpp:54
void computePreferredSize(U8G2 *display, UISize *preferredSize)
Generate the preferred size from the font size.
Definition: UITextLine.cpp:87
const uint8_t * font
The font of this text line.
Definition: UITextLine.h:72
void clearText()
Clear the text in this text line.
Definition: UITextLine.cpp:43
void setText(const char *text)
Set the text of the text line.
Definition: UITextLine.cpp:34
UITextLine(const uint8_t *font, UIAlignment alignment, bool useUTF8=false, UIWidget *next=nullptr)
Create a text line with the given font and alignment and a potential successor.
Definition: UITextLine.cpp:15
void updateText()
Insist that on the next render() call, the text line will update its content.
Definition: UITextLine.cpp:47