diff options
author | crupest <crupest@outlook.com> | 2021-10-21 17:44:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-21 17:44:56 +0800 |
commit | 72fc892792565ef39fcae6b7d2a19006dc3a3238 (patch) | |
tree | ea1609b424215e6fe86d6280ce86beea0c73b61b /include/cru/ui/controls | |
parent | fc9cd10a84ea92dd702ac84d302ca46198d17d23 (diff) | |
download | cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.gz cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.bz2 cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.zip |
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/TextHostControlService.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/cru/ui/controls/TextHostControlService.hpp b/include/cru/ui/controls/TextHostControlService.hpp index f39d9456..84c226ca 100644 --- a/include/cru/ui/controls/TextHostControlService.hpp +++ b/include/cru/ui/controls/TextHostControlService.hpp @@ -7,7 +7,6 @@ #include "cru/ui/controls/Control.hpp" #include "cru/ui/helper/ShortcutHub.hpp" - #include <functional> #include <string> @@ -43,9 +42,8 @@ class TextHostControlService : public Object { bool IsEditable() { return this->editable_; } void SetEditable(bool editable); - std::u16string GetText() { return this->text_; } - std::u16string_view GetTextView() { return this->text_; } - void SetText(std::u16string text, bool stop_composition = false); + String GetText() { return this->text_; } + void SetText(String text, bool stop_composition = false); void InsertText(gsl::index position, std::u16string_view text, bool stop_composition = false); @@ -121,7 +119,7 @@ class TextHostControlService : public Object { EventRevokerListGuard event_guard_; EventRevokerListGuard input_method_context_event_guard_; - std::u16string text_; + String text_; TextRange selection_; bool enable_ = false; |