Label Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Static text display. For an interactive text input, use UI.TextBox.
class Label : public Widget {};
Constructors
Label(Widget parent)
Label(const Widget& parent);
Create a label inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
Color
uint32_t Color() const;
void Color(uint32_t value);
Text color as 0x00RRGGBB. Getter returns the last value set.
Returns uint
FontSize
int32_t FontSize() const;
void FontSize(int32_t value);
Font size in pixels. Getter returns the last value set.
Returns int
Text
std::string Text() const;
void Text(std::string value);
Displayed text. null is treated as empty. Getter returns the last value set.
Returns string
TextAlignment
TextAlignment TextAlignment() const;
void TextAlignment(TextAlignment value);
Horizontal alignment of the text inside the label bounds. Getter returns the last value set.
Returns TextAlignment