diff options
Diffstat (limited to 'include/cru/ui')
-rw-r--r-- | include/cru/ui/render/TextRenderObject.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Rect> TextRangeRect(const TextRange& text_range); Rect TextSinglePoint(gsl::index position, bool trailing); platform::graphics::TextHitTestResult TextHitTest(const Point& point); |