HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
hi::v1::with_label_widget< ButtonWidget >::attributes_type Struct Reference

Public Member Functions

 attributes_type (attributes_type const &) noexcept=default
 
 attributes_type (attributes_type &&) noexcept=default
 
attributes_typeoperator= (attributes_type const &) noexcept=default
 
attributes_typeoperator= (attributes_type &&) noexcept=default
 
template<with_label_widget_attribute... Attributes>
 attributes_type (Attributes &&...attributes) noexcept
 
template<size_t I>
void set_attributes () noexcept
 
template<size_t I, with_label_widget_attribute First, with_label_widget_attribute... Rest>
void set_attributes (First &&first, Rest &&...rest) noexcept
 

Data Fields

observer< label > on_label = txt("on")
 The label to show when the button is in the 'on' state.
 
observer< label > off_label = txt("off")
 The label to show when the button is in the 'off' state.
 
observer< label > other_label = txt("other")
 The label to show when the button is in the 'other' state.
 
observer< alignmentalignment = hi::alignment::top_left()
 The alignment of the button and on/off/other label.
 
observer< semantic_text_style > text_style = semantic_text_style::label
 The text style to button's label.
 

Field Documentation

◆ alignment

template<std::derived_from< widget > ButtonWidget>
observer<alignment> hi::v1::with_label_widget< ButtonWidget >::attributes_type::alignment = hi::alignment::top_left()

The alignment of the button and on/off/other label.

◆ off_label

template<std::derived_from< widget > ButtonWidget>
observer<label> hi::v1::with_label_widget< ButtonWidget >::attributes_type::off_label = txt("off")

The label to show when the button is in the 'off' state.

◆ on_label

template<std::derived_from< widget > ButtonWidget>
observer<label> hi::v1::with_label_widget< ButtonWidget >::attributes_type::on_label = txt("on")

The label to show when the button is in the 'on' state.

◆ other_label

template<std::derived_from< widget > ButtonWidget>
observer<label> hi::v1::with_label_widget< ButtonWidget >::attributes_type::other_label = txt("other")

The label to show when the button is in the 'other' state.

◆ text_style

template<std::derived_from< widget > ButtonWidget>
observer<semantic_text_style> hi::v1::with_label_widget< ButtonWidget >::attributes_type::text_style = semantic_text_style::label

The text style to button's label.


The documentation for this struct was generated from the following file: