libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
promeki::TuiLabel Class Reference

Displays text (single or multi-line). More...

#include <label.h>

Inheritance diagram for promeki::TuiLabel:
Collaboration diagram for promeki::TuiLabel:

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
 

Detailed Description

Displays text (single or multi-line).

Thread Safety
Thread-affine — see TuiWidget.

The documentation for this class was generated from the following file: