aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-16 21:02:21 +0800
committercrupest <crupest@outlook.com>2021-11-16 21:02:21 +0800
commit835ec1f25454cd14c5eda45b5bcb614c894fc948 (patch)
tree3b077988ba8ad6d02fc5a9307c90017b49e20e45 /include/cru/ui
parent59844d990aa72d1f69a3bd30efc94e6d23fa1468 (diff)
downloadcru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.gz
cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.bz2
cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.zip
...
Diffstat (limited to 'include/cru/ui')
-rw-r--r--include/cru/ui/render/TextRenderObject.hpp3
1 files changed, 3 insertions, 0 deletions
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<platform::graphics::IFont> GetFont() const;
void SetFont(std::shared_ptr<platform::graphics::IFont> font);
+ bool IsEditMode();
+ void SetEditMode(bool enable);
+
std::vector<Rect> TextRangeRect(const TextRange& text_range);
Rect TextSinglePoint(gsl::index position, bool trailing);
platform::graphics::TextHitTestResult TextHitTest(const Point& point);