C++ GUI Library

class gui::label

A label is a simple widget that displays as a text string.

label(const label &other)

Copy-construct a label from another label. This does not create a new label; instead it creates a new reference to the existing label.

label(const widget &other)

Attempt to narrow a widget to a label. If the widget is not a label, this constructor throws a std::bad_cast exception.

swap(label &other)

Exchange this reference to a label with another.

operator=(label other)

Causes this label to refer to the same widget as another label object.

operator widget()

Upcast to the widget base type.

label(const char *text)

Creates a new label with the specified text. The text parameter should be a UTF8 string.

set_text(const char *text)

Changes the text of the label. The text parameter should be a UTF8 string.