From 7fa6f61b1d7b253f749be73a4bfeee9a77cd2e88 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 22 Aug 2021 21:15:33 +0800 Subject: ... --- include/cru/osx/graphics/quartz/Painter.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/cru/osx/graphics/quartz/Painter.hpp') diff --git a/include/cru/osx/graphics/quartz/Painter.hpp b/include/cru/osx/graphics/quartz/Painter.hpp index 7f775210..5dcc49dc 100644 --- a/include/cru/osx/graphics/quartz/Painter.hpp +++ b/include/cru/osx/graphics/quartz/Painter.hpp @@ -1,5 +1,7 @@ #pragma once #include "Resource.hpp" +#include "cru/common/Base.hpp" +#include "cru/platform/graphics/Base.hpp" #include "cru/platform/graphics/Painter.hpp" #include @@ -8,8 +10,14 @@ namespace cru::platform::graphics::osx::quartz { class QuartzCGContextPainter : public OsxQuartzResource, public virtual IPainter { public: - explicit QuartzCGContextPainter(CGContextRef cg_context) - : cg_context_(cg_context) {} + explicit QuartzCGContextPainter(IGraphFactory* graphics_factory, + CGContextRef cg_context) + : OsxQuartzResource(graphics_factory), cg_context_(cg_context) {} + + CRU_DELETE_COPY(QuartzCGContextPainter) + CRU_DELETE_MOVE(QuartzCGContextPainter) + + ~QuartzCGContextPainter() override = default; public: Matrix GetTransform() override; -- cgit v1.2.3