aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graph/text_layout.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-21 17:29:37 +0800
committercrupest <crupest@outlook.com>2020-04-21 17:29:37 +0800
commit977baa3a42a8b813e75a3666809155604cb6713d (patch)
treefaa787e43fe8203139f79f8b39332584c1422a7d /include/cru/platform/graph/text_layout.hpp
parent2898b68fc4f7ff40844ddf5a1d0b59f76b06290f (diff)
downloadcru-977baa3a42a8b813e75a3666809155604cb6713d.tar.gz
cru-977baa3a42a8b813e75a3666809155604cb6713d.tar.bz2
cru-977baa3a42a8b813e75a3666809155604cb6713d.zip
...
Diffstat (limited to 'include/cru/platform/graph/text_layout.hpp')
-rw-r--r--include/cru/platform/graph/text_layout.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/platform/graph/text_layout.hpp b/include/cru/platform/graph/text_layout.hpp
index 20009c0d..0d104742 100644
--- a/include/cru/platform/graph/text_layout.hpp
+++ b/include/cru/platform/graph/text_layout.hpp
@@ -17,7 +17,7 @@ struct ITextLayout : virtual IGraphResource {
virtual Rect GetTextBounds() = 0;
virtual std::vector<Rect> TextRangeRect(const TextRange& text_range) = 0;
- virtual Point TextSingleRect(int position, bool trailing) = 0;
+ virtual Point TextSingleRect(gsl::index position, bool trailing) = 0;
virtual TextHitTestResult HitTest(const Point& point) = 0;
};
} // namespace cru::platform::graph