forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
CoreGraphics iOS xcode9 beta5
Vincent Dondain edited this page Aug 7, 2017
·
1 revision
#CoreGraphics.framework
diff -ruN /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode9-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h
--- /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2017-07-14 04:28:48.000000000 -0400
+++ /Applications/Xcode9-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2017-07-26 05:21:47.000000000 -0400
@@ -98,6 +98,14 @@
CG_EXTERN const CFStringRef kCGColorSpaceGenericXYZ
CG_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+/* The name of the "Generic" L*a*b* color space. This is the same as
+ L*a*b* colorspace created by `CGColorSpaceCreateLab' with
+ white_point[0.9505, 1.0, 1.0890] (i.e. D65), black_point[0.0, 0.0, 0.0]
+ and range [-128, 127, -128, 127]. */
+
+CG_EXTERN const CFStringRef kCGColorSpaceGenericLab
+CG_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
CG_EXTERN const CFStringRef kCGColorSpaceACESCGLinear
CG_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
@@ -278,9 +286,24 @@
CG_EXTERN void CGColorSpaceRelease(CGColorSpaceRef cg_nullable space)
CG_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_2_0);
-/* Return the name used to create the color space `space', or NULL if the
- color space was not created using `CGColorSpaceCreateWithName'. */
+/* Return the system name of the color space. This applies to all color spaces
+ created using `CGColorSpaceCreateWithName' as well as to ICC-based colorspaces
+ created using `CGColorSpaceCreateWithICCData' or `CGColorSpaceCreateICCBased'
+ if they are equivalent to respective named system color spaces. Device color spaces
+ also return unique names. This function will return NULL for other color spaces.
+ Example:
+ CGColorSpaceRef space = CGColorSpaceCreateWithICCData(icc_data);
+ CFStringRef name = CGColorSpaceGetName(space);
+ if (name != NULL && CFEqual(name, kCGColorSpaceDisplayP3)) {
+ // your color space is Display P3
+ ...
+ }
+ */
+
+CG_EXTERN CFStringRef __nullable CGColorSpaceGetName(CGColorSpaceRef cg_nullable space)
+ CG_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+/* Same as `CGColorSpaceGetName' but with ownership released to the caller. */
CG_EXTERN CFStringRef __nullable CGColorSpaceCopyName(CGColorSpaceRef cg_nullable space)
CG_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_10_0);
diff -ruN /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode9-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes
--- /Applications/Xcode9-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2017-07-14 02:16:20.000000000 -0400
+++ /Applications/Xcode9-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2017-07-28 04:02:25.000000000 -0400
@@ -175,6 +175,9 @@
# merged count and pointer to single array property
SwiftName: CGColorSpace.__unsafeGetColorTable(self:_:)
SwiftPrivate: true
+- Name: CGColorSpaceGetName
+ SwiftName: getter:CGColorSpace.__name(self:)
+ SwiftPrivate: true
# CGContext
#