diff options
author | crupest <crupest@outlook.com> | 2021-11-21 20:42:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-21 20:42:54 +0800 |
commit | 3f8e493423b7cfe96ab53531078b803da7beccbe (patch) | |
tree | a0a998c6b2b696eaf4f58870224fef31e65e3dbd /include/cru/ui/render | |
parent | 73b90d4fe6c93a288ca6514432fe1e83ddcf4928 (diff) | |
download | cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.gz cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.bz2 cru-3f8e493423b7cfe96ab53531078b803da7beccbe.zip |
...
Diffstat (limited to 'include/cru/ui/render')
-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); |