diff options
author | crupest <crupest@outlook.com> | 2022-02-11 17:46:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-11 17:46:20 +0800 |
commit | 2fd37d41bb804a06acc8e2d341d5ce5d8370184b (patch) | |
tree | 4a87909043189928c38ee325377ee600d5321b19 /include/cru/ui/controls/TextHostControlService.h | |
parent | 85746e9f053432bdcfb99b21997efa040eac1bc3 (diff) | |
download | cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.tar.gz cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.tar.bz2 cru-2fd37d41bb804a06acc8e2d341d5ce5d8370184b.zip |
...
Diffstat (limited to 'include/cru/ui/controls/TextHostControlService.h')
-rw-r--r-- | include/cru/ui/controls/TextHostControlService.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/controls/TextHostControlService.h b/include/cru/ui/controls/TextHostControlService.h index 0d4a20cf..74da1e19 100644 --- a/include/cru/ui/controls/TextHostControlService.h +++ b/include/cru/ui/controls/TextHostControlService.h @@ -147,6 +147,8 @@ class CRU_UI_API TextHostControlService : public Object { void Copy(); void Paste(); + IEvent<std::nullptr_t>* TextChangeEvent() { return &text_change_event_; } + gsl::not_null<render::TextRenderObject*> GetTextRenderObject(); render::ScrollRenderObject* GetScrollRenderObject(); @@ -192,6 +194,8 @@ class CRU_UI_API TextHostControlService : public Object { gsl::not_null<Control*> control_; gsl::not_null<ITextHostControl*> text_host_control_; + Event<std::nullptr_t> text_change_event_; + EventRevokerListGuard event_guard_; EventRevokerListGuard input_method_context_event_guard_; |