CoreGraphics macOS 10.12 to 10.13 API Differences

CGBase.h
Added #def CG_NONNULL_ARRAY
Added #def CG_NULLABLE_ARRAY
Added #def CG_BOXABLE
CGColorConversionInfo.h
CGColorSpace.h
Declaration
FromCGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedGray(const CGFloat [3] whitePoint, const CGFloat [3] blackPoint, CGFloat gamma)
ToCGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedGray(const CGFloat _Nonnull[3] whitePoint, const CGFloat _Nullable[3] blackPoint, CGFloat gamma)

Declaration
FromCGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedRGB(const CGFloat [3] whitePoint, const CGFloat [3] blackPoint, const CGFloat [3] gamma, const CGFloat [9] matrix)
ToCGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedRGB(const CGFloat _Nonnull[3] whitePoint, const CGFloat _Nullable[3] blackPoint, const CGFloat _Nullable[3] gamma, const CGFloat _Nullable[9] matrix)

Declaration
FromCGColorSpaceRef _Nullable CGColorSpaceCreateLab(const CGFloat [3] whitePoint, const CGFloat [3] blackPoint, const CGFloat [4] range)
ToCGColorSpaceRef _Nullable CGColorSpaceCreateLab(const CGFloat _Nonnull[3] whitePoint, const CGFloat _Nullable[3] blackPoint, const CGFloat _Nullable[4] range)

Availability
FromAvailable
ToDeprecated

Availability
FromAvailable
ToDeprecated

CGContext.h
CGDataProvider.h
CGDirectDisplay.h
Declaration
Fromuint32_t CGShieldingWindowID(CGDirectDisplayID display)
ToCGWindowID CGShieldingWindowID(CGDirectDisplayID display)

Declaration
Fromint32_t CGShieldingWindowLevel(void)
ToCGWindowLevel CGShieldingWindowLevel(void)

CGEvent.h
CGFont.h
Declaration
FromCFDataRef _Nullable CGFontCreatePostScriptSubset(CGFontRef _Nullable font, CFStringRef _Nullable subsetName, CGFontPostScriptFormat format, const CGGlyph * _Nullable glyphs, size_t count, const CGGlyph [256] encoding)
ToCFDataRef _Nullable CGFontCreatePostScriptSubset(CGFontRef _Nullable font, CFStringRef _Nullable subsetName, CGFontPostScriptFormat format, const CGGlyph * _Nullable glyphs, size_t count, const CGGlyph _Nonnull[256] encoding)

Declaration
FromCFDataRef _Nullable CGFontCreatePostScriptEncoding(CGFontRef _Nullable font, const CGGlyph [256] encoding)
ToCFDataRef _Nullable CGFontCreatePostScriptEncoding(CGFontRef _Nullable font, const CGGlyph _Nonnull[256] encoding)

CGPath.h
CGPDFContext.h
CGPDFDocument.h
CGWindowLevel.h
Added #def kCGNumReservedBaseWindowLevels