HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/radio_delegate.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
template<forward_of< observer< value_type > > Value, forward_of< observer< value_type > > OnValue> | |
default_radio_delegate (Value &&value, OnValue &&on_value) noexcept | |
Construct a delegate. | |
Public Member Functions inherited from hi::v1::radio_delegate | |
virtual void | init (widget_intf const &sender) noexcept |
virtual void | deinit (widget_intf const &sender) noexcept |
template<forward_of< void()> Func> | |
callback< void()> | subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept |
Subscribe a callback for notifying the widget of a data change. | |
Data Fields | |
observer< value_type > | value |
observer< value_type > | on_value |
A default radio button delegate.
The default radio button delegate manages the state of a radio widget using observer values.
T | The type of the observer value. |
|
inlinenoexcept |
Construct a delegate.
value | A value or observer-value used as a representation of the state. |
on_value | The value or observer-value that mean 'on'. |