Displays text (single or multi-line). More...
#include <label.h>


Public Member Functions | |
| TuiLabel (const String &text=String(), ObjectBase *parent=nullptr) | |
| void | setText (const String &text) |
| Sets the display text. | |
| const String & | text () const |
| Returns the display text. | |
| void | setAlignment (TuiAlignment align) |
| Sets the text alignment. | |
| TuiAlignment | alignment () const |
| Returns the text alignment. | |
| void | setWordWrap (bool wrap) |
| Enables or disables word wrapping. | |
| bool | wordWrap () const |
| Returns true if word wrapping is enabled. | |
| Size2Di32 | sizeHint () const override |
Public Member Functions inherited from promeki::TuiWidget | |
| TuiWidget (ObjectBase *parent=nullptr) | |
| Constructs a TuiWidget. | |
| ~TuiWidget () override | |
| Destructor. | |
| void | update () override |
| Marks the widget as needing a repaint. | |
Protected Member Functions | |
| void | paintEvent (PaintEvent *e) override |
Displays text (single or multi-line).