diff options
author | crupest <crupest@outlook.com> | 2021-08-22 21:15:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-08-22 21:15:33 +0800 |
commit | 7fa6f61b1d7b253f749be73a4bfeee9a77cd2e88 (patch) | |
tree | 387d0d8e18c581a7fcced157817f0b81c33c17e5 /include/cru/osx/graphics/quartz/Painter.hpp | |
parent | c0616e3892e4f713bea7abd217191b8713a1d1bf (diff) | |
download | cru-7fa6f61b1d7b253f749be73a4bfeee9a77cd2e88.tar.gz cru-7fa6f61b1d7b253f749be73a4bfeee9a77cd2e88.tar.bz2 cru-7fa6f61b1d7b253f749be73a4bfeee9a77cd2e88.zip |
...
Diffstat (limited to 'include/cru/osx/graphics/quartz/Painter.hpp')
-rw-r--r-- | include/cru/osx/graphics/quartz/Painter.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
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 <CoreGraphics/CoreGraphics.h> @@ -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; |