|
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 |
|
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.