HikoGUI
Select Version: ⚠️ This documents the main development branch of HikoGUI. It might differ from release versions.
A low latency retained GUI
|
#include <hikogui/l10n/label.hpp>
Public Member Functions | |
template<std::convertible_to< hi::icon > Icon, std::convertible_to< txt > Txt> | |
constexpr | label (Icon &&icon, Txt &&text) noexcept |
Construct a new label from an icon and text. | |
template<std::convertible_to< txt > Txt> | |
constexpr | label (Txt &&text) noexcept |
Construct a new label from text. | |
template<std::convertible_to< hi::icon > Icon> | |
constexpr | label (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 |
constexpr bool | empty () const noexcept |
constexpr | operator bool () const noexcept |
Data Fields | |
hi::icon | icon |
The icon. | |
txt | text |
Localizable text. | |
Friends | |
constexpr friend bool | operator== (label const &, label const &) noexcept=default |
Compare if both labels are equal. | |
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.
|
inlineconstexprnoexcept |
Construct a new label from an icon and text.
icon | The icon. |
text | The text. |
|
inlineconstexprnoexcept |
Construct a new label from text.
text | The text. |
|
inlineconstexprnoexcept |
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. |
hi::icon v1::label::icon |
The icon.
txt v1::label::text |
Localizable text.
The text in this field is not yet translated nor formatted.