aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/osx/graphics')
-rw-r--r--include/cru/osx/graphics/quartz/Convert.hpp5
-rw-r--r--include/cru/osx/graphics/quartz/TextLayout.hpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/cru/osx/graphics/quartz/Convert.hpp b/include/cru/osx/graphics/quartz/Convert.hpp
index f217e549..f85fc20e 100644
--- a/include/cru/osx/graphics/quartz/Convert.hpp
+++ b/include/cru/osx/graphics/quartz/Convert.hpp
@@ -1,5 +1,7 @@
#pragma once
#include "cru/platform/Matrix.hpp"
+#include "cru/common/String.hpp"
+#include "cru/common/Range.hpp"
#include <CoreGraphics/CoreGraphics.h>
@@ -12,4 +14,7 @@ Matrix Convert(const CGAffineTransform& matrix);
CGRect Convert(const Rect& rect);
Rect Convert(const CGRect& rect);
+
+CFRange Convert(const Range& range);
+Range Convert(const CFRange& range);
} // namespace cru::platform::graphics::osx::quartz
diff --git a/include/cru/osx/graphics/quartz/TextLayout.hpp b/include/cru/osx/graphics/quartz/TextLayout.hpp
index 4a3830db..36d5d25b 100644
--- a/include/cru/osx/graphics/quartz/TextLayout.hpp
+++ b/include/cru/osx/graphics/quartz/TextLayout.hpp
@@ -47,5 +47,9 @@ private:
CTFramesetterRef ct_framesetter_;
CTFrameRef ct_frame_;
+ int line_count_;
+ std::vector<CGPoint> line_origins_;
+ std::vector<CTLineRef> lines_;
+ std::vector<std::vector<float>> line_caret_offsets_;
};
} // namespace cru::platform::graphics::osx::quartz