forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
CoreGraphics iOS xcode9 beta1
Miguel de Icaza edited this page Jul 19, 2017
·
4 revisions
#CoreGraphics.framework
https://github.com/xamarin/xamarin-macios/pull/2181
Issue:
- The key kCGColorConversionTRCSize's type is not documented
- CGDataProviderGetInfo return type is not clear
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h 2016-09-29 00:51:33.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h 2017-05-20 01:44:32.000000000 -0400
@@ -41,9 +41,15 @@
/* CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired */
CG_EXTERN const CFStringRef kCGColorConversionBlackPointCompensation CG_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
+CG_EXTERN const CFStringRef kCGColorConversionTRCSize CG_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
CF_ASSUME_NONNULL_END
CF_IMPLICIT_BRIDGING_DISABLED
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h 2016-09-29 00:51:34.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h 2017-05-20 02:06:07.000000000 -0400
@@ -180,6 +187,9 @@
CGDataProviderRef cg_nullable provider)
CG_AVAILABLE_STARTING(__MAC_10_3, __IPHONE_2_0);
+CG_EXTERN void* __nullable CGDataProviderGetInfo(CGDataProviderRef cg_nullable provider)
+ CG_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
CF_ASSUME_NONNULL_END
CF_IMPLICIT_BRIDGING_DISABLED
f -ruN /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h 2016-08-06 02:28:20.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h 2017-05-25 04:48:03.000000000 -0400
@@ -9,8 +9,8 @@
#include <CoreFoundation/CFAvailability.h>
#include <stdint.h>
-typedef struct CGPath *CGMutablePathRef;
-typedef const struct CGPath *CGPathRef;
+typedef struct CF_BRIDGED_TYPE(id) CGPath *CGMutablePathRef;
+typedef const struct CF_BRIDGED_TYPE(id) CGPath *CGPathRef;
#include <CoreGraphics/CGBase.h>
#include <CoreGraphics/CGAffineTransform.h>
@@ -388,6 +388,11 @@
CGPathApplierFunction cg_nullable function)
CG_AVAILABLE_STARTING(__MAC_10_2, __IPHONE_2_0);
+typedef void (^CGPathApplyBlock)(const CGPathElement * element);
+
+CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)
+ CG_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
CF_ASSUME_NONNULL_END
CF_IMPLICIT_BRIDGING_DISABLED