diff options
author | crupest <crupest@outlook.com> | 2022-05-15 14:08:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-15 14:08:06 +0800 |
commit | 8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6 (patch) | |
tree | 77e41cc14264060517c0f7ed95837012afb8342e /include/cru/osx/graphics/quartz/Image.h | |
parent | 9e0c9d3499bc50c3534b4dc500d8b5d0b5f22752 (diff) | |
download | cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.tar.gz cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.tar.bz2 cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.zip |
...
Diffstat (limited to 'include/cru/osx/graphics/quartz/Image.h')
-rw-r--r-- | include/cru/osx/graphics/quartz/Image.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/cru/osx/graphics/quartz/Image.h b/include/cru/osx/graphics/quartz/Image.h deleted file mode 100644 index 5b3aead9..00000000 --- a/include/cru/osx/graphics/quartz/Image.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once -#include "Resource.h" -#include "cru/platform/graphics/Image.h" -#include "cru/platform/graphics/ImageFactory.h" - -#include <CoreGraphics/CoreGraphics.h> - -namespace cru::platform::graphics::osx::quartz { -class QuartzImage : public OsxQuartzResource, public virtual IImage { - public: - QuartzImage(IGraphicsFactory* graphics_factory, IImageFactory* image_factory, - CGImageRef image, bool auto_release, - unsigned char* buffer = nullptr); - - CRU_DELETE_COPY(QuartzImage) - CRU_DELETE_MOVE(QuartzImage) - - ~QuartzImage() override; - - public: - float GetWidth() override; - float GetHeight() override; - - std::unique_ptr<IImage> CreateWithRect(const Rect& rect) override; - - std::unique_ptr<IPainter> CreatePainter() override; - - CGImageRef GetCGImage() const { return image_; } - - private: - IImageFactory* image_factory_; - CGImageRef image_; - bool auto_release_ = false; - - unsigned char* buffer_; -}; -} // namespace cru::platform::graphics::osx::quartz |