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/platform/graphics/quartz/Convert.h | |
| parent | 9e0c9d3499bc50c3534b4dc500d8b5d0b5f22752 (diff) | |
| download | cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.tar.gz cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.tar.bz2 cru-8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6.zip | |
...
Diffstat (limited to 'include/cru/platform/graphics/quartz/Convert.h')
| -rw-r--r-- | include/cru/platform/graphics/quartz/Convert.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/quartz/Convert.h b/include/cru/platform/graphics/quartz/Convert.h new file mode 100644 index 00000000..c7dab7c9 --- /dev/null +++ b/include/cru/platform/graphics/quartz/Convert.h @@ -0,0 +1,24 @@ +#pragma once +#include "cru/common/Range.h" +#include "cru/common/String.h" +#include "cru/common/io/Stream.h" +#include "cru/platform/Matrix.h" + +#include <CoreGraphics/CoreGraphics.h> + +namespace cru::platform::graphics::quartz { +CGAffineTransform Convert(const Matrix& matrix); +Matrix Convert(const CGAffineTransform& matrix); + +CGPoint Convert(const Point& point); +Point Convert(const CGPoint& point); + +CGSize Convert(const Size& size); +Size Convert(const CGSize& size); + +CGRect Convert(const Rect& rect); +Rect Convert(const CGRect& rect); + +CGDataProviderRef ConvertStreamToCGDataProvider(io::Stream* stream); +CGDataConsumerRef ConvertStreamToCGDataConsumer(io::Stream* stream); +} // namespace cru::platform::graphics::quartz |
