From 835ec1f25454cd14c5eda45b5bcb614c894fc948 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 16 Nov 2021 21:02:21 +0800 Subject: ... --- include/cru/ui/render/TextRenderObject.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/cru/ui/render/TextRenderObject.hpp') diff --git a/include/cru/ui/render/TextRenderObject.hpp b/include/cru/ui/render/TextRenderObject.hpp index 68d2d0ce..d6395f85 100644 --- a/include/cru/ui/render/TextRenderObject.hpp +++ b/include/cru/ui/render/TextRenderObject.hpp @@ -42,6 +42,9 @@ class TextRenderObject : public RenderObject { std::shared_ptr GetFont() const; void SetFont(std::shared_ptr font); + bool IsEditMode(); + void SetEditMode(bool enable); + std::vector TextRangeRect(const TextRange& text_range); Rect TextSinglePoint(gsl::index position, bool trailing); platform::graphics::TextHitTestResult TextHitTest(const Point& point); -- cgit v1.2.3