From 40bbf3c14a782673bbd36c8a98adb0934b06add5 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Nov 2025 20:48:22 +0800 Subject: Osx remove Resource.h. --- include/cru/platform/graphics/quartz/TextLayout.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'include/cru/platform/graphics/quartz/TextLayout.h') 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 #include namespace cru::platform::graphics::quartz { class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { public: - OsxCTTextLayout(IGraphicsFactory* graphics_factory, - std::shared_ptr font, const std::string& str); - - CRU_DELETE_COPY(OsxCTTextLayout) - CRU_DELETE_MOVE(OsxCTTextLayout) - + OsxCTTextLayout(IGraphicsFactory* graphics_factory, std::shared_ptr 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 DoTextRangeRect(const TextRange& text_range); CGRect DoTextSinglePoint(Index position, bool trailing); -- cgit v1.2.3