aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/graphics/quartz/TextLayout.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-19 22:33:01 +0800
committercrupest <crupest@outlook.com>2021-10-19 22:33:01 +0800
commitfd2e84640b2be52f97f48d818d26fc1289a50c7a (patch)
treeab94a27fae4b4bb47a6124a478b20c82a1393b9b /include/cru/osx/graphics/quartz/TextLayout.hpp
parent44f24f8ece48fd4acc2e8d5f5a052cbc1981768c (diff)
downloadcru-fd2e84640b2be52f97f48d818d26fc1289a50c7a.tar.gz
cru-fd2e84640b2be52f97f48d818d26fc1289a50c7a.tar.bz2
cru-fd2e84640b2be52f97f48d818d26fc1289a50c7a.zip
...
Diffstat (limited to 'include/cru/osx/graphics/quartz/TextLayout.hpp')
-rw-r--r--include/cru/osx/graphics/quartz/TextLayout.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/osx/graphics/quartz/TextLayout.hpp b/include/cru/osx/graphics/quartz/TextLayout.hpp
index 4d23a76e..dd170142 100644
--- a/include/cru/osx/graphics/quartz/TextLayout.hpp
+++ b/include/cru/osx/graphics/quartz/TextLayout.hpp
@@ -33,6 +33,8 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
Point TextSinglePoint(Index position, bool trailing) override;
TextHitTestResult HitTest(const Point& point) override;
+ CTFrameRef GetCTFrameRef() const { return ct_frame_; }
+
private:
void RecreateFrame();