diff options
author | crupest <crupest@outlook.com> | 2022-02-02 19:52:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-02 19:52:24 +0800 |
commit | 41623c6ad6f42ca5d6e9a38061f809929641e5c6 (patch) | |
tree | 594df8c4450d42eec9d8ef2daab56e3fe7791276 /include/cru/osx | |
parent | f0beab8e5f84ba2c5367f7edadebff0af95d1626 (diff) | |
download | cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.tar.gz cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.tar.bz2 cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.zip |
...
Diffstat (limited to 'include/cru/osx')
-rw-r--r-- | include/cru/osx/graphics/quartz/Image.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/osx/graphics/quartz/Image.hpp b/include/cru/osx/graphics/quartz/Image.hpp index 16b1ca2c..62b7fa8b 100644 --- a/include/cru/osx/graphics/quartz/Image.hpp +++ b/include/cru/osx/graphics/quartz/Image.hpp @@ -17,9 +17,15 @@ class QuartzImage : public OsxQuartzResource, public virtual IImage { ~QuartzImage() override; public: + float GetWidth() override; + float GetHeight() override; + + std::unique_ptr<IImage> CreateWithRect(const Rect& rect) override; + CGImageRef GetCGImage() const { return image_; } private: + IImageFactory* image_factory_; CGImageRef image_; bool auto_release_ = false; }; |