diff options
author | crupest <crupest@outlook.com> | 2021-10-14 21:05:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-14 21:05:54 +0800 |
commit | 5ba45b02e1adee6b1ba15d70c9052cbc1f3c26c5 (patch) | |
tree | 5bc92750f30f4e3e97082a59cdbda065629f3ac8 /include/cru | |
parent | 7ee9420d02be02868b10056753e046f42d022c96 (diff) | |
download | cru-5ba45b02e1adee6b1ba15d70c9052cbc1f3c26c5.tar.gz cru-5ba45b02e1adee6b1ba15d70c9052cbc1f3c26c5.tar.bz2 cru-5ba45b02e1adee6b1ba15d70c9052cbc1f3c26c5.zip |
...
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/osx/Convert.hpp | 12 | ||||
-rw-r--r-- | include/cru/osx/graphics/quartz/Convert.hpp | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/include/cru/osx/Convert.hpp b/include/cru/osx/Convert.hpp new file mode 100644 index 00000000..6d2c0327 --- /dev/null +++ b/include/cru/osx/Convert.hpp @@ -0,0 +1,12 @@ +#pragma once +#include "Resource.hpp" + +#include <CoreFoundation/CFString.h> + +namespace cru::platform::osx { +CFStringRef Convert(const String& string); +String Convert(CFStringRef string); + +CFRange Convert(const Range& range); +Range Convert(const CFRange& range); +} // namespace cru::platform::osx diff --git a/include/cru/osx/graphics/quartz/Convert.hpp b/include/cru/osx/graphics/quartz/Convert.hpp index a8cc270e..1b5a186a 100644 --- a/include/cru/osx/graphics/quartz/Convert.hpp +++ b/include/cru/osx/graphics/quartz/Convert.hpp @@ -1,14 +1,11 @@ #pragma once -#include "cru/platform/Matrix.hpp" -#include "cru/common/String.hpp" #include "cru/common/Range.hpp" +#include "cru/common/String.hpp" +#include "cru/platform/Matrix.hpp" #include <CoreGraphics/CoreGraphics.h> namespace cru::platform::graphics::osx::quartz { -CFStringRef Convert(const String& string); -String Convert(CFStringRef string); - CGAffineTransform Convert(const Matrix& matrix); Matrix Convert(const CGAffineTransform& matrix); @@ -20,7 +17,4 @@ Size Convert(const CGSize& size); CGRect Convert(const Rect& rect); Rect Convert(const CGRect& rect); - -CFRange Convert(const Range& range); -Range Convert(const CFRange& range); } // namespace cru::platform::graphics::osx::quartz |