From 2ad748a0fcb66398299886970cc9c40cc50b3cd0 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 19 Nov 2021 15:57:49 +0800 Subject: ... --- include/cru/ui/controls/TextHostControlService.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/ui/controls') diff --git a/include/cru/ui/controls/TextHostControlService.hpp b/include/cru/ui/controls/TextHostControlService.hpp index 1b0908ce..6ebe2a27 100644 --- a/include/cru/ui/controls/TextHostControlService.hpp +++ b/include/cru/ui/controls/TextHostControlService.hpp @@ -116,6 +116,8 @@ class TextHostControlService : public Object { gsl::index GetCaretPosition() { return selection_.GetEnd(); } TextRange GetSelection() { return selection_; } + StringView GetSelectedText(); + void SetSelection(gsl::index caret_position); void SetSelection(TextRange selection, bool scroll_to_caret = true); @@ -131,6 +133,10 @@ class TextHostControlService : public Object { void ScrollToCaret(); + void Cut(); + void Copy(); + void Paste(); + gsl::not_null GetTextRenderObject(); render::ScrollRenderObject* GetScrollRenderObject(); -- cgit v1.2.3