aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/TextHostControlService.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/TextHostControlService.hpp')
-rw-r--r--include/cru/ui/controls/TextHostControlService.hpp6
1 files changed, 6 insertions, 0 deletions
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<render::TextRenderObject*> GetTextRenderObject();
render::ScrollRenderObject* GetScrollRenderObject();