aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-16 22:27:03 +0800
committercrupest <crupest@outlook.com>2021-11-16 22:27:03 +0800
commit17e35c8ebb51c2679421330056615fa8678b939e (patch)
tree853a45b8fa4221d791dbcff5e5b2be4831e8e28e /include
parentce1a7264a3325ae56e341d7af22b0fee914f213b (diff)
downloadcru-17e35c8ebb51c2679421330056615fa8678b939e.tar.gz
cru-17e35c8ebb51c2679421330056615fa8678b939e.tar.bz2
cru-17e35c8ebb51c2679421330056615fa8678b939e.zip
...
Diffstat (limited to 'include')
-rw-r--r--include/cru/ui/controls/TextHostControlService.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/ui/controls/TextHostControlService.hpp b/include/cru/ui/controls/TextHostControlService.hpp
index 274d092b..f63a45c2 100644
--- a/include/cru/ui/controls/TextHostControlService.hpp
+++ b/include/cru/ui/controls/TextHostControlService.hpp
@@ -86,6 +86,10 @@ class TextHostControlService : public Object {
bool IsEditable() { return this->editable_; }
void SetEditable(bool editable);
+ bool IsMultiLine() { return this->multi_line_; }
+ // If text contains line feed characters, it will be converted to space.
+ void SetMultiLine(bool multi_line);
+
String GetText() { return this->text_; }
StringView GetTextView() { return this->text_; }
void SetText(String text, bool stop_composition = false);
@@ -169,6 +173,7 @@ class TextHostControlService : public Object {
bool enable_ = false;
bool editable_ = false;
+ bool multi_line_ = false;
bool caret_visible_ = false;
platform::gui::TimerAutoCanceler caret_timer_canceler_;