aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/direct/text_layout.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/win/graph/direct/text_layout.hpp')
-rw-r--r--include/cru/win/graph/direct/text_layout.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/win/graph/direct/text_layout.hpp b/include/cru/win/graph/direct/text_layout.hpp
index a9b89011..90faadf9 100644
--- a/include/cru/win/graph/direct/text_layout.hpp
+++ b/include/cru/win/graph/direct/text_layout.hpp
@@ -37,6 +37,8 @@ class DWriteTextLayout : public DirectGraphResource,
void SetMaxHeight(float max_height) override;
Rect GetTextBounds() override;
+ // Return empty vector if text_range.count is 0. Text range could be in
+ // reverse direction, it should be normalized first in implementation.
std::vector<Rect> TextRangeRect(const TextRange& text_range) override;
Point TextSingleRect(gsl::index position, bool trailing) override;
TextHitTestResult HitTest(const Point& point) override;