diff options
Diffstat (limited to 'include/cru/ui/render/text_render_object.hpp')
-rw-r--r-- | include/cru/ui/render/text_render_object.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/render/text_render_object.hpp b/include/cru/ui/render/text_render_object.hpp index 1c472753..c062c9f0 100644 --- a/include/cru/ui/render/text_render_object.hpp +++ b/include/cru/ui/render/text_render_object.hpp @@ -27,7 +27,7 @@ class TextRenderObject : public RenderObject { void SetFont(std::shared_ptr<platform::graph::IFont> font); std::vector<Rect> TextRangeRect(const TextRange& text_range); - Point TextSingleRect(int position, bool trailing); + Point TextSingleRect(gsl::index position, bool trailing); platform::graph::TextHitTestResult TextHitTest(const Point& point); std::optional<TextRange> GetSelectionRange() const { |