|
HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/text_delegate.hpp>
Public Types | |
| using | notifier_type = notifier<> |
| using | callback_token = notifier_type::callback_token |
| using | callback_proto = notifier_type::callback_proto |
Public Member Functions | |
| virtual void | init (widget &sender) noexcept |
| virtual void | deinit (widget &sender) noexcept |
| virtual text | read (widget &sender) noexcept=0 |
| Read text as a string of graphemes. | |
| virtual void | write (widget &sender, text const &text) noexcept=0 |
| Write text from a string of graphemes. | |
| callback_token | subscribe (forward_of< callback_proto > auto &&callback, callback_flags flags=callback_flags::synchronous) noexcept |
| Subscribe a callback for notifying the widget of a data change. | |
A delegate that controls the state of a text_widget.
Read text as a string of graphemes.
Implemented in hi::v1::default_text_delegate< text >, hi::v1::default_text_delegate< translate >, and hi::v1::default_text_delegate< text_variant >.
|
inlinenoexcept |
Subscribe a callback for notifying the widget of a data change.
|
pure virtualnoexcept |
Write text from a string of graphemes.
Implemented in hi::v1::default_text_delegate< text_variant >, hi::v1::default_text_delegate< text >, and hi::v1::default_text_delegate< translate >.