HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/tab_delegate.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
template<forward_of< observer< value_type > > Value> | |
default_tab_delegate (Value &&value) noexcept | |
Construct a default tab delegate. | |
void | add_tab (widget_intf const &sender, std::size_t key, std::size_t index) noexcept override |
std::ptrdiff_t | index (widget_intf const &sender) noexcept override |
Public Member Functions inherited from hi::v1::tab_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 |
std::unordered_map< std::size_t, std::size_t > | tab_indices |
A delegate that control the state of a tab_widget.
T | the type used as the key for which tab is selected. |
|
inlinenoexcept |
Construct a default tab delegate.
value | The observer value which represents the selected tab. |
|
inlineoverridevirtualnoexcept |
Reimplemented from hi::v1::tab_delegate.
|
inlineoverridevirtualnoexcept |
Reimplemented from hi::v1::tab_delegate.