aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/quartz/TextLayout.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 21:50:24 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 21:50:24 +0800
commit728d592f4075ae78b67dab6911ada05875a470a3 (patch)
tree57a7232ea0a984b0344bc63a593c1dee65072d2f /include/cru/platform/graphics/quartz/TextLayout.h
parent045462a6aed2796976a2f5cf0042f9a0ac1493f7 (diff)
downloadcru-728d592f4075ae78b67dab6911ada05875a470a3.tar.gz
cru-728d592f4075ae78b67dab6911ada05875a470a3.tar.bz2
cru-728d592f4075ae78b67dab6911ada05875a470a3.zip
Fix macOS build.
Diffstat (limited to 'include/cru/platform/graphics/quartz/TextLayout.h')
-rw-r--r--include/cru/platform/graphics/quartz/TextLayout.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/cru/platform/graphics/quartz/TextLayout.h b/include/cru/platform/graphics/quartz/TextLayout.h
index bbb417f6..e53ee464 100644
--- a/include/cru/platform/graphics/quartz/TextLayout.h
+++ b/include/cru/platform/graphics/quartz/TextLayout.h
@@ -11,7 +11,7 @@ namespace cru::platform::graphics::quartz {
class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
public:
OsxCTTextLayout(IGraphicsFactory* graphics_factory,
- std::shared_ptr<OsxCTFont> font, const String& str);
+ std::shared_ptr<OsxCTFont> font, const std::string& str);
CRU_DELETE_COPY(OsxCTTextLayout)
CRU_DELETE_MOVE(OsxCTTextLayout)
@@ -19,8 +19,8 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
~OsxCTTextLayout() override;
public:
- String GetText() override { return text_; }
- void SetText(String new_text) override;
+ std::string GetText() override { return text_; }
+ void SetText(std::string new_text) override;
std::shared_ptr<IFont> GetFont() override { return font_; }
void SetFont(std::shared_ptr<IFont> font) override;
@@ -46,10 +46,10 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
Matrix GetTransform() { return transform_; }
- String GetDebugString() override;
+ std::string GetDebugString() override;
private:
- void DoSetText(String text);
+ void DoSetText(std::string text);
void ReleaseResource();
void RecreateFrame();
@@ -68,8 +68,8 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout {
std::shared_ptr<OsxCTFont> font_;
- String text_;
- String actual_text_;
+ std::string text_;
+ std::string actual_text_;
CFMutableAttributedStringRef cf_attributed_text_;
CTFramesetterRef ct_framesetter_ = nullptr;