aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-16 21:09:37 +0800
committercrupest <crupest@outlook.com>2021-11-16 21:09:37 +0800
commitf61cd0575f9f8b7be154073304795c22b0ec26ab (patch)
treece5ee227a278ee104cd3121612b12f114abd5c89 /include/cru
parent835ec1f25454cd14c5eda45b5bcb614c894fc948 (diff)
downloadcru-f61cd0575f9f8b7be154073304795c22b0ec26ab.tar.gz
cru-f61cd0575f9f8b7be154073304795c22b0ec26ab.tar.bz2
cru-f61cd0575f9f8b7be154073304795c22b0ec26ab.zip
...
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/osx/graphics/quartz/TextLayout.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/osx/graphics/quartz/TextLayout.hpp b/include/cru/osx/graphics/quartz/TextLayout.hpp
index b9bf5e44..d069cc28 100644
--- a/include/cru/osx/graphics/quartz/TextLayout.hpp
+++ b/include/cru/osx/graphics/quartz/TextLayout.hpp
@@ -77,6 +77,10 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
// The trailing empty line count in the back of the lines.
int tail_empty_line_count_;
+ // Just for cache.
+ CGRect text_bounds_without_trailing_space_;
+ CGRect text_bounds_with_trailing_space_;
+
Matrix transform_;
};
} // namespace cru::platform::graphics::osx::quartz