From c1f8ea13524f398f8d1720e5f03a17dd66352ebf Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 30 Jan 2022 20:40:59 +0800 Subject: ... --- src/osx/graphics/quartz/Factory.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/osx/graphics/quartz/Factory.cpp') diff --git a/src/osx/graphics/quartz/Factory.cpp b/src/osx/graphics/quartz/Factory.cpp index 7aef9d7e..570fd099 100644 --- a/src/osx/graphics/quartz/Factory.cpp +++ b/src/osx/graphics/quartz/Factory.cpp @@ -3,12 +3,19 @@ #include "cru/osx/graphics/quartz/Brush.hpp" #include "cru/osx/graphics/quartz/Font.hpp" #include "cru/osx/graphics/quartz/Geometry.hpp" +#include "cru/osx/graphics/quartz/ImageFactory.hpp" #include "cru/osx/graphics/quartz/TextLayout.hpp" #include "cru/platform/Check.hpp" +#include "cru/platform/graphics/ImageFactory.hpp" #include namespace cru::platform::graphics::osx::quartz { +QuartzGraphicsFactory::QuartzGraphicsFactory() + : OsxQuartzResource(this), image_factory_(new QuartzImageFactory(this)) {} + +QuartzGraphicsFactory::~QuartzGraphicsFactory() {} + std::unique_ptr QuartzGraphicsFactory::CreateSolidColorBrush() { return std::make_unique(this, colors::black); @@ -30,4 +37,7 @@ std::unique_ptr QuartzGraphicsFactory::CreateTextLayout( return std::make_unique(this, f, text); } +IImageFactory* QuartzGraphicsFactory::GetImageFactory() { + return image_factory_.get(); +} } // namespace cru::platform::graphics::osx::quartz -- cgit v1.2.3