Skip to content

CoreGraphics macOS xcode27.0 b3

Alex Soto edited this page Jul 7, 2026 · 1 revision

#CoreGraphics.framework

diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h	2026-06-12 10:48:29
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h	2026-06-27 00:59:53
@@ -24,20 +24,22 @@
 /*
  *    kCGToneMappingDefault                   = 0,  A system default method will be used
  *    kCGToneMappingImageSpecificLumaScaling  = 1,  Implements tone mapping of HDR content associated with the CGImage gain map
+ *    kCGToneMappingHeadroomAdaptiveGainCurve = 6,  Impmement Headroom Adaptive Gain Curve as per ICC and SMPTE ST 2094-50;2026 specifications
  *    kCGToneMappingReferenceWhiteBased       = 2,  Implements a tone curve that preserves SDR contrast and rolls off HDR highlights
  *    kCGToneMappingITURecommended            = 3,  Implements tone mapping based on ITU-R specifications for HDR-to-SDR and SDR-to-HDR conversions assuming mastering peak of 1000 nits
  *    kCGToneMappingEXRGamma                  = 4,  Implements Open EXR tone mapping gamma suitable for tone mapping images in extended linear sRGB color space to SDR
  *    kCGToneMappingNone                      = 5   Does not apply any tone mapping. Color converted values in extended color spaces will be clipped to SDR ([0.0-1.0]) range
  */
 
-typedef CF_ENUM (uint32_t, CGToneMapping) {
-  kCGToneMappingDefault                   API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 0,
-  kCGToneMappingImageSpecificLumaScaling  API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 1,
-  kCGToneMappingReferenceWhiteBased       API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 2,
-  kCGToneMappingITURecommended            API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 3,
-  kCGToneMappingEXRGamma                  API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 4,
-  kCGToneMappingNone                      API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)) = 5
-};
+    typedef CF_ENUM (uint32_t, CGToneMapping) {
+      kCGToneMappingDefault                  = 0,
+      kCGToneMappingImageSpecificLumaScaling = 1,
+      kCGToneMappingHeadroomAdaptiveGainCurve API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0)) = 6,
+      kCGToneMappingReferenceWhiteBased      = 2,
+      kCGToneMappingITURecommended           = 3,
+      kCGToneMappingEXRGamma                 = 4,
+      kCGToneMappingNone                     = 5
+    } API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
     
 typedef struct {
     CGToneMapping method;
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h	2026-06-12 10:48:30
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h	2026-06-27 00:59:53
@@ -291,10 +291,20 @@
 /* CFNumberRef encoding appropriate for use with CGWindowBackingType */
 #define kCGWindowBackingCFNumberType kCFNumberSInt32Type
 
-/* Checks whether the current process already has screen capture access */
+/*!
+ @function CGPreflightScreenCaptureAccess
+ @abstract Returns whether the current process already has permission to capture the contents of the screen, without prompting the user.
+ @discussion If this returns false, call CGRequestScreenCaptureAccess to prompt the user.
+ @result true if the current process has screen capture access; otherwise false.
+*/
 CG_EXTERN bool CGPreflightScreenCaptureAccess(void) API_AVAILABLE(macos(10.15));
 
-/* Requests event listening access if absent, potentially prompting */
+/*!
+ @function CGRequestScreenCaptureAccess
+ @abstract Requests screen capture access, prompting the user for permission if it has not yet been determined.
+ @discussion A previously denied process is not re-prompted; the user must enable access in System Settings > Privacy & Security > Screen Recording. To check the current authorization without prompting, use CGPreflightScreenCaptureAccess.
+ @result true if the current process has screen capture access; otherwise false.
+*/
 CG_EXTERN bool CGRequestScreenCaptureAccess(void) API_AVAILABLE(macos(10.15));
 
 

Clone this wiki locally