|
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 (text_widget &sender) noexcept |
| virtual void | deinit (text_widget &sender) noexcept |
| virtual gstring | read (text_widget &sender) noexcept=0 |
| Read text as a string of graphemes. | |
| virtual void | write (text_widget &sender, gstring 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.
|
pure virtualnoexcept |
Read text as a string of graphemes.
Implemented in hi::v1::default_text_delegate< std::string >, hi::v1::default_text_delegate< gstring >, hi::v1::default_text_delegate< translate >, and hi::v1::default_text_delegate< text >.
|
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< std::string >, hi::v1::default_text_delegate< gstring >, hi::v1::default_text_delegate< translate >, and hi::v1::default_text_delegate< text >.