From 3f8e493423b7cfe96ab53531078b803da7beccbe Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 21 Nov 2021 20:42:54 +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 d6395f85..4e72e839 100644 --- a/include/cru/ui/render/TextRenderObject.hpp +++ b/include/cru/ui/render/TextRenderObject.hpp @@ -45,6 +45,9 @@ class TextRenderObject : public RenderObject { bool IsEditMode(); void SetEditMode(bool enable); + Index GetLineCount(); + Index GetLineIndexFromCharIndex(Index char_index); + float GetLineHeight(Index line_index); 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