forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
CoreGraphics macOS xcode9 beta2
Vincent Dondain edited this page Jun 21, 2017
·
1 revision
#CoreGraphics.framework
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2017-05-20 01:58:09.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2017-06-09 18:24:06.000000000 -0400
@@ -213,8 +213,6 @@
CG_EXTERN CGColorSpaceRef CGColorSpaceCreateWithICCData(CFTypeRef cg_nullable data)
CG_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
-#define CGColorSpaceCreateWithICCProfile CGColorSpaceCreateWithICCData
-
/* Create an ICC-based color space. `nComponents' specifies the number of
color components in the color space defined by the ICC profile data. This
must match the number of components actually in the ICC profile, and must
@@ -331,8 +329,6 @@
CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCData(CGColorSpaceRef cg_nullable space)
CG_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
-#define CGColorSpaceCopyICCProfile CGColorSpaceCopyICCData
-
/* Return true if gamut of the RGB color space is greater than 85% of NTSC gamut */
CG_EXTERN bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef)
@@ -344,6 +340,17 @@
CG_EXTERN bool CGColorSpaceSupportsOutput(CGColorSpaceRef space)
CG_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
+/* Deprecated functions */
+
+/* Please use `CGColorSpaceCreateWithICCData' */
+CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCProfile(CFDataRef cg_nullable data)
+ CG_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_13, __IPHONE_2_0, __IPHONE_11_0);
+
+/* Please use `CGColorSpaceCopyICCData' */
+CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCProfile(CGColorSpaceRef cg_nullable space)
+ CG_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_13, __IPHONE_2_0, __IPHONE_11_0);
+
+
CF_ASSUME_NONNULL_END
CF_IMPLICIT_BRIDGING_DISABLED
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h 2017-05-25 04:48:03.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h 2017-06-11 19:50:38.000000000 -0400
@@ -69,7 +69,7 @@
/* Return the font defined by the data provided by `provider', or NULL if
the font can't be created. */
-CG_EXTERN CGFontRef __nullable CGFontCreateWithDataProvider(
+CG_EXTERN CGFontRef cg_nullable CGFontCreateWithDataProvider(
CGDataProviderRef cg_nullable provider)
CG_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2017-05-25 04:48:03.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2017-06-11 19:50:38.000000000 -0400
@@ -427,6 +427,7 @@
# CGFont
- Name: CGFontCreateWithDataProvider
SwiftName: CGFont.init(_:)
+ NullabilityOfRet: O
- Name: CGFontCreateWithFontName
SwiftName: CGFont.init(_:)
- Name: CGFontCopyPostScriptName
@@ -773,3 +774,10 @@
# The below are not available in Swift
- Name: CGGlypDeprecatedEnum
Availability: nonswift
+
+SwiftVersions:
+- Version: 3
+ Functions:
+ - Name: CGFontCreateWithDataProvider
+ SwiftName: CGFont.init(_:)
+ NullabilityOfRet: N