|
HikoGUI
A low latency retained GUI
|
#include <ttauri/label.hpp>
Public Member Functions | |
| label (tt::icon icon, l10n text) noexcept | |
| Construct a new label from an icon and text. | |
| label (l10n text) noexcept | |
| Construct a new label from text. | |
| label (tt::icon icon) noexcept | |
| Construct a new label from an icon. | |
| constexpr | label () noexcept |
| Construct a empty label. | |
| label (label const &other) noexcept=default | |
| label & | operator= (label const &other) noexcept=default |
| label (label &&other) noexcept=default | |
| label & | operator= (label &&other) noexcept=default |
Data Fields | |
| tt::icon | icon |
| The icon. | |
| l10n | text |
| Localizable text. | |
Friends | |
| bool | operator== (label const &lhs, label const &rhs) noexcept |
| Compare if both labels are equal. | |
| std::string | to_string (label const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &lhs, label const &rhs) |
A label consisting of localizable text and an icon.
A label is used for user-visible information. The label is used as information displayed by the label_widget.
The audio subsystem will use labels to return user-visible information such as the name of audio device end-points or surround sound speaker configuration which in both cases includes icons and text that needs to be translated.
Construct a new label from an icon and text.
| icon | The icon. |
| text | The text. |
|
inlinenoexcept |
Construct a new label from text.
| text | The text. |
|
inlinenoexcept |
Construct a new label from an icon.
| icon | The icon. |
|
inlineconstexprnoexcept |
Construct a empty label.
Compare if both labels are equal.
| lhs | A label. |
| rhs | A label. |
| tt::icon tt::label::icon |
The icon.
| l10n tt::label::text |
Localizable text.
The text in this field is not yet translated nor formatted.