aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/quartz/TextLayout.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-03 20:48:22 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-03 20:48:22 +0800
commit40bbf3c14a782673bbd36c8a98adb0934b06add5 (patch)
tree4878604ccba77a957cbacd42dd1355fe33f5d0af /include/cru/platform/graphics/quartz/TextLayout.h
parenta04627baa74b2b6660addeb9853225852634cf34 (diff)
downloadcru-40bbf3c14a782673bbd36c8a98adb0934b06add5.tar.gz
cru-40bbf3c14a782673bbd36c8a98adb0934b06add5.tar.bz2
cru-40bbf3c14a782673bbd36c8a98adb0934b06add5.zip
Osx remove Resource.h.
Diffstat (limited to 'include/cru/platform/graphics/quartz/TextLayout.h')
-rw-r--r--include/cru/platform/graphics/quartz/TextLayout.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/include/cru/platform/graphics/quartz/TextLayout.h b/include/cru/platform/graphics/quartz/TextLayout.h
index e53ee464..5174c0dd 100644
--- a/include/cru/platform/graphics/quartz/TextLayout.h
+++ b/include/cru/platform/graphics/quartz/TextLayout.h
@@ -1,21 +1,16 @@
#pragma once
-#include "Resource.h"
-
+#include "Base.h"
#include "Font.h"
-#include "cru/base/Base.h"
-#include "cru/platform/graphics/TextLayout.h"
+
+#include <cru/platform/graphics/TextLayout.h>
#include <memory>
namespace cru::platform::graphics::quartz {
class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
public:
- OsxCTTextLayout(IGraphicsFactory* graphics_factory,
- std::shared_ptr<OsxCTFont> font, const std::string& str);
-
- CRU_DELETE_COPY(OsxCTTextLayout)
- CRU_DELETE_MOVE(OsxCTTextLayout)
-
+ OsxCTTextLayout(IGraphicsFactory* graphics_factory, std::shared_ptr<OsxCTFont> font,
+ const std::string& str);
~OsxCTTextLayout() override;
public:
@@ -55,8 +50,7 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
void RecreateFrame();
CGRect DoGetTextBounds(bool includingTrailingSpace = false);
- CGRect DoGetTextBoundsIncludingEmptyLines(
- bool includingTrailingSpace = false);
+ CGRect DoGetTextBoundsIncludingEmptyLines(bool includingTrailingSpace = false);
std::vector<CGRect> DoTextRangeRect(const TextRange& text_range);
CGRect DoTextSinglePoint(Index position, bool trailing);