diff options
author | crupest <crupest@outlook.com> | 2021-10-31 22:53:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-31 22:53:11 +0800 |
commit | 1dca2841da6f024f613d6dc16de456d5035f8fce (patch) | |
tree | 37ca6290afbe5900df2eb4a09e30024257d55316 /include/cru/ui/render | |
parent | e68e0d9a5130e8bc0b634572b7fd44b9bfc0f8ef (diff) | |
download | cru-1dca2841da6f024f613d6dc16de456d5035f8fce.tar.gz cru-1dca2841da6f024f613d6dc16de456d5035f8fce.tar.bz2 cru-1dca2841da6f024f613d6dc16de456d5035f8fce.zip |
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r-- | include/cru/ui/render/TextRenderObject.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/render/TextRenderObject.hpp b/include/cru/ui/render/TextRenderObject.hpp index ef39b7a6..68d2d0ce 100644 --- a/include/cru/ui/render/TextRenderObject.hpp +++ b/include/cru/ui/render/TextRenderObject.hpp @@ -43,7 +43,7 @@ class TextRenderObject : public RenderObject { void SetFont(std::shared_ptr<platform::graphics::IFont> font); std::vector<Rect> TextRangeRect(const TextRange& text_range); - Point TextSinglePoint(gsl::index position, bool trailing); + Rect TextSinglePoint(gsl::index position, bool trailing); platform::graphics::TextHitTestResult TextHitTest(const Point& point); std::optional<TextRange> GetSelectionRange() const { |