-
Notifications
You must be signed in to change notification settings - Fork 516
CoreGraphics tvOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Jun 18, 2024
·
3 revisions
#CoreGraphics.framework
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h 2024-04-18 07:41:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h 2024-05-30 05:12:28
@@ -53,85 +53,85 @@
/* The identity transform: [ 1 0 0 1 0 0 ]. */
CG_EXTERN const CGAffineTransform CGAffineTransformIdentity
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the transform [ a b c d tx ty ]. */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMake(CGFloat a, CGFloat b,
CGFloat c, CGFloat d, CGFloat tx, CGFloat ty)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a transform which translates by `(tx, ty)':
t' = [ 1 0 0 1 tx ty ] */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeTranslation(CGFloat tx,
- CGFloat ty) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGFloat ty) API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a transform which scales by `(sx, sy)':
t' = [ sx 0 0 sy 0 0 ] */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeScale(CGFloat sx, CGFloat sy)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a transform which rotates by `angle' radians:
t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeRotation(CGFloat angle)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `t' is the identity transform, false otherwise. */
CG_EXTERN bool CG_PURE CGAffineTransformIsIdentity(CGAffineTransform t)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Translate `t' by `(tx, ty)' and return the result:
t' = [ 1 0 0 1 tx ty ] * t */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformTranslate(CGAffineTransform t,
- CGFloat tx, CGFloat ty) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGFloat tx, CGFloat ty) API_AVAILABLE(macos(10.0), ios(2.0));
/* Scale `t' by `(sx, sy)' and return the result:
t' = [ sx 0 0 sy 0 0 ] * t */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformScale(CGAffineTransform t,
- CGFloat sx, CGFloat sy) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGFloat sx, CGFloat sy) API_AVAILABLE(macos(10.0), ios(2.0));
/* Rotate `t' by `angle' radians and return the result:
t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformRotate(CGAffineTransform t,
- CGFloat angle) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGFloat angle) API_AVAILABLE(macos(10.0), ios(2.0));
/* Invert `t' and return the result. If `t' has zero determinant, then `t'
is returned unchanged. */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformInvert(CGAffineTransform t)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Concatenate `t2' to `t1' and return the result:
t' = t1 * t2 */
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformConcat(CGAffineTransform t1,
- CGAffineTransform t2) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGAffineTransform t2) API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `t1' and `t2' are equal, false otherwise. */
CG_EXTERN bool CG_PURE CGAffineTransformEqualToTransform(CGAffineTransform t1,
- CGAffineTransform t2) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CGAffineTransform t2) API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `point' by `t' and return the result:
p' = p * t
where p = [ x y 1 ]. */
CG_EXTERN CGPoint CG_PURE CGPointApplyAffineTransform(CGPoint point,
- CGAffineTransform t) CG_AVAILABLE_STARTING(10.0, 2.0);
+ CGAffineTransform t) API_AVAILABLE(macos(10.0), ios(2.0));
/* Transform `size' by `t' and return the result:
s' = s * t
where s = [ width height 0 ]. */
CG_EXTERN CGSize CG_PURE CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Transform `rect' by `t' and return the result. Since affine transforms do
not preserve rectangles in general, this function returns the smallest
@@ -141,7 +141,7 @@
transformed corners. */
CG_EXTERN CGRect CG_PURE CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/*! @abstract Decompose a CGAffineTransform into a scale * shear * rotation * translation
* @discussion This decomposition method may be used to provide insight into what a
@@ -158,14 +158,14 @@
* @return A decomposed set of geometric operations, the product of which is the CGAffineTransform. */
CG_EXTERN
CGAffineTransformComponents CG_PURE CGAffineTransformDecompose( CGAffineTransform transform )
-CF_REFINED_FOR_SWIFT CG_AVAILABLE_STARTING( 13.0, 16.0 );
+CF_REFINED_FOR_SWIFT API_AVAILABLE(macos(13.0), ios(16.0));
/*! @abstract Create CGAffineTransform from scale * shear * rotation * translation CGAffineTransformComponents
* @param components The set of CGAffineTransformComponents to use to create a new CGAffineTransform
* @return A new CGAffineTransform built from the provided components */
CG_EXTERN
CGAffineTransform CG_PURE CGAffineTransformMakeWithComponents( CGAffineTransformComponents components )
-CF_REFINED_FOR_SWIFT CG_AVAILABLE_STARTING( 13.0, 16.0 );
+CF_REFINED_FOR_SWIFT API_AVAILABLE(macos(13.0), ios(16.0));
/*** Definitions of inline functions. ***/
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h 2024-04-18 07:41:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h 2024-05-30 04:30:54
@@ -168,32 +168,7 @@
# endif
#endif
-/* Define `CG_AVAILABLE_STARTING' and `CG_AVAILABLE_BUT_DEPRECATED'. */
-
-#define GET_CG_AVAIL_MACRO(_1,_2,NAME,...) NAME
-#define CG_AVAILABLE_STARTING(...) GET_CG_AVAIL_MACRO(__VA_ARGS__, CG_AVAILABLE_STARTING2, CG_AVAILABLE_STARTING1)(__VA_ARGS__)
-#define CG_AVAILABLE_STARTING_IOS(i) API_AVAILABLE(ios(i))
-#define CG_AVAILABLE_STARTING1(m) API_AVAILABLE(macos(m))
-#define CG_AVAILABLE_STARTING2(m,i) API_AVAILABLE(macos(m), ios(i))
-
-#define GET_CG_AVAIL_BUT_DEPR_MACRO(_1,_2,_3,_4,_5,NAME,...) NAME
-#define CG_AVAILABLE_BUT_DEPRECATED(...) GET_CG_AVAIL_BUT_DEPR_MACRO(__VA_ARGS__, CG_AVAILABLE_BUT_DEPRECATED5, CG_AVAILABLE_BUT_DEPRECATED4, CG_AVAILABLE_BUT_DEPRECATED3, CG_AVAILABLE_BUT_DEPRECATED2, CG_AVAILABLE_BUT_DEPRECATED1)(__VA_ARGS__)
-#define CG_AVAILABLE_BUT_DEPRECATED1(m0)
-#define CG_AVAILABLE_BUT_DEPRECATED2(m0,m1) API_DEPRECATED("No longer supported", macos(m0,m1))
-#define CG_AVAILABLE_BUT_DEPRECATED3(m0,m1,w) API_DEPRECATED(w, macos(m0,m1))
-#define CG_AVAILABLE_BUT_DEPRECATED4(m0,m1,i0,i1) API_DEPRECATED("No longer supported", macos(m0,m1), ios(i0,i1))
-#define CG_AVAILABLE_BUT_DEPRECATED5(m0,m1,i0,i1,w) API_DEPRECATED(w, macos(m0,m1), ios(i0,i1))
-#define CG_UNAVAILABLE_DESKTOP API_UNAVAILABLE(macos)
-#define CG_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos)
-
#if (defined(TARGET_OS_LINUX) && TARGET_OS_LINUX) || defined(CG_LINUX)
-# undef __OSX_AVAILABLE_STARTING
-# undef __OSX_AVAILABLE_BUT_DEPRECATED
-# undef CG_AVAILABLE_STARTING
-# undef CG_AVAILABLE_STARTING_IOS
-# undef CG_AVAILABLE_BUT_DEPRECATED
-# undef CG_UNAVAILABLE_DESKTOP
-# undef CG_UNAVAILABLE_EMBEDDED
# if defined(__x86_64__)
typedef unsigned int boolean_t;
@@ -236,16 +211,6 @@
CG_TV_VERSION(__TVOS_14_0) || \
CG_WATCH_VERSION(__WATCHOS_7_0) || \
CG_BRIDGE_VERSION(50000))
-#endif
-
-#ifndef __OSX_AVAILABLE_STARTING
-# define __OSX_AVAILABLE_STARTING(m0,i)
-# define __OSX_AVAILABLE_BUT_DEPRECATED(m0,m1,i0,i1)
-# define CG_AVAILABLE_STARTING(...)
-# define CG_AVAILABLE_STARTING_IOS(...)
-# define CG_AVAILABLE_BUT_DEPRECATED(...)
-# define CG_UNAVAILABLE_DESKTOP
-# define CG_UNAVAILABLE_EMBEDDED
#endif
/* Definition of `__CG_STATIC_ASSERT'. */
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h 2024-04-18 07:41:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h 2024-05-30 03:53:59
@@ -44,7 +44,7 @@
size_t bytesPerRow, CGColorSpaceRef cg_nullable space, uint32_t bitmapInfo,
CGBitmapContextReleaseDataCallback __nullable releaseCallback,
void * __nullable releaseInfo)
- CG_AVAILABLE_STARTING(10.6, 4.0);
+ API_AVAILABLE(macos(10.6), ios(4.0));
/* Create a bitmap context. The context draws into a bitmap which is `width'
pixels wide and `height' pixels high. The number of components for each
@@ -65,64 +65,64 @@
CG_EXTERN CGContextRef __nullable CGBitmapContextCreate(void * __nullable data,
size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow,
CGColorSpaceRef cg_nullable space, uint32_t bitmapInfo)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the data associated with the bitmap context `context', or NULL if
`context' is not a bitmap context. */
CG_EXTERN void * __nullable CGBitmapContextGetData(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the width of the bitmap context `context', or 0 if `context' is
not a bitmap context. */
CG_EXTERN size_t CGBitmapContextGetWidth(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the height of the bitmap context `context', or 0 if `context' is
not a bitmap context. */
CG_EXTERN size_t CGBitmapContextGetHeight(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the bits per component of the bitmap context `context', or 0 if
`context' is not a bitmap context. */
CG_EXTERN size_t CGBitmapContextGetBitsPerComponent(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the bits per pixel of the bitmap context `context', or 0 if
`context' is not a bitmap context. */
CG_EXTERN size_t CGBitmapContextGetBitsPerPixel(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the bytes per row of the bitmap context `context', or 0 if
`context' is not a bitmap context. */
CG_EXTERN size_t CGBitmapContextGetBytesPerRow(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the color space of the bitmap context `context', or NULL if
`context' is not a bitmap context. */
CG_EXTERN CGColorSpaceRef __nullable CGBitmapContextGetColorSpace(
CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the alpha info of the bitmap context `context', or
"kCGImageAlphaNone" if `context' is not a bitmap context. */
CG_EXTERN CGImageAlphaInfo CGBitmapContextGetAlphaInfo(
CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the bitmap info of the bitmap context `context', or 0 if `context'
is not a bitmap context. */
CG_EXTERN CGBitmapInfo CGBitmapContextGetBitmapInfo(
CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return an image containing a snapshot of the bitmap context `context'. If
context is not a bitmap context, or if the image cannot be created for
@@ -139,7 +139,7 @@
CG_EXTERN CGImageRef __nullable CGBitmapContextCreateImage(
CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h 2024-04-18 07:10:24
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h 2024-05-30 03:46:12
@@ -25,31 +25,31 @@
CG_EXTERN CGColorRef __nullable CGColorCreate(CGColorSpaceRef cg_nullable space,
const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Create a color in the "Generic" gray color space. */
CG_EXTERN CGColorRef CGColorCreateGenericGray(CGFloat gray, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.5, 13.0);
+ API_AVAILABLE(macos(10.5), ios(13.0));
/* Create a color in the "Generic" RGB color space. */
CG_EXTERN CGColorRef CGColorCreateGenericRGB(CGFloat red, CGFloat green,
- CGFloat blue, CGFloat alpha) CG_AVAILABLE_STARTING(10.5, 13.0);
+ CGFloat blue, CGFloat alpha) API_AVAILABLE(macos(10.5), ios(13.0));
/* Create a color in the "Generic" CMYK color space. */
CG_EXTERN CGColorRef CGColorCreateGenericCMYK(CGFloat cyan, CGFloat magenta,
- CGFloat yellow, CGFloat black, CGFloat alpha) CG_AVAILABLE_STARTING(10.5, 13.0);
+ CGFloat yellow, CGFloat black, CGFloat alpha) API_AVAILABLE(macos(10.5), ios(13.0));
/* Create a color in the "Generic Gray Gamma 2.2 color space. */
-CG_EXTERN CGColorRef CGColorCreateGenericGrayGamma2_2(CGFloat gray, CGFloat alpha) CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN CGColorRef CGColorCreateGenericGrayGamma2_2(CGFloat gray, CGFloat alpha) API_AVAILABLE(macos(10.15), ios(13.0));
/* Create a color in sRGB color space. */
CG_EXTERN CGColorRef CGColorCreateSRGB(CGFloat red, CGFloat green,
- CGFloat blue, CGFloat alpha) CG_AVAILABLE_STARTING(10.15, 13.0);
+ CGFloat blue, CGFloat alpha) API_AVAILABLE(macos(10.15), ios(13.0));
/* Return a constant color. As `CGColorGetConstantColor' is not a "Copy" or
"Create" function, it does not necessarily return a new reference each
@@ -59,92 +59,92 @@
CF type. */
CG_EXTERN CGColorRef __nullable CGColorGetConstantColor(CFStringRef cg_nullable colorName)
- CG_AVAILABLE_STARTING(10.5, 14.0);
+ API_AVAILABLE(macos(10.5), ios(14.0));
/* Create a color in color space `space' with pattern `pattern' and
components `components'. `space' must be a pattern color space. */
CG_EXTERN CGColorRef __nullable CGColorCreateWithPattern(CGColorSpaceRef cg_nullable space,
CGPatternRef cg_nullable pattern, const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Create a copy of `color'. */
CG_EXTERN CGColorRef __nullable CGColorCreateCopy(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Create a copy of `color' with alpha set to `alpha'. */
CG_EXTERN CGColorRef __nullable CGColorCreateCopyWithAlpha(CGColorRef cg_nullable color,
- CGFloat alpha) CG_AVAILABLE_STARTING(10.3, 2.0);
+ CGFloat alpha) API_AVAILABLE(macos(10.3), ios(2.0));
/* Create a copy of `color' by matching existing color to destination color space. */
CG_EXTERN CGColorRef __nullable CGColorCreateCopyByMatchingToColorSpace(cg_nullable CGColorSpaceRef,
CGColorRenderingIntent intent, CGColorRef cg_nullable color, __nullable CFDictionaryRef options)
- CG_AVAILABLE_STARTING(10.11, 9.0);
+ API_AVAILABLE(macos(10.11), ios(9.0));
/* Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain
does) if `color' is NULL. */
CG_EXTERN CGColorRef cg_nullable CGColorRetain(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease
does) if `color' is NULL. */
CG_EXTERN void CGColorRelease(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return true if `color1' is equal to `color2'; false otherwise. */
CG_EXTERN bool CGColorEqualToColor(CGColorRef cg_nullable color1, CGColorRef cg_nullable color2)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the number of color components (including alpha) associated with
`color'. */
CG_EXTERN size_t CGColorGetNumberOfComponents(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the color components (including alpha) associated with `color'. */
CG_EXTERN const CGFloat * __nullable CGColorGetComponents(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the alpha component associated with `color'. */
CG_EXTERN CGFloat CGColorGetAlpha(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the color space associated with `color'. */
CG_EXTERN CGColorSpaceRef __nullable CGColorGetColorSpace(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the pattern associated with `color', if it's a color in a pattern
color space; NULL otherwise. */
CG_EXTERN CGPatternRef __nullable CGColorGetPattern(CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the CFTypeID for CGColors. */
CG_EXTERN CFTypeID CGColorGetTypeID(void)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/*** Names of colors for use with `CGColorGetConstantColor'. ***/
/* Colors in the "Generic" gray color space. */
CG_EXTERN const CFStringRef kCGColorWhite
-CG_AVAILABLE_STARTING(10.5, 14.0);
+API_AVAILABLE(macos(10.5), ios(14.0));
CG_EXTERN const CFStringRef kCGColorBlack
- CG_AVAILABLE_STARTING(10.5, 14.0);
+ API_AVAILABLE(macos(10.5), ios(14.0));
CG_EXTERN const CFStringRef kCGColorClear
- CG_AVAILABLE_STARTING(10.5, 14.0);
+ API_AVAILABLE(macos(10.5), ios(14.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h 2024-05-30 03:53:59
@@ -29,10 +29,10 @@
*/
CG_EXTERN CGColorConversionInfoRef __nullable CGColorConversionInfoCreate(cg_nullable CGColorSpaceRef src, cg_nullable CGColorSpaceRef dst)
- CG_AVAILABLE_STARTING(10.12, 10.0);
+ API_AVAILABLE(macos(10.12), ios(10.0));
CG_EXTERN CGColorConversionInfoRef __nullable CGColorConversionInfoCreateWithOptions(__nonnull CGColorSpaceRef src, __nonnull CGColorSpaceRef dst, CFDictionaryRef __nullable options)
-CG_AVAILABLE_STARTING(10.14.6, 13);
+API_AVAILABLE(macos(10.14.6), ios(13));
/* Create CGColorConversionInfoRef from a list of CG color spaces, transform types and rendering intents.
* ColorSpaces are iterated from first to last. The list of triples:
@@ -42,16 +42,16 @@
CG_EXTERN CGColorConversionInfoRef __nullable CGColorConversionInfoCreateFromList
(CFDictionaryRef __nullable options, cg_nullable CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent, ...)
- CG_AVAILABLE_STARTING(10.12, 10.0);
+ API_AVAILABLE(macos(10.12), ios(10.0));
CG_EXTERN CGColorConversionInfoRef __nullable CGColorConversionInfoCreateFromListWithArguments
(CFDictionaryRef __nullable options, cg_nullable CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent, va_list)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
-/* CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired */
-CG_EXTERN const CFStringRef kCGColorConversionBlackPointCompensation CG_AVAILABLE_STARTING(10.12, 10.0);
+/* CFBooleanRef's which can be used as options to create CGColorConversionInfoRef */
+CG_EXTERN const CFStringRef kCGColorConversionBlackPointCompensation API_AVAILABLE(macos(10.12), ios(10.0));
-CG_EXTERN const CFStringRef kCGColorConversionTRCSize CG_AVAILABLE_STARTING(10.13, 11.0);
+CG_EXTERN const CFStringRef kCGColorConversionTRCSize API_AVAILABLE(macos(10.13), ios(11.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2024-04-18 06:30:20
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h 2024-05-30 03:00:17
@@ -52,7 +52,7 @@
kCGColorSpaceGenericGray. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericGray
- CG_AVAILABLE_STARTING(10.4, 9.0);
+ API_AVAILABLE(macos(10.4), ios(9.0));
/* The name of the "Generic" RGB color space. It is a legacy
color space so use it only if you definitely know that you
@@ -61,28 +61,28 @@
instead of kCGColorSpaceGenericRGB. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericRGB
- CG_AVAILABLE_STARTING(10.4, 9.0);
+ API_AVAILABLE(macos(10.4), ios(9.0));
/* The name of the "Generic" CMYK color space. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericCMYK
- CG_AVAILABLE_STARTING(10.4, 9.0);
+ API_AVAILABLE(macos(10.4), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3
- CG_AVAILABLE_STARTING(10.11.2, 9.3);
+ API_AVAILABLE(macos(10.11.2), ios(9.3));
/* The name of the "Generic" linear RGB color space. This is the same as
`kCGColorSpaceGenericRGB' but with a 1.0 gamma. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericRGBLinear
- CG_AVAILABLE_STARTING(10.5, 9.0);
+ API_AVAILABLE(macos(10.5), ios(9.0));
/* The name of the Adobe RGB (1998) color space. For more information, see
"Adobe RGB (1998) Color Image Encoding", Version 2005-05, Adobe Systems
Inc. (http://www.adobe.com). */
CG_EXTERN const CFStringRef kCGColorSpaceAdobeRGB1998
- CG_AVAILABLE_STARTING(10.5, 9.0);
+ API_AVAILABLE(macos(10.5), ios(9.0));
/* The name of the sRGB color space. The capitalization in the name, while
strictly inaccurate, avoids interpretational ambiguity. For more
@@ -91,15 +91,15 @@
management - Default RGB colour space - sRGB". */
CG_EXTERN const CFStringRef kCGColorSpaceSRGB
- CG_AVAILABLE_STARTING(10.5, 9.0);
+ API_AVAILABLE(macos(10.5), ios(9.0));
/* The "Generic" gray color space with γ = 2.2. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericGrayGamma2_2
- CG_AVAILABLE_STARTING(10.6, 9.0);
+ API_AVAILABLE(macos(10.6), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceGenericXYZ
- CG_AVAILABLE_STARTING(10.11, 9.0);
+ API_AVAILABLE(macos(10.11), ios(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
@@ -107,73 +107,73 @@
and range [-128, 128, -128, 128]. */
CG_EXTERN const CFStringRef kCGColorSpaceGenericLab
-CG_AVAILABLE_STARTING(10.13, 11.0);
+API_AVAILABLE(macos(10.13), ios(11.0));
CG_EXTERN const CFStringRef kCGColorSpaceACESCGLinear
-CG_AVAILABLE_STARTING(10.11, 9.0);
+API_AVAILABLE(macos(10.11), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_709
-CG_AVAILABLE_STARTING(10.11, 9.0);
+API_AVAILABLE(macos(10.11), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_709_PQ
-CG_AVAILABLE_STARTING(12.0, 15.1);
+API_AVAILABLE(macos(12.0), ios(15.1));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_709_HLG
-CG_AVAILABLE_STARTING(12.0, 15.1);
+API_AVAILABLE(macos(12.0), ios(15.1));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020
-CG_AVAILABLE_STARTING(10.11, 9.0);
+API_AVAILABLE(macos(10.11), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_sRGBGamma
-CG_AVAILABLE_STARTING(12.0, 15.1);
+API_AVAILABLE(macos(12.0), ios(15.1));
CG_EXTERN const CFStringRef kCGColorSpaceROMMRGB
-CG_AVAILABLE_STARTING(10.11, 9.0);
+API_AVAILABLE(macos(10.11), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceDCIP3
-CG_AVAILABLE_STARTING(10.11, 9.0);
+API_AVAILABLE(macos(10.11), ios(9.0));
CG_EXTERN const CFStringRef kCGColorSpaceLinearITUR_2020
-CG_AVAILABLE_STARTING(12.0, 15.0);
+API_AVAILABLE(macos(12.0), ios(15.0));
CG_EXTERN const CFStringRef kCGColorSpaceExtendedITUR_2020
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearITUR_2020
-CG_AVAILABLE_STARTING(10.14.3, 12.3);
+API_AVAILABLE(macos(10.14.3), ios(12.3));
CG_EXTERN const CFStringRef kCGColorSpaceLinearDisplayP3
-CG_AVAILABLE_STARTING(12.0, 15.0);
+API_AVAILABLE(macos(12.0), ios(15.0));
CG_EXTERN const CFStringRef kCGColorSpaceExtendedDisplayP3
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearDisplayP3
-CG_AVAILABLE_STARTING(10.14.3, 12.3);
+API_AVAILABLE(macos(10.14.3), ios(12.3));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2100_PQ
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2100_HLG
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_PQ
-CG_AVAILABLE_STARTING(10.15.4, 13.4);
+API_AVAILABLE(macos(10.15.4), ios(13.4));
CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_HLG
-CG_AVAILABLE_STARTING(10.14.6, 12.6);
+API_AVAILABLE(macos(10.14.6), ios(12.6));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_PQ
-CG_AVAILABLE_BUT_DEPRECATED(10.15.4, 11.0, 13.4, 14.0); // Use kCGColorSpaceITUR_2100_PQ.
+API_DEPRECATED("No longer supported", macos(10.15.4,11.0), ios(13.4,14.0)); // Use kCGColorSpaceITUR_2100_PQ.
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_HLG
-CG_AVAILABLE_BUT_DEPRECATED(10.15.6, 11.0, 12.6, 14.0); // Use kCGColorSpaceITUR_2100_HLG.
+API_DEPRECATED("No longer supported", macos(10.15.6,11.0), ios(12.6,14.0)); // Use kCGColorSpaceITUR_2100_HLG.
CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF
-CG_AVAILABLE_BUT_DEPRECATED(10.14.6, 10.15.4, 12.6, 13.4);
+API_DEPRECATED("No longer supported", macos(10.14.6,10.15.4), ios(12.6,13.4));
CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF
-CG_AVAILABLE_BUT_DEPRECATED(10.14.6, 10.15.4, 12.6, 13.4); // Use kCGColorSpaceITUR_2100_PQ.
+API_DEPRECATED("No longer supported", macos(10.14.6,10.15.4), ios(12.6,13.4)); // Use kCGColorSpaceITUR_2100_PQ.
/* The name of the extended sRGB color space.
The extended sRGB color space allows to specify colors beyond the range of [0.0, 1.0],
@@ -183,49 +183,49 @@
The capitalization in the name is for avoiding interpretational ambiguity. */
CG_EXTERN const CFStringRef kCGColorSpaceExtendedSRGB
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* The name of the sRGB color space variant with linear gamma */
CG_EXTERN const CFStringRef kCGColorSpaceLinearSRGB
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* The name of the extended sRGB color space variant with linear gamma */
CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearSRGB
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* The name of the extended Gray color space. This color space has the same colorimetry as Generic Gray 2.2.
The negative values will be encoded as the signed reflection of original encoding functions,
i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. */
CG_EXTERN const CFStringRef kCGColorSpaceExtendedGray
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* The name of the Generic Gray 2.2 color space variant with linear gamma */
CG_EXTERN const CFStringRef kCGColorSpaceLinearGray
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* The name of the extended Generic Gray 2.2 color space variant with linear gamma */
CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearGray
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* Create a DeviceGray color space. */
CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceGray(void)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a DeviceRGB color space. */
CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceRGB(void)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a DeviceCMYK color space. */
CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceCMYK(void)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a calibrated gray color space. `whitePoint' is an array of 3
numbers specifying the tristimulus value, in the CIE 1931 XYZ-space, of
@@ -237,7 +237,7 @@
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateCalibratedGray(const CGFloat
whitePoint[CG_NONNULL_ARRAY 3], const CGFloat blackPoint[__nullable 3], CGFloat gamma)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a calibrated RGB color space. `whitePoint' is an array of 3
numbers specifying the tristimulus value, in the CIE 1931 XYZ-space, of
@@ -254,7 +254,7 @@
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateCalibratedRGB(const CGFloat
whitePoint[CG_NONNULL_ARRAY 3], const CGFloat blackPoint[__nullable 3],
const CGFloat gamma[__nullable 3], const CGFloat matrix[__nullable 9])
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create an L*a*b* color space. `whitePoint' is an array of 3 numbers
specifying the tristimulus value, in the CIE 1931 XYZ-space, of the
@@ -267,13 +267,13 @@
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateLab(const CGFloat whitePoint[CG_NONNULL_ARRAY 3],
const CGFloat blackPoint[__nullable 3], const CGFloat range[__nullable 4])
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create an ICC-based color space using the ICC profile raw data specified by
`data' which can be either CFDataRef or CGDataProviderRef */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCData(CFTypeRef cg_nullable data)
- CG_AVAILABLE_STARTING(10.12, 10.0);
+ API_AVAILABLE(macos(10.12), ios(10.0));
/* Create an ICC-based color space. `nComponents' specifies the number of
color components in the color space defined by the ICC profile data. This
@@ -291,7 +291,7 @@
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateICCBased(size_t nComponents,
const CGFloat * __nullable range, CGDataProviderRef cg_nullable profile,
CGColorSpaceRef __nullable alternate)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create an indexed color space. A sample value in an indexed color space
is treated as an index into the color table of the color space. `base'
@@ -305,7 +305,7 @@
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateIndexed(CGColorSpaceRef cg_nullable baseSpace,
size_t lastIndex, const unsigned char * cg_nullable colorTable)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a pattern color space. `baseSpace' is the underlying color space
of the pattern color space. For colored patterns, `baseSpace' should be
@@ -313,7 +313,7 @@
colors which will be painted through the pattern. */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreatePattern(CGColorSpaceRef __nullable baseSpace)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
typedef const struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncProfileRef;
@@ -324,25 +324,25 @@
key/value pair in `options' dictionary. */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithColorSyncProfile(ColorSyncProfileRef __nullable, CFDictionaryRef __nullable options)
-CG_AVAILABLE_STARTING(12.0, 15.0);
+API_AVAILABLE(macos(12.0), ios(15.0));
/* Create a color space using `name' as the identifier for the color
space. */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithName(CFStringRef cg_nullable name)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain
does) if `space' is NULL. */
CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceRetain(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease
does) if `space' is NULL. */
CG_EXTERN void CGColorSpaceRelease(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the system name of the color space. This applies to all color spaces
created using `CGColorSpaceCreateWithName' as well as to ICC-based colorspaces
@@ -359,40 +359,40 @@
*/
CG_EXTERN CFStringRef __nullable CGColorSpaceGetName(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Same as `CGColorSpaceGetName' but with ownership released to the caller. */
CG_EXTERN CFStringRef __nullable CGColorSpaceCopyName(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.6, 10.0);
+ API_AVAILABLE(macos(10.6), ios(10.0));
/* Return the CFTypeID for CGColorSpaces. */
CG_EXTERN CFTypeID CGColorSpaceGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the number of color components in the color space `space'. */
CG_EXTERN size_t CGColorSpaceGetNumberOfComponents(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the color space model of `space'. */
CG_EXTERN CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the base color space of `space' if `space' is a pattern or indexed
color space; otherwise, return NULL. To determine whether a color space
is an indexed or pattern color space, use `CGColorSpaceGetModel'. */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceGetBaseColorSpace(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the number of entries in the color table of `space' if `space' is
an indexed color space; otherwise, return 0. To determine whether a color
space is an indexed color space, use `CGColorSpaceGetModel'. */
CG_EXTERN size_t CGColorSpaceGetColorTableCount(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Copy the entries in the color table of `space' to `table' if `space' is
an indexed color space; otherwise, do nothing. The array pointed to by
@@ -402,92 +402,92 @@
indexed color space, use `CGColorSpaceGetModel'. */
CG_EXTERN void CGColorSpaceGetColorTable(CGColorSpaceRef cg_nullable space,
- uint8_t * cg_nullable table) CG_AVAILABLE_STARTING(10.5, 2.0);
+ uint8_t * cg_nullable table) API_AVAILABLE(macos(10.5), ios(2.0));
/* Return a copy of the ICC profile data of `space', or NULL if the color space
doesn't have an ICC profile. */
CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCData(CGColorSpaceRef cg_nullable space)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* Return true if gamut of the RGB color space is greater than 85% of NTSC gamut */
CG_EXTERN bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* Return true if color space uses transfer functions defined in ITU Rec.2100
Please use CGColorSpaceUsesITUR_2100TF instead */
CG_EXTERN bool CGColorSpaceIsHDR(CGColorSpaceRef)
-CG_AVAILABLE_BUT_DEPRECATED(10.15, 10.15.4, 13.0, 13.4);
+API_AVAILABLE(macos(10.15), ios(13.0));
/* Return true if color space uses transfer functions defined in ITU Rec.2100 */
CG_EXTERN bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef)
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
CG_EXTERN bool CGColorSpaceIsPQBased(CGColorSpaceRef s)
-CG_AVAILABLE_STARTING(12.0, 15.0);
+API_AVAILABLE(macos(12.0), ios(15.0));
CG_EXTERN bool CGColorSpaceIsHLGBased(CGColorSpaceRef s)
-CG_AVAILABLE_STARTING(12.0, 15.0);
+API_AVAILABLE(macos(12.0), ios(15.0));
/* Return true if `space' can be used as a destination color space; false
otherwise. */
CG_EXTERN bool CGColorSpaceSupportsOutput(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* CGColorSpaceCopyPropertyList will return NULL for special color spaces
(e.g. kCGColorSpaceDeviceN or kCGColorSpacePattern), except Indexed Color Space */
CG_EXTERN CFPropertyListRef __nullable
CGColorSpaceCopyPropertyList(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
CG_EXTERN CGColorSpaceRef __nullable
CGColorSpaceCreateWithPropertyList(CFPropertyListRef plist)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* Return true if `space' uses extended range [-Inf, +Inf]; false
otherwise. */
CG_EXTERN bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(10.12, 10.0);
+API_AVAILABLE(macos(10.12), ios(10.0));
/* Create a linearized copy of the color space if the color space is matrix based.
Return NULL if otherwise */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateLinearized(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
/* Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is
matrix based. Return NULL if otherwise */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateExtended(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
/* Create a linearized copy of the color space which uses extended range [-Inf, +Inf]
if the color space is matrix based. Return NULL if otherwise */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateExtendedLinearized(CGColorSpaceRef space)
-CG_AVAILABLE_STARTING(11.0, 14.0);
+API_AVAILABLE(macos(11.0), ios(14.0));
/* Create a copy of the color space which uses standard range [0.0, 1.0]. */
CG_EXTERN CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange(CGColorSpaceRef s)
-CG_AVAILABLE_STARTING(13.0, 16.0);
+API_AVAILABLE(macos(13.0), ios(16.0));
/* Deprecated functions */
/* Please use `CGColorSpaceCreateWithICCData' */
CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCProfile(CFDataRef cg_nullable data)
- CG_AVAILABLE_BUT_DEPRECATED(10.5, 10.13, 2.0, 11.0);
+ API_DEPRECATED("No longer supported", macos(10.5,10.13), ios(2.0,11.0));
/* Please use `CGColorSpaceCopyICCData' */
CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCProfile(CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_BUT_DEPRECATED(10.5, 10.13, 2.0, 11.0);
+ API_DEPRECATED("No longer supported", macos(10.5,10.13), ios(2.0,11.0));
/* Please use `CGColorSpaceCreateWithColorSyncProfile' */
CG_EXTERN CGColorSpaceRef __nullable
CGColorSpaceCreateWithPlatformColorSpace(const void * cg_nullable ref)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 12.0, 9.0, 15.0);
+ API_DEPRECATED("No longer supported", macos(10.0,12.0), ios(9.0,15.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h 2024-04-18 08:40:59
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h 2024-05-30 10:36:13
@@ -55,7 +55,7 @@
typedef CF_ENUM (int32_t, CGTextEncoding) {
kCGEncodingFontSpecific,
kCGEncodingMacRoman
-} CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9, 2.0, 7.0);
+} API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* Interpolation quality. */
@@ -127,7 +127,7 @@
/* Return the CFTypeID for CGContextRefs. */
CG_EXTERN CFTypeID CGContextGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/** Graphics state functions. **/
@@ -136,13 +136,13 @@
not saved. */
CG_EXTERN void CGContextSaveGState(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Restore the current graphics state from the one on the top of the
graphics state stack, popping the graphics state stack in the process. */
CG_EXTERN void CGContextRestoreGState(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Coordinate space transformations. **/
@@ -151,77 +151,77 @@
CG_EXTERN void CGContextScaleCTM(CGContextRef cg_nullable c,
CGFloat sx, CGFloat sy)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Translate the current graphics state's transformation matrix (the CTM) by
`(tx, ty)'. */
CG_EXTERN void CGContextTranslateCTM(CGContextRef cg_nullable c,
CGFloat tx, CGFloat ty)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Rotate the current graphics state's transformation matrix (the CTM) by
`angle' radians. */
CG_EXTERN void CGContextRotateCTM(CGContextRef cg_nullable c, CGFloat angle)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Concatenate the current graphics state's transformation matrix (the CTM)
with the affine transform `transform'. */
CG_EXTERN void CGContextConcatCTM(CGContextRef cg_nullable c,
CGAffineTransform transform)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the current graphics state's transformation matrix. Returns
CGAffineTransformIdentity in case of inavlid context. */
CG_EXTERN CGAffineTransform CGContextGetCTM(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Drawing attribute functions. **/
/* Set the line width in the current graphics state to `width'. */
CG_EXTERN void CGContextSetLineWidth(CGContextRef cg_nullable c, CGFloat width)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the line cap in the current graphics state to `cap'. */
CG_EXTERN void CGContextSetLineCap(CGContextRef cg_nullable c, CGLineCap cap)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the line join in the current graphics state to `join'. */
CG_EXTERN void CGContextSetLineJoin(CGContextRef cg_nullable c, CGLineJoin join)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the miter limit in the current graphics state to `limit'. */
CG_EXTERN void CGContextSetMiterLimit(CGContextRef cg_nullable c, CGFloat limit)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the line dash patttern in the current graphics state of `c'. */
CG_EXTERN void CGContextSetLineDash(CGContextRef cg_nullable c, CGFloat phase,
const CGFloat * __nullable lengths, size_t count)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the path flatness parameter in the current graphics state of `c' to
`flatness'. */
CG_EXTERN void CGContextSetFlatness(CGContextRef cg_nullable c, CGFloat flatness)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the alpha value in the current graphics state of `c' to `alpha'. */
CG_EXTERN void CGContextSetAlpha(CGContextRef cg_nullable c, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the blend mode of `context' to `mode'. */
CG_EXTERN void CGContextSetBlendMode(CGContextRef cg_nullable c, CGBlendMode mode)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Path construction functions. **/
@@ -231,64 +231,64 @@
/* Begin a new path. The old path is discarded. */
CG_EXTERN void CGContextBeginPath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Start a new subpath at point `(x, y)' in the context's path. */
CG_EXTERN void CGContextMoveToPoint(CGContextRef cg_nullable c,
CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Append a straight line segment from the current point to `(x, y)'. */
CG_EXTERN void CGContextAddLineToPoint(CGContextRef cg_nullable c,
CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Append a cubic Bezier curve from the current point to `(x,y)', with
control points `(cp1x, cp1y)' and `(cp2x, cp2y)'. */
CG_EXTERN void CGContextAddCurveToPoint(CGContextRef cg_nullable c, CGFloat cp1x,
CGFloat cp1y, CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Append a quadratic curve from the current point to `(x, y)', with control
point `(cpx, cpy)'. */
CG_EXTERN void CGContextAddQuadCurveToPoint(CGContextRef cg_nullable c,
CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Close the current subpath of the context's path. */
CG_EXTERN void CGContextClosePath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Path construction convenience functions. **/
/* Add a single rect to the context's path. */
CG_EXTERN void CGContextAddRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Add a set of rects to the context's path. */
CG_EXTERN void CGContextAddRects(CGContextRef cg_nullable c,
const CGRect * __nullable rects, size_t count)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Add a set of lines to the context's path. */
CG_EXTERN void CGContextAddLines(CGContextRef cg_nullable c,
const CGPoint * __nullable points, size_t count)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Add an ellipse inside `rect' to the current path of `context'. See the
function `CGPathAddEllipseInRect' for more information on how the path
for the ellipse is constructed. */
CG_EXTERN void CGContextAddEllipseInRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Add an arc of a circle to the context's path, possibly preceded by a
straight line segment. `(x, y)' is the center of the arc; `radius' is its
@@ -299,7 +299,7 @@
CG_EXTERN void CGContextAddArc(CGContextRef cg_nullable c, CGFloat x, CGFloat y,
CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clockwise)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Add an arc of a circle to the context's path, possibly preceded by a
straight line segment. `radius' is the radius of the arc. The arc is
@@ -308,14 +308,14 @@
CG_EXTERN void CGContextAddArcToPoint(CGContextRef cg_nullable c,
CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2, CGFloat radius)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Add `path' to the path of context. The points in `path' are transformed
by the CTM of context before they are added. */
CG_EXTERN void CGContextAddPath(CGContextRef cg_nullable c,
CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/** Path stroking. **/
@@ -328,7 +328,7 @@
followed by a call to "CGContextClip". */
CG_EXTERN void CGContextReplacePathWithStrokedPath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Path information functions. **/
@@ -336,26 +336,26 @@
otherwise. */
CG_EXTERN bool CGContextIsPathEmpty(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the current point of the current subpath of the path of
`context'. */
CG_EXTERN CGPoint CGContextGetPathCurrentPoint(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the bounding box of the path of `context'. The bounding box is the
smallest rectangle completely enclosing all points in the path, including
control points for Bezier and quadratic curves. */
CG_EXTERN CGRect CGContextGetPathBoundingBox(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a copy of the path of `context'. The returned path is specified in
the current user space of `context'. */
CG_EXTERN CGPathRef __nullable CGContextCopyPath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `point' is contained in the current path of `context'. A
point is contained within a context's path if it is inside the painted
@@ -364,7 +364,7 @@
CG_EXTERN bool CGContextPathContainsPoint(CGContextRef cg_nullable c,
CGPoint point, CGPathDrawingMode mode)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Path drawing functions. **/
@@ -372,7 +372,7 @@
CG_EXTERN void CGContextDrawPath(CGContextRef cg_nullable c,
CGPathDrawingMode mode)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Path drawing convenience functions. **/
@@ -380,59 +380,59 @@
subpath of the path is implicitly closed. */
CG_EXTERN void CGContextFillPath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Fill the context's path using the even-odd fill rule. Any open subpath of
the path is implicitly closed. */
CG_EXTERN void CGContextEOFillPath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Stroke the context's path. */
CG_EXTERN void CGContextStrokePath(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Fill `rect' with the current fill color. */
CG_EXTERN void CGContextFillRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Fill `rects', an array of `count' CGRects, with the current fill
color. */
CG_EXTERN void CGContextFillRects(CGContextRef cg_nullable c,
const CGRect * __nullable rects, size_t count)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Stroke `rect' with the current stroke color and the current linewidth. */
CG_EXTERN void CGContextStrokeRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Stroke `rect' with the current stroke color, using `width' as the the
line width. */
CG_EXTERN void CGContextStrokeRectWithWidth(CGContextRef cg_nullable c,
CGRect rect, CGFloat width)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Clear `rect' (that is, set the region within the rect to transparent). */
CG_EXTERN void CGContextClearRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Fill an ellipse (an oval) inside `rect'. */
CG_EXTERN void CGContextFillEllipseInRect(CGContextRef cg_nullable c,
CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Stroke an ellipse (an oval) inside `rect'. */
CG_EXTERN void CGContextStrokeEllipseInRect(CGContextRef cg_nullable c,
CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Stroke a sequence of line segments one after another in `context'. The
line segments are specified by `points', an array of `count' CGPoints.
@@ -447,7 +447,7 @@
CG_EXTERN void CGContextStrokeLineSegments(CGContextRef cg_nullable c,
const CGPoint * __nullable points, size_t count)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Clipping functions. **/
@@ -456,14 +456,14 @@
the winding-number fill rule for deciding what's inside the path. */
CG_EXTERN void CGContextClip(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Intersect the context's path with the current clip path and use the
resulting path as the clip path for subsequent rendering operations. Use
the even-odd fill rule for deciding what's inside the path. */
CG_EXTERN void CGContextEOClip(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Reset the current clip of `c' to the default value. */
@@ -498,14 +498,14 @@
CG_EXTERN void CGContextClipToMask(CGContextRef cg_nullable c, CGRect rect,
CGImageRef cg_nullable mask)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the bounding box of the clip path of `c' in user space. The
bounding box is the smallest rectangle completely enclosing all points in
the clip. */
CG_EXTERN CGRect CGContextGetClipBoundingBox(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/** Clipping convenience functions. **/
@@ -513,7 +513,7 @@
resets the context's path to the empty path. */
CG_EXTERN void CGContextClipToRect(CGContextRef cg_nullable c, CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Intersect the current clipping path with the clipping region formed by
creating a path consisting of all rects in `rects'. Note that this
@@ -521,7 +521,7 @@
CG_EXTERN void CGContextClipToRects(CGContextRef cg_nullable c,
const CGRect * rects, size_t count)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Primitive color functions. **/
@@ -529,13 +529,13 @@
CG_EXTERN void CGContextSetFillColorWithColor(CGContextRef cg_nullable c,
CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Set the current stroke color in the context `c' to `color'. */
CG_EXTERN void CGContextSetStrokeColorWithColor(CGContextRef cg_nullable c,
CGColorRef cg_nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/** Color space functions. **/
@@ -545,7 +545,7 @@
CG_EXTERN void CGContextSetFillColorSpace(CGContextRef cg_nullable c,
CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current stroke color space in `context' to `space'. As a
side-effect, set the stroke color to a default value appropriate for the
@@ -553,7 +553,7 @@
CG_EXTERN void CGContextSetStrokeColorSpace(CGContextRef cg_nullable c,
CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Color functions. **/
@@ -565,7 +565,7 @@
CG_EXTERN void CGContextSetFillColor(CGContextRef cg_nullable c,
const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the components of the current stroke color in `context' to the values
specifed by `components'. The number of elements in `components' must be
@@ -575,7 +575,7 @@
CG_EXTERN void CGContextSetStrokeColor(CGContextRef cg_nullable c,
const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Pattern functions. **/
@@ -588,7 +588,7 @@
CG_EXTERN void CGContextSetFillPattern(CGContextRef cg_nullable c,
CGPatternRef cg_nullable pattern, const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the components of the current stroke color in `context' to the values
specifed by `components', and set the current stroke pattern to
@@ -599,13 +599,13 @@
CG_EXTERN void CGContextSetStrokePattern(CGContextRef cg_nullable c,
CGPatternRef cg_nullable pattern, const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the pattern phase in the current graphics state of `context' to
`phase'. */
CG_EXTERN void CGContextSetPatternPhase(CGContextRef cg_nullable c, CGSize phase)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Color convenience functions. **/
@@ -614,21 +614,21 @@
CG_EXTERN void CGContextSetGrayFillColor(CGContextRef cg_nullable c,
CGFloat gray, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current stroke color space in `context' to `DeviceGray' and set
the components of the current stroke color to `(gray, alpha)'. */
CG_EXTERN void CGContextSetGrayStrokeColor(CGContextRef cg_nullable c,
CGFloat gray, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current fill color space in `context' to `DeviceRGB' and set the
components of the current fill color to `(red, green, blue, alpha)'. */
CG_EXTERN void CGContextSetRGBFillColor(CGContextRef cg_nullable c, CGFloat red,
CGFloat green, CGFloat blue, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current stroke color space in `context' to `DeviceRGB' and set
the components of the current stroke color to `(red, green, blue,
@@ -636,7 +636,7 @@
CG_EXTERN void CGContextSetRGBStrokeColor(CGContextRef cg_nullable c,
CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current fill color space in `context' to `DeviceCMYK' and set the
components of the current fill color to `(cyan, magenta, yellow, black,
@@ -644,7 +644,7 @@
CG_EXTERN void CGContextSetCMYKFillColor(CGContextRef cg_nullable c,
CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the current stroke color space in `context' to `DeviceCMYK' and set
the components of the current stroke color to `(cyan, magenta, yellow,
@@ -652,7 +652,7 @@
CG_EXTERN void CGContextSetCMYKStrokeColor(CGContextRef cg_nullable c,
CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Rendering intent. **/
@@ -661,8 +661,18 @@
CG_EXTERN void CGContextSetRenderingIntent(CGContextRef cg_nullable c,
CGColorRenderingIntent intent)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
+/* Set target EDR headroom on a context to be used when rendering HDR content to the context.
+ Context 'c' has to be a bitmap context using either extended or HDR color space and
+ 'headroom' has to be a value greater than 1.0f. Return true on success and false on failure */
+
+CG_EXTERN bool CGContextSetEDRTargetHeadroom(CGContextRef __nonnull c, float headroom) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
+/* Return the EDR target headroom of the context `c'. */
+
+CG_EXTERN float CGContextGetEDRTargetHeadroom(CGContextRef c) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
/** Image functions. **/
/* Draw `image' in the rectangular area specified by `rect' in the context
@@ -670,7 +680,7 @@
CG_EXTERN void CGContextDrawImage(CGContextRef cg_nullable c, CGRect rect,
CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Draw `image' tiled in the context `c'. The image is scaled to the size
specified by `rect' in user space, positioned at the origin of `rect' in
@@ -681,8 +691,34 @@
CG_EXTERN void CGContextDrawTiledImage(CGContextRef cg_nullable c, CGRect rect,
CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
+typedef CF_ENUM (uint32_t, CGToneMapping) {
+ kCGToneMappingDefault = 0, /* A system default method will be used */
+ kCGToneMappingImageSpecificLumaScaling, /* Implements tone mapping of HDR content associated with the CGImage gain map */
+ kCGToneMappingReferenceWhiteBased, /* Implements a tone curve that preserves SDR contrast and rolls off HDR highlights */
+ kCGToneMappingITURecommended, /* Implements tone mapping based on ITU-R specifications for HDR-to-SDR and SDR-to-HDR conversions assuming mastering peak of 1000 nits */
+ kCGToneMappingEXRGamma, /* Implements Open EXR tone mapping gamma suitable for tone mapping images in extended linear sRGB color space to SDR */
+ kCGToneMappingNone /* Does not apply any tone mapping. Color converted values in extended color spaces will be clipped to SDR ([0.0-1.0]) range */
+} API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
+CG_EXTERN bool CGContextDrawImageApplyingToneMapping(CGContextRef __nonnull c, CGRect r, CGImageRef image, CGToneMapping method, CFDictionaryRef __nullable options) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
+/* kCGColorITURecommendedToneMapping allows for using HLG OOTF targeting 100 nits when converting HLG to SDR. */
+CG_EXTERN const CFStringRef kCGUse100nitsHLGOOTF API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
+
+/* kCGColorITURecommendedToneMapping allows for choosing BT1886 recommended gamma in lieu of CoreVideo Gamma. */
+CG_EXTERN const CFStringRef kCGUseBT1886ForCoreVideoGamma API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
+
+/* kCGColorITURecommendedToneMapping allows for skipping linear boost when converting non-HDR content (either SDR or extended range) to HDR. */
+CG_EXTERN const CFStringRef kCGSkipBoostToHDR API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
+
+/* kCGToneMappingEXRGamma allows for specifying custom parameters to override system defaults. */
+CG_EXTERN const CFStringRef kCGEXRToneMappingGammaDefog API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* default value: 0.0f range [0.0f, 0.01f] */
+CG_EXTERN const CFStringRef kCGEXRToneMappingGammaExposure API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* default value: 0.0f range [-10.0f, 10.0f] */
+CG_EXTERN const CFStringRef kCGEXRToneMappingGammaKneeLow API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* default value: 0.0f range [-2.85f, 3.0f] */
+CG_EXTERN const CFStringRef kCGEXRToneMappingGammaKneeHigh API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* default value: 5.0f range [3.5f, 7.5f] */
+
/* Return the interpolation quality for image rendering of `context'. The
interpolation quality is a gstate parameter which controls the level of
interpolation performed when an image is interpolated (for example, when
@@ -691,13 +727,13 @@
CG_EXTERN CGInterpolationQuality
CGContextGetInterpolationQuality(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the interpolation quality of `context' to `quality'. */
CG_EXTERN void CGContextSetInterpolationQuality(CGContextRef cg_nullable c,
CGInterpolationQuality quality)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Shadow support. **/
@@ -712,7 +748,7 @@
CG_EXTERN void CGContextSetShadowWithColor(CGContextRef cg_nullable c,
CGSize offset, CGFloat blur, CGColorRef __nullable color)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Equivalent to calling
CGContextSetShadowWithColor(context, offset, blur, color)
@@ -721,7 +757,7 @@
CG_EXTERN void CGContextSetShadow(CGContextRef cg_nullable c, CGSize offset,
CGFloat blur)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/** Gradient and shading functions. **/
@@ -735,7 +771,7 @@
CG_EXTERN void CGContextDrawLinearGradient(CGContextRef cg_nullable c,
CGGradientRef cg_nullable gradient, CGPoint startPoint, CGPoint endPoint,
CGGradientDrawingOptions options)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Fill the current clipping region of `context' with a radial gradient
between two circles defined by the center point and radius of each
@@ -749,7 +785,7 @@
CG_EXTERN void CGContextDrawRadialGradient(CGContextRef cg_nullable c,
CGGradientRef cg_nullable gradient, CGPoint startCenter, CGFloat startRadius,
CGPoint endCenter, CGFloat endRadius, CGGradientDrawingOptions options)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Fill the current clipping region of `context' with a conic gradient
defined by the center point and rotation angle. The location 0 of `gradient'
@@ -761,14 +797,14 @@
CG_EXTERN void CGContextDrawConicGradient(CGContextRef _Nonnull c,
CGGradientRef _Nullable gradient, CGPoint center, CGFloat angle)
- CG_AVAILABLE_STARTING(14.0, 17.0);
+ API_AVAILABLE(macos(14.0), ios(17.0));
/* Fill the current clipping region of `context' with `shading'. */
CG_EXTERN void CGContextDrawShading(CGContextRef cg_nullable c,
cg_nullable CGShadingRef shading)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/** Text functions. **/
@@ -778,51 +814,51 @@
CG_EXTERN void CGContextSetCharacterSpacing(CGContextRef cg_nullable c,
CGFloat spacing)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the user-space point at which text will be drawn in the context `c'
to `(x, y)'. */
CG_EXTERN void CGContextSetTextPosition(CGContextRef cg_nullable c,
CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the user-space point at which text will be drawn in `context'. */
CG_EXTERN CGPoint CGContextGetTextPosition(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the text matrix in the context `c' to `t'. */
CG_EXTERN void CGContextSetTextMatrix(CGContextRef cg_nullable c,
CGAffineTransform t)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the text matrix in the context `c'. Returns CGAffineTransformIdentity
if `c' is not a valid context. */
CG_EXTERN CGAffineTransform CGContextGetTextMatrix(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the text drawing mode in the current graphics state of the context
`c' to `mode'. */
CG_EXTERN void CGContextSetTextDrawingMode(CGContextRef cg_nullable c,
CGTextDrawingMode mode)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the font in the current graphics state of the context `c' to
`font'. */
CG_EXTERN void CGContextSetFont(CGContextRef cg_nullable c,
CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Set the font size in the current graphics state of the context `c' to
`size'. */
CG_EXTERN void CGContextSetFontSize(CGContextRef cg_nullable c, CGFloat size)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Draw `glyphs', an array of `count' CGGlyphs, at the points specified by
`positions'. Each element of `positions' specifies the position from the
@@ -831,7 +867,7 @@
CG_EXTERN void CGContextShowGlyphsAtPositions(CGContextRef cg_nullable c,
const CGGlyph * cg_nullable glyphs, const CGPoint * cg_nullable Lpositions,
size_t count)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/** PDF functions. **/
@@ -839,7 +875,7 @@
CG_EXTERN void CGContextDrawPDFPage(CGContextRef cg_nullable c,
CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/** Output page functions. **/
@@ -847,34 +883,34 @@
CG_EXTERN void CGContextBeginPage(CGContextRef cg_nullable c,
const CGRect * __nullable mediaBox)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* End the current page. */
CG_EXTERN void CGContextEndPage(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Context functions. **/
/* Equivalent to `CFRetain(c)'. */
CG_EXTERN CGContextRef cg_nullable CGContextRetain(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(c)'. */
CG_EXTERN void CGContextRelease(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Flush all drawing to the destination. */
CG_EXTERN void CGContextFlush(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Synchronized drawing. */
CG_EXTERN void CGContextSynchronize(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/** Antialiasing functions. **/
@@ -883,7 +919,7 @@
CG_EXTERN void CGContextSetShouldAntialias(CGContextRef cg_nullable c,
bool shouldAntialias)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Allow antialiasing in `context' if `allowsAntialiasing' is true; don't
allow it otherwise. This parameter is not part of the graphics state. A
@@ -892,7 +928,7 @@
CG_EXTERN void CGContextSetAllowsAntialiasing(CGContextRef cg_nullable c,
bool allowsAntialiasing)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Font display functions. **/
@@ -903,7 +939,7 @@
CG_EXTERN void CGContextSetShouldSmoothFonts(CGContextRef cg_nullable c,
bool shouldSmoothFonts)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* If `allowsFontSmoothing' is true, then allow font smoothing when
displaying text in `context'; otherwise, don't allow font smoothing. This
@@ -913,7 +949,7 @@
CG_EXTERN void CGContextSetAllowsFontSmoothing(CGContextRef cg_nullable c,
bool allowsFontSmoothing)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* If `shouldSubpixelPositionFonts' is true, then glyphs may be placed at
subpixel positions (if allowed) when displaying text in `context';
@@ -922,7 +958,7 @@
CG_EXTERN void CGContextSetShouldSubpixelPositionFonts(
CGContextRef cg_nullable c, bool shouldSubpixelPositionFonts)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* If `allowsFontSubpixelPositioning' is true, then allow font subpixel
positioning when displaying text in `context'; otherwise, don't allow
@@ -933,7 +969,7 @@
CG_EXTERN void CGContextSetAllowsFontSubpixelPositioning(
CGContextRef cg_nullable c, bool allowsFontSubpixelPositioning)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* If `shouldSubpixelQuantizeFonts' is true, then quantize the subpixel
positions of glyphs when displaying text in `context'; otherwise, don't
@@ -942,7 +978,7 @@
CG_EXTERN void CGContextSetShouldSubpixelQuantizeFonts(
CGContextRef cg_nullable c, bool shouldSubpixelQuantizeFonts)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* If `allowsFontSubpixelQuantization' is true, then allow font subpixel
quantization when displaying text in `context'; otherwise, don't allow
@@ -953,7 +989,7 @@
CG_EXTERN void CGContextSetAllowsFontSubpixelQuantization(
CGContextRef cg_nullable c, bool allowsFontSubpixelQuantization)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/** Transparency layer support. **/
@@ -975,7 +1011,7 @@
CG_EXTERN void CGContextBeginTransparencyLayer(CGContextRef cg_nullable c,
CFDictionaryRef __nullable auxiliaryInfo)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Begin a transparency layer in `context'. This function is identical to
`CGContextBeginTransparencyLayer' except that the content of the
@@ -983,12 +1019,12 @@
CG_EXTERN void CGContextBeginTransparencyLayerWithRect(
CGContextRef cg_nullable c, CGRect rect, CFDictionaryRef __nullable auxInfo)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* End a tranparency layer. */
CG_EXTERN void CGContextEndTransparencyLayer(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/** User space to device space tranformations. **/
@@ -997,31 +1033,31 @@
CG_EXTERN CGAffineTransform
CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef cg_nullable c)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `point' from the user space of `context' to device space. */
CG_EXTERN CGPoint CGContextConvertPointToDeviceSpace(CGContextRef cg_nullable c,
CGPoint point)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `point' from device space to the user space of `context'. */
CG_EXTERN CGPoint CGContextConvertPointToUserSpace(CGContextRef cg_nullable c,
CGPoint point)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `size' from the user space of `context' to device space. */
CG_EXTERN CGSize CGContextConvertSizeToDeviceSpace(CGContextRef cg_nullable c,
CGSize size)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `size' from device space to the user space of `context'. */
CG_EXTERN CGSize CGContextConvertSizeToUserSpace(CGContextRef cg_nullable c,
CGSize size)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `rect' from the user space of `context' to device space. Since
affine transforms do not preserve rectangles in general, this function
@@ -1030,7 +1066,7 @@
CG_EXTERN CGRect CGContextConvertRectToDeviceSpace(CGContextRef cg_nullable c,
CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Transform `rect' from device space to the user space of `context'. Since
affine transforms do not preserve rectangles in general, this function
@@ -1039,7 +1075,7 @@
CG_EXTERN CGRect CGContextConvertRectToUserSpace(CGContextRef cg_nullable c,
CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/** Deprecated functions. **/
@@ -1047,50 +1083,44 @@
CG_EXTERN void CGContextSelectFont(CGContextRef cg_nullable c,
const char * cg_nullable name, CGFloat size, CGTextEncoding textEncoding)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CoreText API instead. */
CG_EXTERN void CGContextShowText(CGContextRef cg_nullable c,
const char * cg_nullable string, size_t length)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CoreText API instead. */
CG_EXTERN void CGContextShowTextAtPoint(CGContextRef cg_nullable c,
CGFloat x, CGFloat y, const char * cg_nullable string, size_t length)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CoreText API instead. */
CG_EXTERN void CGContextShowGlyphs(CGContextRef cg_nullable c,
const CGGlyph * __nullable g, size_t count)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CoreText API instead. */
CG_EXTERN void CGContextShowGlyphsAtPoint(CGContextRef cg_nullable c, CGFloat x,
CGFloat y, const CGGlyph * __nullable glyphs, size_t count)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.0,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CoreText API instead. */
CG_EXTERN void CGContextShowGlyphsWithAdvances(CGContextRef cg_nullable c,
const CGGlyph * __nullable glyphs, const CGSize * __nullable advances,
size_t count)
- CG_AVAILABLE_BUT_DEPRECATED(10.3, 10.9,
- 2.0, 7.0);
+ API_DEPRECATED("No longer supported", macos(10.3,10.9), ios(2.0,7.0));
/* DEPRECATED; use the CGPDFPage API instead. */
CG_EXTERN void CGContextDrawPDFDocument(CGContextRef cg_nullable c, CGRect rect,
CGPDFDocumentRef cg_nullable document, int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h 2024-05-30 03:53:59
@@ -44,37 +44,37 @@
/* Return the CFTypeID for CGDataConsumerRefs. */
CG_EXTERN CFTypeID CGDataConsumerGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a data consumer using `callbacks' to handle the data. `info' is
passed to each of the callback functions. */
CG_EXTERN CGDataConsumerRef __nullable CGDataConsumerCreate(
void * __nullable info, const CGDataConsumerCallbacks * cg_nullable cbks)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a data consumer which writes data to `url'. */
CG_EXTERN CGDataConsumerRef __nullable CGDataConsumerCreateWithURL(
CFURLRef cg_nullable url)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a data consumer which writes to `data'. */
CG_EXTERN CGDataConsumerRef __nullable CGDataConsumerCreateWithCFData(
CFMutableDataRef cg_nullable data)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Equivalent to `CFRetain(consumer)'. */
CG_EXTERN CGDataConsumerRef cg_nullable CGDataConsumerRetain(
CGDataConsumerRef cg_nullable consumer)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(consumer)'. */
CG_EXTERN void CGDataConsumerRelease(cg_nullable CGDataConsumerRef consumer)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h 2024-04-18 06:30:20
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h 2024-05-30 03:53:59
@@ -115,7 +115,7 @@
/* Return the CFTypeID for CGDataProviderRefs. */
CG_EXTERN CFTypeID CGDataProviderGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a sequential-access data provider using `callbacks' to provide the
data. `info' is passed to each of the callback functions. */
@@ -123,7 +123,7 @@
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateSequential(
void * __nullable info,
const CGDataProviderSequentialCallbacks * cg_nullable callbacks)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Create a direct-access data provider using `callbacks' to supply `size'
bytes of data. `info' is passed to each of the callback functions.
@@ -132,7 +132,7 @@
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateDirect(
void * __nullable info, off_t size,
const CGDataProviderDirectCallbacks * cg_nullable callbacks)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* The callback used by `CGDataProviderCreateWithData'. */
@@ -146,38 +146,38 @@
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateWithData(
void * __nullable info, const void * cg_nullable data, size_t size,
CGDataProviderReleaseDataCallback cg_nullable releaseData)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a direct-access data provider which reads from `data'. */
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateWithCFData(
CFDataRef cg_nullable data)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a data provider reading from `url'. */
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateWithURL(
CFURLRef cg_nullable url)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a data provider reading from `filename'. */
CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateWithFilename(
const char * cg_nullable filename)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does)
if `provider' is NULL. */
CG_EXTERN CGDataProviderRef __nullable CGDataProviderRetain(
CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease
does) if `provider' is NULL. */
CG_EXTERN void CGDataProviderRelease(CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a copy of the data specified by provider. Returns NULL if a
complete copy of the data can't be obtained (for example, if the
@@ -185,10 +185,10 @@
CG_EXTERN CFDataRef __nullable CGDataProviderCopyData(
CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
CG_EXTERN void* __nullable CGDataProviderGetInfo(CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h 2024-03-22 20:10:30
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h 2024-05-30 05:16:57
@@ -55,7 +55,7 @@
/* Return the CFTypeID for CGFontRefs. */
CG_EXTERN CFTypeID CGFontGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a CGFontRef using `platformFontReference', a pointer to a
platform-specific font reference. For MacOS X, `platformFontReference'
@@ -63,14 +63,14 @@
CG_EXTERN CGFontRef __nullable CGFontCreateWithPlatformFont(
void * cg_nullable platformFontReference)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.6) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.6)) API_UNAVAILABLE(ios, tvos, watchos);
/* Return the font defined by the data provided by `provider', or NULL if
the font can't be created. */
CG_EXTERN CGFontRef cg_nullable CGFontCreateWithDataProvider(
CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the font identified by `name', corresponding to the font's
PostScript name or its full name, or NULL if the font can't be
@@ -78,7 +78,7 @@
CG_EXTERN CGFontRef __nullable CGFontCreateWithFontName(
CFStringRef cg_nullable name)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return a font based on `font' with the variation specification dictionary
`variations' applied to `font'. A variation specification dictionary
@@ -90,93 +90,93 @@
CG_EXTERN CGFontRef __nullable CGFontCreateCopyWithVariations(
CGFontRef cg_nullable font, CFDictionaryRef __nullable variations)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain
does) if `font' is NULL. */
CG_EXTERN CGFontRef cg_nullable CGFontRetain(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease
does) if `font' is NULL. */
CG_EXTERN void CGFontRelease(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the number of glyphs in `font'. */
CG_EXTERN size_t CGFontGetNumberOfGlyphs(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the glyph space units/em for `font'. */
CG_EXTERN int CGFontGetUnitsPerEm(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the PostScript name of `font'. */
CG_EXTERN CFStringRef __nullable CGFontCopyPostScriptName(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the "full name" of `font'. */
CG_EXTERN CFStringRef __nullable CGFontCopyFullName(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the ascent of `font'. The ascent is the maximum distance above the
baseline of glyphs in a font. The value is specified in glyph space
units. */
CG_EXTERN int CGFontGetAscent(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the descent of `font'. The descent is the maximum distance below
the baseline of glyphs in a font. The value is specified in glyph space
units. */
CG_EXTERN int CGFontGetDescent(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the leading of `font'. The leading is the spacing between
consecutive lines of text in a font. The value is specified in glyph
space units. */
CG_EXTERN int CGFontGetLeading(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the cap height of `font'. The cap height is the distance above the
baseline of the top of flat capital letters of glyphs in a font. The
value is specified in glyph space units. */
CG_EXTERN int CGFontGetCapHeight(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the x-height of `font'. The x-height is the distance above the
baseline of the top of flat, non-ascending lowercase letters (such as
"x") of glyphs in a font. The value is specified in glyph space units. */
CG_EXTERN int CGFontGetXHeight(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the font bounding box of `font'. The font bounding box is the
union of all of the bounding boxes for all the glyphs in a font. The
value is specified in glyph space units. */
CG_EXTERN CGRect CGFontGetFontBBox(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the italic angle of `font', measured in degrees counter-clockwise
from the vertical. */
CG_EXTERN CGFloat CGFontGetItalicAngle(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the thickness of the dominant vertical stems of glyphs in `font'.
The value is specified in glyph space units. */
CG_EXTERN CGFloat CGFontGetStemV(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return an array of the variation axis dictionaries for `font'. Each
variation axis dictionary contains values for the variation axis keys
@@ -184,7 +184,7 @@
variations. */
CG_EXTERN CFArrayRef __nullable CGFontCopyVariationAxes(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the variation specification dictionary from `font'. This
dictionary contains keys corresponding the variation axis names of the
@@ -194,7 +194,7 @@
variations. */
CG_EXTERN CFDictionaryRef __nullable CGFontCopyVariations(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Get the advance of each glyph in `glyphs', an array of `count' glyphs,
and return it in the corresponding entry of `advances', an array of
@@ -203,7 +203,7 @@
CG_EXTERN bool CGFontGetGlyphAdvances(CGFontRef cg_nullable font,
const CGGlyph * glyphs, size_t count, int * advances)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Get the bounding box of each glyph in `glyphs', an array of `count'
glyphs, and return it in the corresponding entry of `bboxes', an array of
@@ -213,28 +213,28 @@
CG_EXTERN bool CGFontGetGlyphBBoxes(CGFontRef cg_nullable font,
const CGGlyph * glyphs, size_t count, CGRect * bboxes)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the glyph associated with `name' in `font'. If `name' isn't found
in the font, return 0. */
CG_EXTERN CGGlyph CGFontGetGlyphWithGlyphName(
CGFontRef cg_nullable font, CFStringRef cg_nullable name)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the glyph name of `glyph' in `font', or NULL if `glyph' does not
appear in `font'. */
CG_EXTERN CFStringRef __nullable CGFontCopyGlyphNameForGlyph(
CGFontRef cg_nullable font, CGGlyph glyph)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return true if a subset in the PostScript format `format' can be created
for `font'; false otherwise. */
CG_EXTERN bool CGFontCanCreatePostScriptSubset(CGFontRef cg_nullable font,
CGFontPostScriptFormat format)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a subset of `font' named `subsetName' in the PostScript format
`format'. The subset will contain the glyphs specified by `glyphs', an
@@ -245,28 +245,28 @@
CGFontRef cg_nullable font, CFStringRef cg_nullable subsetName,
CGFontPostScriptFormat format, const CGGlyph * __nullable glyphs,
size_t count, const CGGlyph encoding[CG_NULLABLE_ARRAY 256])
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return a PostScript encoding of `font' containing glyphs in
`encoding'. */
CG_EXTERN CFDataRef __nullable CGFontCreatePostScriptEncoding(
CGFontRef cg_nullable font, const CGGlyph encoding[CG_NULLABLE_ARRAY 256])
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return an array of font table tags in `font'. Each entry in the array is
a four-byte value representing a single TrueType or OpenType font table
tag. */
CG_EXTERN CFArrayRef __nullable CGFontCopyTableTags(CGFontRef cg_nullable font)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return the table in `font' corresponding to `tag', or NULL if no such
table exists. */
CG_EXTERN CFDataRef __nullable CGFontCopyTableForTag(
CGFontRef cg_nullable font, uint32_t tag)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/*** Keys for the font variation axis dictionary. ***/
@@ -275,28 +275,28 @@
the name of the variation axis. */
CG_EXTERN const CFStringRef kCGFontVariationAxisName
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* The key used to obtain the minimum variation axis value from a variation
axis dictionary. The value obtained with this key is a CFNumberRef
specifying the minimum value of the variation axis. */
CG_EXTERN const CFStringRef kCGFontVariationAxisMinValue
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* The key used to obtain the maximum variation axis value from a variation
axis dictionary. The value obtained with this key is a CFNumberRef
specifying the maximum value of the variation axis. */
CG_EXTERN const CFStringRef kCGFontVariationAxisMaxValue
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* The key used to obtain the default variation axis value from a variation
axis dictionary. The value obtained with this key is a CFNumberRef
specifying the default value of the variation axis. */
CG_EXTERN const CFStringRef kCGFontVariationAxisDefaultValue
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Obsolete; don't use these. */
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h 2024-03-22 20:10:30
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h 2024-05-30 10:36:13
@@ -52,7 +52,7 @@
/* Return the CFTypeID for CGFunctionRefs. */
CG_EXTERN CFTypeID CGFunctionGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a CGFunction using `callbacks' to evaluate the function. `info' is
passed to each of the callback functions. `domainDimension' is the number
@@ -84,20 +84,20 @@
size_t domainDimension, const CGFloat *__nullable domain,
size_t rangeDimension, const CGFloat * __nullable range,
const CGFunctionCallbacks * cg_nullable callbacks)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain
does) if `function' is NULL. */
CG_EXTERN CGFunctionRef cg_nullable CGFunctionRetain(
CGFunctionRef cg_nullable function)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRelease(function)', except it doesn't crash (as
CFRelease does) if `function' is NULL. */
CG_EXTERN void CGFunctionRelease(CGFunctionRef cg_nullable function)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h 2024-05-30 03:00:17
@@ -61,29 +61,29 @@
/* The "zero" point -- equivalent to CGPointMake(0, 0). */
CG_EXTERN const CGPoint CGPointZero
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* The "zero" size -- equivalent to CGSizeMake(0, 0). */
CG_EXTERN const CGSize CGSizeZero
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0). */
CG_EXTERN const CGRect CGRectZero
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* The "empty" rect. This is the rectangle returned when, for example, we
intersect two disjoint rectangles. Note that the null rect is not the
same as the zero rect. */
CG_EXTERN const CGRect CGRectNull
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* The infinite rectangle. */
CG_EXTERN const CGRect CGRectInfinite
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Make a point from `(x, y)'. */
@@ -105,106 +105,106 @@
/* Return the leftmost x-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMinX(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the midpoint x-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMidX(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the rightmost x-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMaxX(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the smallest y-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMinY(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the midpoint y-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMidY(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the largest y-value of `rect'. */
CG_EXTERN CGFloat CGRectGetMaxY(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the width of `rect'. */
CG_EXTERN CGFloat CGRectGetWidth(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the height of `rect'. */
CG_EXTERN CGFloat CGRectGetHeight(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `point1' and `point2' are the same, false otherwise. */
CG_EXTERN bool CGPointEqualToPoint(CGPoint point1, CGPoint point2)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `size1' and `size2' are the same, false otherwise. */
CG_EXTERN bool CGSizeEqualToSize(CGSize size1, CGSize size2)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect1' and `rect2' are the same, false otherwise. */
CG_EXTERN bool CGRectEqualToRect(CGRect rect1, CGRect rect2)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Standardize `rect' -- i.e., convert it to an equivalent rect which has
positive width and height. */
CG_EXTERN CGRect CGRectStandardize(CGRect rect) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect' is empty (that is, if it has zero width or height),
false otherwise. A null rect is defined to be empty. */
CG_EXTERN bool CGRectIsEmpty(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect' is the null rectangle, false otherwise. */
CG_EXTERN bool CGRectIsNull(CGRect rect)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect' is the infinite rectangle, false otherwise. */
CG_EXTERN bool CGRectIsInfinite(CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Inset `rect' by `(dx, dy)' -- i.e., offset its origin by `(dx, dy)', and
decrease its size by `(2*dx, 2*dy)'. */
CG_EXTERN CGRect CGRectInset(CGRect rect, CGFloat dx, CGFloat dy) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Expand `rect' to the smallest rect containing it with integral origin and
size. */
CG_EXTERN CGRect CGRectIntegral(CGRect rect) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the union of `r1' and `r2'. */
CG_EXTERN CGRect CGRectUnion(CGRect r1, CGRect r2) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the intersection of `r1' and `r2'. This may return a null rect. */
CG_EXTERN CGRect CGRectIntersection(CGRect r1, CGRect r2) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Offset `rect' by `(dx, dy)'. */
CG_EXTERN CGRect CGRectOffset(CGRect rect, CGFloat dx, CGFloat dy) __attribute__ ((warn_unused_result))
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Make two new rectangles, `slice' and `remainder', by dividing `rect' with
a line that's parallel to one of its sides, specified by `edge' -- either
@@ -214,26 +214,26 @@
CG_EXTERN void CGRectDivide(CGRect rect, CGRect * slice,
CGRect * remainder, CGFloat amount, CGRectEdge edge)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `point' is contained in `rect', false otherwise. */
CG_EXTERN bool CGRectContainsPoint(CGRect rect, CGPoint point)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect2' is contained in `rect1', false otherwise. `rect2'
is contained in `rect1' if the union of `rect1' and `rect2' is equal to
`rect1'. */
CG_EXTERN bool CGRectContainsRect(CGRect rect1, CGRect rect2)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `rect1' intersects `rect2', false otherwise. `rect1'
intersects `rect2' if the intersection of `rect1' and `rect2' is not the
null rect. */
CG_EXTERN bool CGRectIntersectsRect(CGRect rect1, CGRect rect2)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/*** Persistent representations. ***/
@@ -241,7 +241,7 @@
CG_EXTERN CFDictionaryRef CGPointCreateDictionaryRepresentation(
CGPoint point)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Make a CGPoint from the contents of `dict' (presumably returned earlier
from `CGPointCreateDictionaryRepresentation') and store the value in
@@ -249,12 +249,12 @@
CG_EXTERN bool CGPointMakeWithDictionaryRepresentation(
CFDictionaryRef cg_nullable dict, CGPoint * cg_nullable point)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return a dictionary representation of `size'. */
CG_EXTERN CFDictionaryRef CGSizeCreateDictionaryRepresentation(CGSize size)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Make a CGSize from the contents of `dict' (presumably returned earlier
from `CGSizeCreateDictionaryRepresentation') and store the value in
@@ -262,12 +262,12 @@
CG_EXTERN bool CGSizeMakeWithDictionaryRepresentation(
CFDictionaryRef cg_nullable dict, CGSize * cg_nullable size)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Return a dictionary representation of `rect'. */
CG_EXTERN CFDictionaryRef CGRectCreateDictionaryRepresentation(CGRect)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Make a CGRect from the contents of `dict' (presumably returned earlier
from `CGRectCreateDictionaryRepresentation') and store the value in
@@ -275,7 +275,7 @@
CG_EXTERN bool CGRectMakeWithDictionaryRepresentation(
CFDictionaryRef cg_nullable dict, CGRect * cg_nullable rect)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/*** Definitions of inline functions. ***/
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h 2024-05-30 03:53:59
@@ -37,7 +37,7 @@
/* Return the CFTypeID for CGGradients. */
CG_EXTERN CFTypeID CGGradientGetTypeID(void)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Creates a gradient by pairing the color components provided in
`components' with locations provided in `locations'. If `locations' is
@@ -55,7 +55,7 @@
CG_EXTERN CGGradientRef __nullable CGGradientCreateWithColorComponents(
CGColorSpaceRef cg_nullable space, const CGFloat * cg_nullable components,
const CGFloat * __nullable locations, size_t count)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Creates a gradient by pairing the colors provided in `colors' with the
locations provided in `locations'. `colors' should be a non-empty array
@@ -77,20 +77,20 @@
CG_EXTERN CGGradientRef __nullable CGGradientCreateWithColors(
CGColorSpaceRef __nullable space, CFArrayRef cg_nullable colors,
const CGFloat * __nullable locations)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain'
does) if `gradient' is NULL. */
CG_EXTERN CGGradientRef cg_nullable CGGradientRetain(
CGGradientRef cg_nullable gradient)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease'
does) if `gradient' is NULL. */
CG_EXTERN void CGGradientRelease(CGGradientRef cg_nullable gradient)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h 2024-04-18 07:10:24
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h 2024-05-30 10:36:12
@@ -37,7 +37,7 @@
kCGImageByteOrder32Little = (2 << 12),
kCGImageByteOrder16Big = (3 << 12),
kCGImageByteOrder32Big = (4 << 12)
-} CG_AVAILABLE_STARTING(10.0, 2.0);
+} API_AVAILABLE(macos(10.0), ios(2.0));
typedef CF_ENUM(uint32_t, CGImagePixelFormatInfo) {
kCGImagePixelFormatMask = 0xF0000,
@@ -48,7 +48,7 @@
kCGImagePixelFormatRGBCIF10 = (4 << 16) /* Only for RGB 32 bits per pixel,
* 10 bits per component, kCGImageByteOrder32Little
* The 2 MSB of the pixel need to be set to 1 */
-} CG_AVAILABLE_STARTING(10.14, 12.0);
+} API_AVAILABLE(macos(10.14), ios(12.0));
typedef CF_OPTIONS(uint32_t, CGBitmapInfo) {
kCGBitmapAlphaInfoMask = 0x1F,
@@ -62,7 +62,7 @@
kCGBitmapByteOrder32Little = kCGImageByteOrder32Little,
kCGBitmapByteOrder16Big = kCGImageByteOrder16Big,
kCGBitmapByteOrder32Big = kCGImageByteOrder32Big
-} CG_AVAILABLE_STARTING(10.0, 2.0);
+} API_AVAILABLE(macos(10.0), ios(2.0));
#ifdef __BIG_ENDIAN__
static const CGBitmapInfo kCGBitmapByteOrder16Host = kCGBitmapByteOrder16Big;
@@ -75,7 +75,7 @@
/* Return the CFTypeID for CGImageRefs. */
CG_EXTERN CFTypeID CGImageGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create an image. */
@@ -85,7 +85,7 @@
CGDataProviderRef cg_nullable provider,
const CGFloat * __nullable decode, bool shouldInterpolate,
CGColorRenderingIntent intent)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create an image mask. Legal values for bits per component are 1, 2, 4 and 8.
* Bits per pixel must be either the same as bits per component or 8, with
@@ -96,13 +96,13 @@
size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,
CGDataProviderRef cg_nullable provider, const CGFloat * __nullable decode,
bool shouldInterpolate)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return a copy of `image'. Only the image structure itself is copied; the
underlying data is not. */
CG_EXTERN CGImageRef __nullable CGImageCreateCopy(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create an image from `source', a data provider of JPEG-encoded data. */
@@ -110,7 +110,7 @@
CGDataProviderRef cg_nullable source, const CGFloat * __nullable decode,
bool shouldInterpolate,
CGColorRenderingIntent intent)
- CG_AVAILABLE_STARTING(10.1, 2.0);
+ API_AVAILABLE(macos(10.1), ios(2.0));
/* Create an image using `source', a data provider for PNG-encoded data. */
@@ -118,7 +118,7 @@
CGDataProviderRef cg_nullable source, const CGFloat * __nullable decode,
bool shouldInterpolate,
CGColorRenderingIntent intent)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create an image using the data contained within the subrectangle `rect'
of `image'.
@@ -143,7 +143,7 @@
CG_EXTERN CGImageRef __nullable CGImageCreateWithImageInRect(
CGImageRef cg_nullable image, CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a new image from `image' masked by `mask', which may be an image
mask or an image.
@@ -173,7 +173,7 @@
CG_EXTERN CGImageRef __nullable CGImageCreateWithMask(
CGImageRef cg_nullable image, CGImageRef cg_nullable mask)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a new image from `image' masked by `components', an array of 2N
values { min[1], max[1], ... min[N], max[N] } where N is the number of
@@ -193,7 +193,7 @@
CG_EXTERN CGImageRef __nullable CGImageCreateWithMaskingColors(
CGImageRef cg_nullable image, const CGFloat * cg_nullable components)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a copy of `image', replacing the image's color space with `space'.
Returns NULL if `image' is an image mask, or if the number of components
@@ -202,96 +202,131 @@
CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithColorSpace(
CGImageRef cg_nullable image, CGColorSpaceRef cg_nullable space)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
+/* Create an image with specified EDR headroom. ColorSpace 'space' must be an
+ extended color space, PQ or HLG. In case of extended color spaces, image
+ components must be either 16-bit or 32-bit float. In case of PQ or HLG
+ color spaces, 16-bit or 32-bit float image components values will be
+ clipped to [0.0, 1.0] range, and other bit depths will be treated as
+ representing [0.0, 1.0] range, same as in 'CGImageCreate' API.
+ The headroom parameter must be either equal 0.0f or be greater or equal 1.0f.
+ When the headroom parameter is 0.0f, the image EDR headroom value will be
+ estimated based on the default headroom of the color space. */
+
+CG_EXTERN CGImageRef __nullable CGImageCreateWithEDRHeadroom(
+ float headroom,
+ size_t width, size_t height,
+ size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,
+ CGColorSpaceRef cg_nullable space, CGBitmapInfo bitmapInfo,
+ CGDataProviderRef cg_nullable provider,
+ const CGFloat * __nullable decode, bool shouldInterpolate,
+ CGColorRenderingIntent intent)
+ API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
+/* Return image content headroom */
+
+CG_EXTERN float CGImageGetContentHeadroom(CGImageRef cg_nullable image)
+ API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
/* Equivalent to `CFRetain(image)'. */
CG_EXTERN CGImageRef cg_nullable CGImageRetain(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(image)'. */
CG_EXTERN void CGImageRelease(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return true if `image' is an image mask, false otherwise. */
CG_EXTERN bool CGImageIsMask(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the width of `image'. */
CG_EXTERN size_t CGImageGetWidth(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the height of `image'. */
CG_EXTERN size_t CGImageGetHeight(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the number of bits/component of `image'. */
CG_EXTERN size_t CGImageGetBitsPerComponent(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the number of bits/pixel of `image'. */
CG_EXTERN size_t CGImageGetBitsPerPixel(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the number of bytes/row of `image'. */
CG_EXTERN size_t CGImageGetBytesPerRow(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the color space of `image', or NULL if `image' is an image
mask. */
CG_EXTERN CGColorSpaceRef __nullable CGImageGetColorSpace(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the alpha info of `image'. */
CG_EXTERN CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the data provider of `image'. */
CG_EXTERN CGDataProviderRef __nullable CGImageGetDataProvider(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the decode array of `image'. */
CG_EXTERN const CGFloat * __nullable CGImageGetDecode(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the interpolation parameter of `image'. */
CG_EXTERN bool CGImageGetShouldInterpolate(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the rendering intent of `image'. */
CG_EXTERN CGColorRenderingIntent CGImageGetRenderingIntent(cg_nullable CGImageRef image)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the bitmap info of `image'. */
CG_EXTERN CGBitmapInfo CGImageGetBitmapInfo(CGImageRef cg_nullable image)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the byte order info of `image'. */
-CG_EXTERN CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef cg_nullable image) CG_AVAILABLE_STARTING(10.14, 12.0);
+CG_EXTERN CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef cg_nullable image) API_AVAILABLE(macos(10.14), ios(12.0));
/* Return the pixel format of `image'. */
-CG_EXTERN CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef cg_nullable image) CG_AVAILABLE_STARTING(10.14, 12.0);
+CG_EXTERN CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef cg_nullable image) API_AVAILABLE(macos(10.14), ios(12.0));
+/* Return true if `image' should be tone mapped while rendering, false otherwise.
+ Tone mapping results depend on the receiving context.
+ */
+
+CG_EXTERN bool CGImageShouldToneMap(CGImageRef cg_nullable image) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
+/* Return true if `image' contains image specific tone mapping metadata, false otherwise. */
+
+CG_EXTERN bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef cg_nullable image) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
+
/* Return the UTType of `image'. */
CG_EXTERN CFStringRef __nullable CGImageGetUTType(cg_nullable CGImageRef image)
- CG_AVAILABLE_STARTING(10.11, 9.0);
+ API_AVAILABLE(macos(10.11), ios(9.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h 2024-05-30 03:53:59
@@ -26,29 +26,29 @@
CG_EXTERN CGLayerRef __nullable CGLayerCreateWithContext(
CGContextRef cg_nullable context,
CGSize size, CFDictionaryRef __nullable auxiliaryInfo)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain
does) if `layer' is NULL. */
CG_EXTERN CGLayerRef cg_nullable CGLayerRetain(CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease
does) if `layer' is NULL. */
CG_EXTERN void CGLayerRelease(CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the size of the layer `layer'. CGSizeZero if invalid `layer'. */
CG_EXTERN CGSize CGLayerGetSize(CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the context of `layer'. */
CG_EXTERN CGContextRef __nullable CGLayerGetContext(CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Draw the contents of `layer' into `rect' of `context'. The contents are
scaled, if necessary, to fit into `rect'; the rectangle `rect' is in user
@@ -56,7 +56,7 @@
CG_EXTERN void CGContextDrawLayerInRect(CGContextRef cg_nullable context,
CGRect rect, CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Draw the contents of `layer' at `point' in `context'. This is equivalent
to calling "CGContextDrawLayerInRect" with a rectangle having origin at
@@ -64,12 +64,12 @@
CG_EXTERN void CGContextDrawLayerAtPoint(CGContextRef cg_nullable context,
CGPoint point, CGLayerRef cg_nullable layer)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the CFTypeID for CGLayerRefs. */
CG_EXTERN CFTypeID CGLayerGetTypeID(void)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h 2024-04-18 07:10:24
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h 2024-05-30 03:53:59
@@ -23,34 +23,34 @@
#/* Return the number of items in `array'. */
CG_EXTERN size_t CGPDFArrayGetCount(CGPDFArrayRef cg_nullable array)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and return the result in
`value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetObject(CGPDFArrayRef cg_nullable array, size_t index,
CGPDFObjectRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a null, return
true; otherwise, return false. */
CG_EXTERN bool CGPDFArrayGetNull(CGPDFArrayRef cg_nullable array, size_t index)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a boolean, return
the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetBoolean(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFBoolean * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's an integer, return
the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetInteger(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFInteger * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a number (real or
integer), return the result in `value'. Return true on success; false
@@ -58,42 +58,42 @@
CG_EXTERN bool CGPDFArrayGetNumber(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFReal * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a name, return the
result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetName(CGPDFArrayRef cg_nullable array,
size_t index, const char * __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a string, return
the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetString(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFStringRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's an array, return it
in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetArray(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFArrayRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a dictionary,
return it in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetDictionary(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFDictionaryRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object at `index' in `array' and, if it's a stream, return it
in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFArrayGetStream(CGPDFArrayRef cg_nullable array,
size_t index, CGPDFStreamRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* The block function for `CGPDFArrayApplyBlock'. `index' is the current
iterator index, `value' is the CGPDFObject at this index. If the block
@@ -111,7 +111,7 @@
CG_EXTERN void CGPDFArrayApplyBlock(CGPDFArrayRef cg_nullable array,
CGPDFArrayApplierBlock cg_nullable block, void * __nullable info)
- CG_AVAILABLE_STARTING(10.14, 12.0);
+ API_AVAILABLE(macos(10.14), ios(12.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h 2024-05-30 03:53:59
@@ -16,37 +16,37 @@
/* Create a content stream from `page'. */
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamCreateWithPage(
- CGPDFPageRef page) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CGPDFPageRef page) API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a content stream from `stream'. */
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamCreateWithStream(
CGPDFStreamRef stream, CGPDFDictionaryRef streamResources,
CGPDFContentStreamRef cg_nullable parent)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Increment the retain count of `cs'. */
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamRetain(
- CGPDFContentStreamRef cs) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CGPDFContentStreamRef cs) API_AVAILABLE(macos(10.4), ios(2.0));
/* Decrement the retain count of `cs'. */
CG_EXTERN void CGPDFContentStreamRelease(CGPDFContentStreamRef cs)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the array of CGPDFStreamRefs comprising the entire content stream
of `cs'. */
CG_EXTERN CFArrayRef __nullable CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the resource named `name' in category `category' of the resource
dictionaries of `cs'. */
CG_EXTERN CGPDFObjectRef __nullable CGPDFContentStreamGetResource(
CGPDFContentStreamRef cs, const char *category, const char *name)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h 2024-04-18 06:38:11
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h 2024-05-30 05:04:46
@@ -29,7 +29,7 @@
CG_EXTERN CGContextRef __nullable CGPDFContextCreate(CGDataConsumerRef cg_nullable consumer,
const CGRect *__nullable mediaBox, CFDictionaryRef __nullable auxiliaryInfo)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a PDF context for writing to `url'. This function behaves in the
same manner as the above function, except that the output data will be
@@ -37,7 +37,7 @@
CG_EXTERN CGContextRef __nullable CGPDFContextCreateWithURL(CFURLRef cg_nullable url,
const CGRect * __nullable mediaBox, CFDictionaryRef __nullable auxiliaryInfo)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Close a PDF context. After closing the context, all pending data is
written to the context's destination, and the PDF file is completed. No
@@ -45,17 +45,17 @@
closing. */
CG_EXTERN void CGPDFContextClose(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.5, 2.0);
+ API_AVAILABLE(macos(10.5), ios(2.0));
/* Begin a new page in the PDF context `context'. */
CG_EXTERN void CGPDFContextBeginPage(CGContextRef cg_nullable context,
- CFDictionaryRef __nullable pageInfo) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CFDictionaryRef __nullable pageInfo) API_AVAILABLE(macos(10.4), ios(2.0));
/* End the current page in the PDF context `context'. */
CG_EXTERN void CGPDFContextEndPage(CGContextRef cg_nullable context)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Add the metadata stream specified by `metadata' to the document catalog
of `context', as described in Table 3.25, "Entries in the catalog
@@ -65,25 +65,25 @@
specification. */
CG_EXTERN void CGPDFContextAddDocumentMetadata(CGContextRef cg_nullable context,
- CFDataRef __nullable metadata) CG_AVAILABLE_STARTING(10.7, 4.0);
+ CFDataRef __nullable metadata) API_AVAILABLE(macos(10.7), ios(4.0));
/* Set the URL associated with `rect' to `url' in the PDF context
`context'. */
CG_EXTERN void CGPDFContextSetURLForRect(CGContextRef cg_nullable context, CFURLRef url,
- CGRect rect) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CGRect rect) API_AVAILABLE(macos(10.4), ios(2.0));
/* Create a PDF destination named `name' at `point' in the current page of
the PDF context `context'. */
CG_EXTERN void CGPDFContextAddDestinationAtPoint(CGContextRef cg_nullable context,
- CFStringRef name, CGPoint point) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CFStringRef name, CGPoint point) API_AVAILABLE(macos(10.4), ios(2.0));
/* Specify a destination named `name' to jump to when clicking in `rect' of
the current page of the PDF context `context'. */
CG_EXTERN void CGPDFContextSetDestinationForRect(CGContextRef cg_nullable context,
- CFStringRef name, CGRect rect) CG_AVAILABLE_STARTING(10.4, 2.0);
+ CFStringRef name, CGRect rect) API_AVAILABLE(macos(10.4), ios(2.0));
/*** Keys for the auxiliary info dictionary or the page info dictionary. ***/
@@ -92,48 +92,48 @@
value, not by reference). */
CG_EXTERN const CFStringRef kCGPDFContextMediaBox
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* The crop box for the document or for a given page. Optional; if present,
the value of this key must be a CFData containing a CGRect (stored by
value, not by reference). */
-CG_EXTERN const CFStringRef kCGPDFContextCropBox CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextCropBox API_AVAILABLE(macos(10.4), ios(2.0));
/* The bleed box for the document or for a given page. Optional; if present,
the value of this key must be a CFData containing a CGRect (stored by
value, not by reference). */
-CG_EXTERN const CFStringRef kCGPDFContextBleedBox CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextBleedBox API_AVAILABLE(macos(10.4), ios(2.0));
/* The trim box for the document or for a given page. Optional; if present,
the value of this key must be a CFData containing a CGRect (stored by
value, not by reference). */
-CG_EXTERN const CFStringRef kCGPDFContextTrimBox CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextTrimBox API_AVAILABLE(macos(10.4), ios(2.0));
/* The art box for the document or for a given page. Optional; if present,
the value of this key must be a CFData containing a CGRect (stored by
value, not by reference). */
-CG_EXTERN const CFStringRef kCGPDFContextArtBox CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextArtBox API_AVAILABLE(macos(10.4), ios(2.0));
/*** Keys for auxiliary info dictionary. ***/
/* The document's title. Optional; if present, the value of this key must be
a CFString. */
-CG_EXTERN const CFStringRef kCGPDFContextTitle CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextTitle API_AVAILABLE(macos(10.4), ios(2.0));
/* The name of the person who created this document. Optional; if present,
the value of this key must be a CFString. */
-CG_EXTERN const CFStringRef kCGPDFContextAuthor CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextAuthor API_AVAILABLE(macos(10.4), ios(2.0));
/* The subject of a document. Optional; if present, the value of this key
must be a CFString. */
-CG_EXTERN const CFStringRef kCGPDFContextSubject CG_AVAILABLE_STARTING(10.5, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextSubject API_AVAILABLE(macos(10.5), ios(2.0));
/* The keywords for this document. This key is optional. If the value of
this key is a CFString, the /Keywords entry will be the specified string.
@@ -145,13 +145,13 @@
strings. The value of this key must be in one of the above forms;
otherwise, this key is ignored. */
-CG_EXTERN const CFStringRef kCGPDFContextKeywords CG_AVAILABLE_STARTING(10.5, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextKeywords API_AVAILABLE(macos(10.5), ios(2.0));
/* The name of the application that created the original data used to create
this document. Optional; if present, the value of this key must be a
CFString. */
-CG_EXTERN const CFStringRef kCGPDFContextCreator CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextCreator API_AVAILABLE(macos(10.4), ios(2.0));
/* The "owner password" of the PDF document. If this key is specified, the
document will be encrypted using the value as the owner password;
@@ -163,7 +163,7 @@
If the value of this key cannot be represented in ASCII, the document
will not be created and the creation function will return NULL. */
-CG_EXTERN const CFStringRef kCGPDFContextOwnerPassword CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextOwnerPassword API_AVAILABLE(macos(10.4), ios(2.0));
/* The "user password" of the PDF document. If the document is encrypted,
then the value of this key will be the user password for the document; if
@@ -174,7 +174,7 @@
If the value of this key cannot be represented in ASCII, the document
will not be created and the creation function will return NULL. */
-CG_EXTERN const CFStringRef kCGPDFContextUserPassword CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextUserPassword API_AVAILABLE(macos(10.4), ios(2.0));
/* Specifies the encryption key length in bits; see Table 3.18 "Entries
common to all encryption dictionaries", PDF Reference: Adobe PDF version
@@ -183,19 +183,19 @@
128, inclusive. If this key is absent or invalid, the encryption key
length defaults to 40 bits. */
-CG_EXTERN const CFStringRef kCGPDFContextEncryptionKeyLength CG_AVAILABLE_STARTING(10.5, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextEncryptionKeyLength API_AVAILABLE(macos(10.5), ios(2.0));
/* Used to specify whether the document allows printing when unlocked with
the user password. The value of this key must be a CFBooleanRef. The
default value of this key is "kCFBooleanTrue". */
-CG_EXTERN const CFStringRef kCGPDFContextAllowsPrinting CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextAllowsPrinting API_AVAILABLE(macos(10.4), ios(2.0));
/* Used to specify whether the document allows copying when unlocked with
the user password. The value of this key must be a CFBooleanRef. The
default value of this key is "kCFBooleanTrue". */
-CG_EXTERN const CFStringRef kCGPDFContextAllowsCopying CG_AVAILABLE_STARTING(10.4, 2.0);
+CG_EXTERN const CFStringRef kCGPDFContextAllowsCopying API_AVAILABLE(macos(10.4), ios(2.0));
/* The document's PDF/X output intent. Optional; if present, the value of
this key must be a CFDictionaryRef. The dictionary is added to the
@@ -204,7 +204,7 @@
9.10.4 of the PDF 1.4 specification, ISO/DIS 15930-3 document published
by ISO/TC 130, and Adobe Technical Note #5413. */
-CG_EXTERN const CFStringRef kCGPDFContextOutputIntent CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFContextOutputIntent API_AVAILABLE(macos(10.4), ios(14.0));
/* The following keys are supported in the output intent dictionary:
@@ -212,7 +212,7 @@
required; the value of this key must be a CFString equal to "GTS_PDFX";
otherwise, the dictionary is ignored. */
-CG_EXTERN const CFStringRef kCGPDFXOutputIntentSubtype CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXOutputIntentSubtype API_AVAILABLE(macos(10.4), ios(14.0));
/* kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string
identifying the intended output device or production condition in a
@@ -220,14 +220,14 @@
key must be a CFString. For best results, the string should be
representable losslessly in ASCII encoding. */
-CG_EXTERN const CFStringRef kCGPDFXOutputConditionIdentifier CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXOutputConditionIdentifier API_AVAILABLE(macos(10.4), ios(14.0));
/* kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the
intended output device or production condition in a human-readable form.
This key is optional; if present, the value of this key must be a
CFString. */
-CG_EXTERN const CFStringRef kCGPDFXOutputCondition CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXOutputCondition API_AVAILABLE(macos(10.4), ios(14.0));
/* kCGPDFXRegistryName ("RegistryName"): A string identifying the registry
in which the condition designated by `kCGPDFXOutputConditionIdentifier'
@@ -235,7 +235,7 @@
be a CFString. For best results, the string should be representable
losslessly in ASCII encoding. */
-CG_EXTERN const CFStringRef kCGPDFXRegistryName CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXRegistryName API_AVAILABLE(macos(10.4), ios(14.0));
/* kCGPDFXInfo ("Info"): A human-readable text string containing additional
information about the intended target device or production condition.
@@ -243,7 +243,7 @@
does not specify a standard production condition; it is optional
otherwise. If present, the value of this key must be a CFString. */
-CG_EXTERN const CFStringRef kCGPDFXInfo CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXInfo API_AVAILABLE(macos(10.4), ios(14.0));
/* kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile
stream defining the transformation from the PDF document's source colors
@@ -252,7 +252,7 @@
condition; it is optional otherwise. If present, the value of this key
must be a ICC-based CGColorSpaceRef. */
-CG_EXTERN const CFStringRef kCGPDFXDestinationOutputProfile CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFXDestinationOutputProfile API_AVAILABLE(macos(10.4), ios(14.0));
/* The document's output intents. Optional; if present, the value must be a
CFArrayRef containing one or more CFDictionaryRefs. The array is added to
@@ -264,27 +264,27 @@
and `kCGPDFContextOutputIntents' keys are specified, the former is
ignored. */
-CG_EXTERN const CFStringRef kCGPDFContextOutputIntents CG_AVAILABLE_STARTING(10.4, 14.0);
+CG_EXTERN const CFStringRef kCGPDFContextOutputIntents API_AVAILABLE(macos(10.4), ios(14.0));
/* The document's access permissions, expressed as a CFNumber. The number is
defined by ORing together the desired CGPDFAccessPermissions values. */
-CG_EXTERN const CFStringRef kCGPDFContextAccessPermissions CG_AVAILABLE_STARTING(10.13, 11.0);
+CG_EXTERN const CFStringRef kCGPDFContextAccessPermissions API_AVAILABLE(macos(10.13), ios(11.0));
/* Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts). */
CG_EXTERN void CGPDFContextSetOutline(CGContextRef context, __nullable CFDictionaryRef outline)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Output a linearized PDF */
CG_EXTERN const CFStringRef kCGPDFContextCreateLinearizedPDF
- CG_AVAILABLE_STARTING(11.0, 14.0);
+ API_AVAILABLE(macos(11.0), ios(14.0));
/* Output a PDF that conforms to PDF/A-2u (ISO 19005-2). The value of this key
must be a CFBooleanRef. The default value of this key is "kCFBooleanFalse". */
-CG_EXTERN const CFStringRef kCGPDFContextCreatePDFA CG_AVAILABLE_STARTING(11.0, 14.0);
+CG_EXTERN const CFStringRef kCGPDFContextCreatePDFA API_AVAILABLE(macos(11.0), ios(14.0));
/* Tagged PDF Authoring */
@@ -372,11 +372,11 @@
CGPDFTagTypeFigure = 700,
CGPDFTagTypeFormula,
CGPDFTagTypeForm,
-} CG_AVAILABLE_STARTING(10.15, 13.0);
+} API_AVAILABLE(macos(10.15), ios(13.0));
/* For a given CGPDFTagType, return a C-string that matches the names defined in section 10.7.3: Standard Structure Types.
These are defined on pages 899 - 912. Returns NULL for an unknown value. */
-CG_EXTERN const char* cg_nullable CGPDFTagTypeGetName(CGPDFTagType tagType) CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN const char* cg_nullable CGPDFTagTypeGetName(CGPDFTagType tagType) API_AVAILABLE(macos(10.15), ios(13.0));
/* The following CGPDFTagProperty keys are to be paired with CFStringRef values in
CGPDFContextBeginTag(...)'s optional tagProperties dictionary. These key-value pairs
@@ -389,23 +389,23 @@
"...useful when extracting the document’s contents in support of accessibility..."
This can be used to more precisely control what string is extracted by a user when
they copy and paste from a document. */
-CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyActualText CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyActualText API_AVAILABLE(macos(10.15), ios(13.0));
/* Alternative text, defined on page 860:
"An alternate description of the structure element and its children in human-readable form".
This is typically used for graphical content, like an image. */
-CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyAlternativeText CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyAlternativeText API_AVAILABLE(macos(10.15), ios(13.0));
/* Title, defined on page 859:
Title of the node in a human-readable form. This should *not* be used for accessibility,
but can be useful when presenting the structure of a tagged node tree. */
-CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyTitleText CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyTitleText API_AVAILABLE(macos(10.15), ios(13.0));
/* Language of text content, defined on page 860:
Typically you should use the document's catalog to get its language, but if a section
of text is not the same language as the document, this may be set and allow you to
look at what language it is hinting at. */
-CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyLanguageText CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN const CGPDFTagProperty _Nonnull kCGPDFTagPropertyLanguageText API_AVAILABLE(macos(10.15), ios(13.0));
/* General usage of CGPDFContextBeginTag(...) and CGPDFContextEndTag(...):
@@ -431,11 +431,11 @@
or explicitly declare what language the text is in. All child-tags (tags pushed on top of other tags) will inherit their
parent tag's properties. */
CG_EXTERN void CGPDFContextBeginTag(CGContextRef _Nonnull context, CGPDFTagType tagType, CFDictionaryRef cg_nullable tagProperties)
- CG_AVAILABLE_STARTING(10.15, 13.0);
+ API_AVAILABLE(macos(10.15), ios(13.0));
/* Pop the current tag. Sets the current tag to the previous tag on the tag-stack. If there was no previous tag, then the
current tag will be set to the root document tag (of type CGPDFTagTypeDocument). */
-CG_EXTERN void CGPDFContextEndTag(CGContextRef _Nonnull context) CG_AVAILABLE_STARTING(10.15, 13.0);
+CG_EXTERN void CGPDFContextEndTag(CGContextRef _Nonnull context) API_AVAILABLE(macos(10.15), ios(13.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h 2024-04-18 07:10:24
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h 2024-05-30 05:12:29
@@ -23,14 +23,14 @@
/* Return the number of entries in `dictionary'. */
CG_EXTERN size_t CGPDFDictionaryGetCount(CGPDFDictionaryRef cg_nullable dict)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and return the result
in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFDictionaryGetObject(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFObjectRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a
boolean, return the result in `value'. Return true on success; false
@@ -38,7 +38,7 @@
CG_EXTERN bool CGPDFDictionaryGetBoolean(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFBoolean * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's an
integer, return the result in `value'. Return true on success; false
@@ -46,7 +46,7 @@
CG_EXTERN bool CGPDFDictionaryGetInteger(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFInteger * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a number
(real or integer), return the result in `value'. Return true on success;
@@ -54,28 +54,28 @@
CG_EXTERN bool CGPDFDictionaryGetNumber(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFReal * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a name,
return the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFDictionaryGetName(CGPDFDictionaryRef cg_nullable dict,
const char * key, const char * __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a string,
return the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFDictionaryGetString(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFStringRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's an array,
return the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFDictionaryGetArray(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFArrayRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a
dictionary, return the result in `value'. Return true on success; false
@@ -83,14 +83,14 @@
CG_EXTERN bool CGPDFDictionaryGetDictionary(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFDictionaryRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Look up the object associated with `key' in `dict' and, if it's a stream,
return the result in `value'. Return true on success; false otherwise. */
CG_EXTERN bool CGPDFDictionaryGetStream(CGPDFDictionaryRef cg_nullable dict,
const char * key, CGPDFStreamRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* The callback for `CGPDFDictionaryApplyFunction'. `key' is the current
key, `value' is the value for `key', and `info' is the parameter passed
@@ -105,7 +105,7 @@
CG_EXTERN void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef cg_nullable dict,
CGPDFDictionaryApplierFunction cg_nullable function, void * __nullable info)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* The block function for `CGPDFDictionaryApplyBlock'. `key' is the current
key, `value' is the value for `key', and `info' is the parameter passed
@@ -124,7 +124,7 @@
CG_EXTERN void CGPDFDictionaryApplyBlock(CGPDFDictionaryRef cg_nullable dict,
CGPDFDictionaryApplierBlock cg_nullable block, void * __nullable info)
- CG_AVAILABLE_STARTING(10.14, 12.0);
+ API_AVAILABLE(macos(10.14), ios(12.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h 2024-04-18 06:30:20
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h 2024-05-30 05:16:58
@@ -67,53 +67,53 @@
/* Key: kCGPDFOutlineTitle */
/* Value: CFString */
CG_EXTERN const CFStringRef kCGPDFOutlineTitle
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Key: kCGPDFOutlineChildren */
/* Value: CFArray of CFDictionaries */
CG_EXTERN const CFStringRef kCGPDFOutlineChildren
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Key: kCGPDFOutlineDestination */
/* Value: CFNumber (for a one-indexed page number) or CFURL */
CG_EXTERN const CFStringRef kCGPDFOutlineDestination
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Key: kCGPDFOutlineDestinationRect */
/* Value: CFDictionary from CGRectCreateDictionaryRepresentation. Only valid when the destination is a page number. */
CG_EXTERN const CFStringRef kCGPDFOutlineDestinationRect
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Create a PDF document, using `provider' to obtain the document's data. */
CG_EXTERN CGPDFDocumentRef __nullable CGPDFDocumentCreateWithProvider(
CGDataProviderRef cg_nullable provider)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Create a PDF document from `url'. */
CG_EXTERN CGPDFDocumentRef __nullable CGPDFDocumentCreateWithURL(
CFURLRef cg_nullable url)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain
does) if `document' is NULL. */
CG_EXTERN CGPDFDocumentRef cg_nullable CGPDFDocumentRetain(
CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(document)', except it doesn't crash (as
CFRelease does) if `document' is NULL. */
CG_EXTERN void CGPDFDocumentRelease(CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the major and minor version numbers of `document'. */
CG_EXTERN void CGPDFDocumentGetVersion(CGPDFDocumentRef cg_nullable document,
int * majorVersion, int * minorVersion)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return true if the PDF file associated with `document' is encrypted;
false otherwise. If the PDF file is encrypted, then a password must be
@@ -121,7 +121,7 @@
enable different operations. */
CG_EXTERN bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Use `password' to decrypt `document' and grant permission for certain
operations. Returns true if `password' is a valid password; false
@@ -129,14 +129,14 @@
CG_EXTERN bool CGPDFDocumentUnlockWithPassword(
CGPDFDocumentRef cg_nullable document, const char * password)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `document' is unlocked; false otherwise. A document is
unlocked if it isn't encrypted, or if it is encrypted and a valid
password was specified with `CGPDFDocumentUnlockWithPassword'. */
CG_EXTERN bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `document' allows printing; false otherwise. Typically,
this function returns false only if the document is encrypted and the
@@ -144,7 +144,7 @@
printing. */
CG_EXTERN bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `document' allows copying; false otherwise. Typically,
this function returns false only if the document is encrypted and the
@@ -152,53 +152,53 @@
copying. */
CG_EXTERN bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the number of pages in `document'. */
CG_EXTERN size_t CGPDFDocumentGetNumberOfPages(
CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Return the page corresponding to `pageNumber', or NULL if no such page
exists in the document. Pages are numbered starting at 1. */
CG_EXTERN CGPDFPageRef __nullable CGPDFDocumentGetPage(
CGPDFDocumentRef cg_nullable document, size_t pageNumber)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the document catalog of `document'. */
CG_EXTERN CGPDFDictionaryRef __nullable CGPDFDocumentGetCatalog(
CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the info dictionary of `document'. */
CG_EXTERN CGPDFDictionaryRef __nullable CGPDFDocumentGetInfo(
CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the "file identifier" array of `document'. */
CG_EXTERN CGPDFArrayRef __nullable CGPDFDocumentGetID(
CGPDFDocumentRef cg_nullable document)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the CFTypeID for CGPDFDocumentRefs. */
CG_EXTERN CFTypeID CGPDFDocumentGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys. */
CG_EXTERN __nullable CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Return the document access permissions. */
CG_EXTERN CGPDFAccessPermissions CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* The following functions are deprecated in favor of the CGPDFPage API. */
@@ -207,7 +207,7 @@
CG_EXTERN CGRect CGPDFDocumentGetMediaBox(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
/* DEPRECATED; return the crop box of page number `page' in `document'.
CGRectNull is returned if cannot find `page' in `document'. */
@@ -215,35 +215,35 @@
CG_EXTERN CGRect CGPDFDocumentGetCropBox(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
/* DEPRECATED; return the bleed box of page number `page' in `document'.
CGRectNull is returned if cannot find `page' in `document'. */
CG_EXTERN CGRect CGPDFDocumentGetBleedBox(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
/* DEPRECATED; return the trim box of page number `page' in `document'.
CGRectNull is returned if cannot find `page' in `document'. */
CG_EXTERN CGRect CGPDFDocumentGetTrimBox(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
/* DEPRECATED; return the art box of page number `page' in `document'.
CGRectNull is returned if cannot find `page' in `document'. */
CG_EXTERN CGRect CGPDFDocumentGetArtBox(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
/* DEPRECATED; return the rotation angle (in degrees) of page number `page'
in `document'. 0 if if cannot find `page' in `document'.*/
CG_EXTERN int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef cg_nullable document,
int page)
- CG_AVAILABLE_BUT_DEPRECATED(10.0, 10.5) CG_UNAVAILABLE_EMBEDDED;
+ API_DEPRECATED("No longer supported", macos(10.0,10.5)) API_UNAVAILABLE(ios, tvos, watchos);
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h 2024-05-30 03:53:58
@@ -47,7 +47,7 @@
/* Return the type of `object'. */
CG_EXTERN CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef cg_nullable object)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Get the value of `object'. If the type of `object' is equal to `type',
then copy the value of `object' to `value' (if it's non-NULL) and return
@@ -58,7 +58,7 @@
CG_EXTERN bool CGPDFObjectGetValue(CGPDFObjectRef cg_nullable object,
CGPDFObjectType type, void * __nullable value)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h 2024-05-30 03:53:59
@@ -23,26 +23,26 @@
/* Return an empty operator table. */
CG_EXTERN CGPDFOperatorTableRef __nullable CGPDFOperatorTableCreate(void)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Increment the retain count of `table'. */
CG_EXTERN CGPDFOperatorTableRef cg_nullable CGPDFOperatorTableRetain(
CGPDFOperatorTableRef cg_nullable table)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Decrement the retain count of `table'. */
CG_EXTERN void CGPDFOperatorTableRelease(
CGPDFOperatorTableRef cg_nullable table)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Set the callback for the operator named `name' to `callback' */
CG_EXTERN void CGPDFOperatorTableSetCallback(
CGPDFOperatorTableRef cg_nullable table,
const char * cg_nullable name, CGPDFOperatorCallback cg_nullable callback)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h 2024-05-30 03:53:59
@@ -31,24 +31,24 @@
does) if `page' is NULL. */
CG_EXTERN CGPDFPageRef __nullable CGPDFPageRetain(CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease
does) if `page' is NULL. */
CG_EXTERN void CGPDFPageRelease(CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the document of `page'. */
CG_EXTERN CGPDFDocumentRef __nullable CGPDFPageGetDocument(
CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the page number of `page'. */
CG_EXTERN size_t CGPDFPageGetPageNumber(CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the rectangle associated with `box' in `page'. This is the value
of the corresponding entry (such as /MediaBox, /ArtBox, and so on) in the
@@ -56,14 +56,14 @@
or `box' is not a valid CGPDFBox. */
CG_EXTERN CGRect CGPDFPageGetBoxRect(CGPDFPageRef cg_nullable page, CGPDFBox box)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the rotation angle (in degrees) of `page'. This is the value of
the /Rotate entry in the page's dictionary. Return 0 if `page' is not a valid
CGPDFPageRef. */
CG_EXTERN int CGPDFPageGetRotationAngle(CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return a transform mapping the box specified by `box' to `rect' as
follows:
@@ -81,18 +81,18 @@
CG_EXTERN CGAffineTransform CGPDFPageGetDrawingTransform(
CGPDFPageRef cg_nullable page, CGPDFBox box, CGRect rect, int rotate,
bool preserveAspectRatio)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the dictionary of `page'. */
CG_EXTERN CGPDFDictionaryRef __nullable CGPDFPageGetDictionary(
CGPDFPageRef cg_nullable page)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the CFTypeID for CGPDFPageRefs. */
CG_EXTERN CFTypeID CGPDFPageGetTypeID(void)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h 2024-04-18 07:39:13
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h 2024-05-30 05:12:29
@@ -23,79 +23,79 @@
CG_EXTERN CGPDFScannerRef CGPDFScannerCreate(
CGPDFContentStreamRef cs,
CGPDFOperatorTableRef __nullable table, void * __nullable info)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Retain `scanner'. */
CG_EXTERN CGPDFScannerRef cg_nullable CGPDFScannerRetain(
CGPDFScannerRef cg_nullable scanner)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Release `scanner'. */
CG_EXTERN void CGPDFScannerRelease(CGPDFScannerRef cg_nullable scanner)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Scan the content stream of `scanner'. Returns true if the entire stream
was scanned successfully; false if scanning failed for some reason (for
example, if the stream's data is corrupted). */
CG_EXTERN bool CGPDFScannerScan(CGPDFScannerRef cg_nullable scanner)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Return the content stream associated with `scanner'. */
CG_EXTERN CGPDFContentStreamRef CGPDFScannerGetContentStream(
CGPDFScannerRef scanner)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and return it in `value'. */
CG_EXTERN bool CGPDFScannerPopObject(CGPDFScannerRef scanner,
CGPDFObjectRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a boolean, return
it in `value'. Return false if the top of the stack isn't a boolean. */
CG_EXTERN bool CGPDFScannerPopBoolean(CGPDFScannerRef scanner,
CGPDFBoolean * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's an integer, return
it in `value'. Return false if the top of the stack isn't an integer. */
CG_EXTERN bool CGPDFScannerPopInteger(CGPDFScannerRef scanner,
CGPDFInteger * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a number, return
it in `value'. Return false if the top of the stack isn't a number. */
CG_EXTERN bool CGPDFScannerPopNumber(CGPDFScannerRef scanner,
CGPDFReal * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a name, return it
in `value'. Return false if the top of the stack isn't a name. */
CG_EXTERN bool CGPDFScannerPopName(CGPDFScannerRef scanner,
const char * __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a string, return
it in `value'. Return false if the top of the stack isn't a string. */
CG_EXTERN bool CGPDFScannerPopString(CGPDFScannerRef scanner,
CGPDFStringRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's an array, return
it in `value'. Return false if the top of the stack isn't an array. */
CG_EXTERN bool CGPDFScannerPopArray(CGPDFScannerRef scanner,
CGPDFArrayRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a dictionary,
return it in `value'. Return false if the top of the stack isn't a
@@ -103,14 +103,14 @@
CG_EXTERN bool CGPDFScannerPopDictionary(CGPDFScannerRef scanner,
CGPDFDictionaryRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Pop an object from the stack of `scanner' and, if it's a stream, return
it in `value'. Return false if the top of the stack isn't a stream. */
CG_EXTERN bool CGPDFScannerPopStream(CGPDFScannerRef scanner,
CGPDFStreamRef __nullable * __nullable value)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Cleanly stop the scanner on the current operator, releasing any
temporary resources. */
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h 2024-05-30 03:53:59
@@ -28,14 +28,14 @@
CG_EXTERN CGPDFDictionaryRef __nullable CGPDFStreamGetDictionary(
CGPDFStreamRef cg_nullable stream)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return the data of `stream'. */
CG_EXTERN CFDataRef __nullable CGPDFStreamCopyData(
CGPDFStreamRef cg_nullable stream,
CGPDFDataFormat * cg_nullable format)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h 2024-05-30 03:53:59
@@ -22,13 +22,13 @@
/* Return the length of `string'. */
CG_EXTERN size_t CGPDFStringGetLength(CGPDFStringRef cg_nullable string)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return a pointer to the bytes of `string'. */
CG_EXTERN const unsigned char * __nullable CGPDFStringGetBytePtr(
CGPDFStringRef cg_nullable string)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Return a CFString representing `string' as a "text string". See Section
3.8.1 "Text Strings", PDF Reference: Adobe PDF version 1.6 (5th ed.) for
@@ -36,14 +36,14 @@
CG_EXTERN CFStringRef __nullable CGPDFStringCopyTextString(
CGPDFStringRef cg_nullable string)
- CG_AVAILABLE_STARTING(10.3, 2.0);
+ API_AVAILABLE(macos(10.3), ios(2.0));
/* Convert `string' to a CFDate. See Section 3.8.3 "Dates", PDF Reference:
Adobe PDF version 1.6 (5th ed.) for more information. */
CG_EXTERN CFDateRef __nullable CGPDFStringCopyDate(
CGPDFStringRef cg_nullable string)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h 2024-03-22 19:54:05
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h 2024-05-30 10:45:11
@@ -40,35 +40,35 @@
/* Return the CFTypeID for CGPathRefs. */
CG_EXTERN CFTypeID CGPathGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a mutable path. */
CG_EXTERN CGMutablePathRef CGPathCreateMutable(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a copy of `path'. */
CG_EXTERN CGPathRef __nullable CGPathCreateCopy(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a copy of `path' transformed by `transform'. */
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByTransformingPath(
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Create a mutable copy of `path'. */
CG_EXTERN CGMutablePathRef __nullable CGPathCreateMutableCopy(
CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a mutable copy of `path' transformed by `transform'. */
CG_EXTERN CGMutablePathRef __nullable CGPathCreateMutableCopyByTransformingPath(
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Return a path representing a rectangle bounded by `rect'. The rectangle
forms a complete subpath of the path --- that is, it begins with a "move
@@ -79,7 +79,7 @@
CG_EXTERN CGPathRef CGPathCreateWithRect(CGRect rect,
const CGAffineTransform * __nullable transform)
- CG_AVAILABLE_STARTING(10.5, 4.0);
+ API_AVAILABLE(macos(10.5), ios(4.0));
/* Return a path representing an ellipse bounded by `rect'. The ellipse is
approximated by a sequence of Bézier curves. The center of the ellipse is
@@ -95,7 +95,7 @@
CG_EXTERN CGPathRef CGPathCreateWithEllipseInRect(CGRect rect,
const CGAffineTransform * __nullable transform)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Return a path representing a rounded rectangle. The rounded rectangle
coincides with the edges of `rect'. Each corner is consists of
@@ -109,7 +109,7 @@
CG_EXTERN CGPathRef CGPathCreateWithRoundedRect(CGRect rect,
CGFloat cornerWidth, CGFloat cornerHeight,
const CGAffineTransform * __nullable transform)
- CG_AVAILABLE_STARTING(10.9, 7.0);
+ API_AVAILABLE(macos(10.9), ios(7.0));
/* Add a rounded rectangle to `path'. The rounded rectangle coincides with
the edges of `rect'. Each corner is consists of one-quarter of an ellipse
@@ -123,7 +123,7 @@
CG_EXTERN void CGPathAddRoundedRect(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable transform, CGRect rect,
CGFloat cornerWidth, CGFloat cornerHeight)
- CG_AVAILABLE_STARTING(10.9, 7.0);
+ API_AVAILABLE(macos(10.9), ios(7.0));
/* Create a dashed path from `path'. The parameters `phase', `lengths', and
`count' have the same meaning as the corresponding parameters for
@@ -134,7 +134,7 @@
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByDashingPath(
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform,
CGFloat phase, const CGFloat * __nullable lengths, size_t count)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Create a stroked path from `path'. The parameters `lineWidth', `lineCap',
`lineJoin', and `miterLimit' have the same meaning as the corresponding
@@ -146,25 +146,25 @@
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform,
CGFloat lineWidth, CGLineCap lineCap,
CGLineJoin lineJoin, CGFloat miterLimit)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain
does) if `path' is NULL. */
CG_EXTERN CGPathRef cg_nullable CGPathRetain(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease
does) if `path' is NULL. */
CG_EXTERN void CGPathRelease(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `path1' is equal to `path2'; false otherwise. */
CG_EXTERN bool CGPathEqualToPath(CGPathRef cg_nullable path1,
CGPathRef cg_nullable path2)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/*** Path construction functions. ***/
@@ -173,7 +173,7 @@
CG_EXTERN void CGPathMoveToPoint(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Append a straight line segment from the current point to `(x, y)' in
`path' and move the current point to `(x, y)'. If `m' is non-NULL, then
@@ -181,7 +181,7 @@
CG_EXTERN void CGPathAddLineToPoint(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Append a quadratic curve from the current point to `(x, y)' with control
point `(cpx, cpy)' in `path' and move the current point to `(x, y)'. If
@@ -190,7 +190,7 @@
CG_EXTERN void CGPathAddQuadCurveToPoint(CGMutablePathRef cg_nullable path,
const CGAffineTransform *__nullable m, CGFloat cpx, CGFloat cpy,
CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Append a cubic Bézier curve from the current point to `(x,y)' with
control points `(cp1x, cp1y)' and `(cp2x, cp2y)' in `path' and move the
@@ -200,13 +200,13 @@
CG_EXTERN void CGPathAddCurveToPoint(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGFloat cp1x, CGFloat cp1y,
CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Append a line from the current point to the starting point of the current
subpath of `path' and end the subpath. */
CG_EXTERN void CGPathCloseSubpath(CGMutablePathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/*** Path construction convenience functions. ***/
@@ -215,7 +215,7 @@
CG_EXTERN void CGPathAddRect(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGRect rect)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Add each rectangle specified by `rects', an array of `count' CGRects, to
`path'. If `m' is non-NULL, then first transform each rectangle by `m'
@@ -224,7 +224,7 @@
CG_EXTERN void CGPathAddRects(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, const CGRect * __nullable rects,
size_t count)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Move to the first element of `points', an array of `count' CGPoints, and
append a line from each point to the next point in `points'. If `m' is
@@ -233,7 +233,7 @@
CG_EXTERN void CGPathAddLines(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, const CGPoint * __nullable points,
size_t count)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Add an ellipse (an oval) inside `rect' to `path'. The ellipse is
approximated by a sequence of Bézier curves. The center of the ellipse is
@@ -248,7 +248,7 @@
CG_EXTERN void CGPathAddEllipseInRect(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGRect rect)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* Add an arc of a circle to `path', possibly preceded by a straight line
segment. The arc is approximated by a sequence of Bézier curves. The
@@ -264,7 +264,7 @@
CG_EXTERN void CGPathAddRelativeArc(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable matrix, CGFloat x, CGFloat y,
CGFloat radius, CGFloat startAngle, CGFloat delta)
- CG_AVAILABLE_STARTING(10.7, 5.0);
+ API_AVAILABLE(macos(10.7), ios(5.0));
/* Add an arc of a circle to `path', possibly preceded by a straight line
segment. The arc is approximated by a sequence of Bézier curves. `(x, y)'
@@ -292,7 +292,7 @@
const CGAffineTransform * __nullable m,
CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle,
bool clockwise)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Add an arc of a circle to `path', possibly preceded by a straight line
segment. The arc is approximated by a sequence of Bézier curves. `radius'
@@ -305,32 +305,32 @@
CG_EXTERN void CGPathAddArcToPoint(CGMutablePathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGFloat x1, CGFloat y1,
CGFloat x2, CGFloat y2, CGFloat radius)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Add `path2' to `path1'. If `m' is non-NULL, then the points in `path2'
will be transformed by `m' before they are added to `path1'. */
CG_EXTERN void CGPathAddPath(CGMutablePathRef cg_nullable path1,
const CGAffineTransform * __nullable m, CGPathRef cg_nullable path2)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/*** Path information functions. ***/
/* Return true if `path' contains no elements, false otherwise. */
CG_EXTERN bool CGPathIsEmpty(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return true if `path' represents a rectangle, false otherwise. */
CG_EXTERN bool CGPathIsRect(CGPathRef cg_nullable path, CGRect * __nullable rect)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the current point of the current subpath of `path'. If there is no
current point, then return CGPointZero. */
CG_EXTERN CGPoint CGPathGetCurrentPoint(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the bounding box of `path'. The bounding box is the smallest
rectangle completely enclosing all points in the path, including control
@@ -338,7 +338,7 @@
return `CGRectNull'. */
CG_EXTERN CGRect CGPathGetBoundingBox(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Return the path bounding box of `path'. The path bounding box is the
smallest rectangle completely enclosing all points in the path, *not*
@@ -346,7 +346,7 @@
path is empty, then return `CGRectNull'. */
CG_EXTERN CGRect CGPathGetPathBoundingBox(CGPathRef cg_nullable path)
- CG_AVAILABLE_STARTING(10.6, 4.0);
+ API_AVAILABLE(macos(10.6), ios(4.0));
/* Return true if `point' is contained in `path'; false otherwise. A point
is contained in a path if it is inside the painted region when the path
@@ -357,7 +357,7 @@
CG_EXTERN bool CGPathContainsPoint(CGPathRef cg_nullable path,
const CGAffineTransform * __nullable m, CGPoint point, bool eoFill)
- CG_AVAILABLE_STARTING(10.4, 2.0);
+ API_AVAILABLE(macos(10.4), ios(2.0));
/* The types of path elements returned by `CGPathApply'. */
@@ -387,52 +387,52 @@
CG_EXTERN void CGPathApply(CGPathRef cg_nullable path, void * __nullable info,
CGPathApplierFunction cg_nullable function)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
typedef void (^CGPathApplyBlock)(const CGPathElement * element);
CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)
- CG_AVAILABLE_STARTING(10.13, 11.0);
+ API_AVAILABLE(macos(10.13), ios(11.0));
/* Returns a new weakly-simple path without self-intersections and with a normalized orientation. Filling the resulting path using even-odd or non-zero filling is identical. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyByNormalizing(CGPathRef cg_nullable path, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyByNormalizing(CGPathRef cg_nullable path, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
-/* Returns a new path created by unioning `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. */
+/* Returns a new path created by unioning `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyByUnioningPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyByUnioningPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
-/* Returns a new path created by intersecting `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. */
+/* Returns a new path created by intersecting `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
-/* Returns a new path created by subtracting `maskPath` from `path`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. */
+/* Returns a new path created by subtracting `maskPath` from `path`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
-/* Returns a new path created by exclusive or-ing `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. */
+/* Returns a new path created by exclusive or-ing `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySymmetricDifferenceOfPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySymmetricDifferenceOfPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
/* Returns a new path created by subtracting the `maskPath` from the line of `path` with the fill of `maskPath`. This returns a potentially open path. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
/* Returns a new path created by intersecting the line of `path` and the fill of `maskPath`. This returns a potentially open path. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
/* Return an array of the visually separated components of a path. */
-CG_EXTERN CFArrayRef __nullable CGPathCreateSeparateComponents(CGPathRef cg_nullable path, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CFArrayRef __nullable CGPathCreateSeparateComponents(CGPathRef cg_nullable path, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
-/* Returns a new path that is flattened, converting all curved line segments into straight line approximations. The granularity of the approximations is controlled by `flatteningThreshold` the maximum error tolerance (measured in points) for curves. */
+/* Returns a new path that is flattened, converting all curved line segments into straight line approximations. The granularity of the approximations is controlled by `flatteningThreshold` the maximum error tolerance (measured in points) for curves. */
-CG_EXTERN CGPathRef __nullable CGPathCreateCopyByFlattening(CGPathRef cg_nullable path, CGFloat flatteningThreshold) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN CGPathRef __nullable CGPathCreateCopyByFlattening(CGPathRef cg_nullable path, CGFloat flatteningThreshold) API_AVAILABLE(macos(13.0), ios(16.0));
/* Returns true if path1 and path2 overlap. */
-CG_EXTERN bool CGPathIntersectsPath(CGPathRef cg_nullable path1, CGPathRef cg_nullable path2, bool evenOddFillRule) CG_AVAILABLE_STARTING(13.0, 16.0);
+CG_EXTERN bool CGPathIntersectsPath(CGPathRef cg_nullable path1, CGPathRef cg_nullable path2, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h 2024-05-30 03:53:59
@@ -60,7 +60,7 @@
/* Return the CFTypeID for CGPatternRefs. */
CG_EXTERN CFTypeID CGPatternGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a pattern. */
@@ -68,19 +68,19 @@
CGRect bounds, CGAffineTransform matrix, CGFloat xStep, CGFloat yStep,
CGPatternTiling tiling, bool isColored,
const CGPatternCallbacks * cg_nullable callbacks)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does)
if `pattern' is NULL. */
CG_EXTERN CGPatternRef cg_nullable CGPatternRetain(CGPatternRef cg_nullable pattern)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
/* Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does)
if `pattern' is NULL. */
CG_EXTERN void CGPatternRelease(CGPatternRef cg_nullable pattern)
- CG_AVAILABLE_STARTING(10.0, 2.0);
+ API_AVAILABLE(macos(10.0), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h 2024-04-18 07:31:22
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h 2024-05-30 03:53:59
@@ -24,7 +24,7 @@
/* Return the CFTypeID for CGShadingRefs. */
CG_EXTERN CFTypeID CGShadingGetTypeID(void)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a shading defining a color blend which varies along a linear axis
between two endpoints and extends indefinitely perpendicular to that
@@ -44,7 +44,7 @@
CG_EXTERN CGShadingRef __nullable CGShadingCreateAxial(
CGColorSpaceRef cg_nullable space, CGPoint start, CGPoint end,
CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Create a shading defining a color blend which varies between two circles.
The shading may optionally extend beyond either circle by continuing the
@@ -65,19 +65,19 @@
CGColorSpaceRef cg_nullable space,
CGPoint start, CGFloat startRadius, CGPoint end, CGFloat endRadius,
CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain
does) if `shading' is NULL. */
CG_EXTERN CGShadingRef cg_nullable CGShadingRetain(CGShadingRef cg_nullable shading)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
/* Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease
does) if `shading' is NULL. */
CG_EXTERN void CGShadingRelease(CGShadingRef cg_nullable shading)
- CG_AVAILABLE_STARTING(10.2, 2.0);
+ API_AVAILABLE(macos(10.2), ios(2.0));
CF_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2024-04-18 06:54:58
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes 2024-05-30 05:00:17
@@ -350,6 +350,10 @@
# replaced by draw(_ image: CGImage, in rect: CGRect, byTiling: Bool = false)
SwiftName: CGContext.__draw(self:in:byTiling:)
SwiftPrivate: true
+- Name: CGContextDrawImageApplyingToneMapping
+ # replaced by draw(_ image: CGImage, in rect: CGRect, applying: CGToneMapping = kCGToneMappingDefault, options: CFDictionaryRef = nil)
+ SwiftName: CGContext.__draw(self:in:image:applying:options:)
+ SwiftPrivate: true
- Name: CGContextGetTextPosition
# replaced by readwrite property
SwiftName: getter:CGContext.__textPosition(self:)
@@ -473,12 +477,16 @@
SwiftName: getter:CGImage.typeID()
- Name: CGImageCreate
SwiftName: CGImage.init(width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:)
+- Name: CGImageCreateWithEDRHeadroom
+ SwiftName: CGImage.init(headroom:width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:)
- Name: CGImageMaskCreate
SwiftName: CGImage.init(maskWidth:height:bitsPerComponent:bitsPerPixel:bytesPerRow:provider:decode:shouldInterpolate:)
- Name: CGImageCreateWithJPEGDataProvider
SwiftName: CGImage.init(jpegDataProviderSource:decode:shouldInterpolate:intent:)
- Name: CGImageCreateWithPNGDataProvider
SwiftName: CGImage.init(pngDataProviderSource:decode:shouldInterpolate:intent:)
+- Name: CGImageGetContentHeadroom
+ SwiftName: getter:CGImage.contentHeadroom(self:)
- Name: CGImageGetWidth
SwiftName: getter:CGImage.width(self:)
- Name: CGImageGetHeight
@@ -497,8 +505,12 @@
SwiftName: getter:CGImage.dataProvider(self:)
- Name: CGImageGetDecode
SwiftName: getter:CGImage.decode(self:)
+- Name: CGImageShouldToneMap
+ SwiftName: getter:CGImage.shouldToneMap(self:)
- Name: CGImageGetShouldInterpolate
SwiftName: getter:CGImage.shouldInterpolate(self:)
+- Name: CGImageContainsImageSpecificToneMappingMetadata
+ SwiftName: getter:CGImage.containsImageSpecificToneMappingMetadata(self:)
- Name: CGImageGetRenderingIntent
SwiftName: getter:CGImage.renderingIntent(self:)
- Name: CGImageGetBitmapInfo
@@ -856,6 +868,10 @@
SwiftName: CGContext.setStrokeColorSpace(self:_:)
- Name: CGContextSetRenderingIntent
SwiftName: CGContext.setRenderingIntent(self:_:)
+- Name: CGContextSetEDRTargetHeadroom
+ SwiftName: CGContext.setEDRTargetHeadroom(self:_:)
+- Name: CGContextGetEDRTargetHeadroom
+ SwiftName: getter:CGContext.edrTargetHeadroom(self:_:)
- Name: CGContextGetInterpolationQuality
SwiftName: getter:CGContext.interpolationQuality(self:)
- Name: CGContextSetInterpolationQuality
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status