aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/TextLayout.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/graphics/TextLayout.hpp')
-rw-r--r--include/cru/platform/graphics/TextLayout.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/platform/graphics/TextLayout.hpp b/include/cru/platform/graphics/TextLayout.hpp
index ec3c2d96..5f98696d 100644
--- a/include/cru/platform/graphics/TextLayout.hpp
+++ b/include/cru/platform/graphics/TextLayout.hpp
@@ -17,7 +17,8 @@ struct ITextLayout : virtual IGraphicsResource {
virtual Rect GetTextBounds(bool includingTrailingSpace = false) = 0;
virtual std::vector<Rect> TextRangeRect(const TextRange& text_range) = 0;
- virtual Point TextSinglePoint(Index position, bool trailing) = 0;
+ // Width is always 0, height is line height.
+ virtual Rect TextSinglePoint(Index position, bool trailing) = 0;
virtual TextHitTestResult HitTest(const Point& point) = 0;
};
} // namespace cru::platform::graphics