#include <hikogui/widgets/text_delegate.hpp>
|
template<forward_of< observer< value_type > > Value> |
| default_text_delegate (Value &&value) noexcept |
| Construct a delegate.
|
|
gstring | read (widget_intf const &sender) noexcept override |
| Read text as a string of graphemes.
|
|
void | write (widget_intf const &sender, gstring const &text) noexcept override |
| Write text from a string of graphemes.
|
|
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.
|
|
A default text delegate specialization for std::string
.
◆ default_text_delegate()
Construct a delegate.
- Parameters
-
value | A value or observer-value used as a representation of the state. |
◆ read()
|
inlineoverridevirtualnoexcept |
◆ write()
|
inlineoverridevirtualnoexcept |
The documentation for this class was generated from the following file: