aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/direct
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-01 22:32:58 +0800
committercrupest <crupest@outlook.com>2020-03-01 22:32:58 +0800
commitf23077eb0ddff77b7e114994f967189ea7607600 (patch)
tree9d27ccf8d721d40f8829ae2458e67a60eaaed25d /include/cru/win/graph/direct
parent6e0e0e18cbeff6487160c84d71997575f6cccebd (diff)
downloadcru-f23077eb0ddff77b7e114994f967189ea7607600.tar.gz
cru-f23077eb0ddff77b7e114994f967189ea7607600.tar.bz2
cru-f23077eb0ddff77b7e114994f967189ea7607600.zip
Complete hit test in text layout.
Diffstat (limited to 'include/cru/win/graph/direct')
-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 5a8f3f9c..5f7be9f3 100644
--- a/include/cru/win/graph/direct/text_layout.hpp
+++ b/include/cru/win/graph/direct/text_layout.hpp
@@ -38,6 +38,8 @@ class DWriteTextLayout : public DirectGraphResource,
Rect GetTextBounds() override;
std::vector<Rect> TextRangeRect(const TextRange& text_range) override;
+ Point TextSingleRect(int position, bool trailing) override;
+ TextHitTestResult HitTest(const Point& point) override;
private:
std::string text_;