From d01d9cbb052c1a0db505af63c22f6b82afa11782 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Wed, 12 Feb 2020 18:35:47 -0500 Subject: [PATCH] [CoreGraphics] Update bindings to Xcode 11.4 Beta 1 (#7865) --- src/CoreGraphics/CGColorSpace.cs | 8 ++++++++ src/coregraphics.cs | 16 ++++++++++++++++ tests/xtro-sharpie/iOS-CoreGraphics.todo | 2 -- tests/xtro-sharpie/macOS-CoreGraphics.todo | 2 -- tests/xtro-sharpie/tvOS-CoreGraphics.todo | 2 -- tests/xtro-sharpie/watchOS-CoreGraphics.todo | 2 -- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/CoreGraphics/CGColorSpace.cs b/src/CoreGraphics/CGColorSpace.cs index 140d644572..9cc755ab3a 100644 --- a/src/CoreGraphics/CGColorSpace.cs +++ b/src/CoreGraphics/CGColorSpace.cs @@ -535,11 +535,19 @@ namespace CoreGraphics { [Mac (10,15)][iOS(13,0)] [TV (13,0)][Watch (6,0)] + [Deprecated (PlatformName.MacOSX, 10,15,4)] + [Deprecated (PlatformName.iOS, 13,4)] + [Deprecated (PlatformName.TvOS, 13,4)] + [Deprecated (PlatformName.WatchOS, 6,2)] [DllImport (Constants.CoreGraphicsLibrary)] static extern bool CGColorSpaceIsHDR (/* CGColorSpaceRef */ IntPtr space); [Mac (10,15)][iOS(13,0)] [TV (13,0)][Watch (6,0)] + [Deprecated (PlatformName.MacOSX, 10,15,4)] + [Deprecated (PlatformName.iOS, 13,4)] + [Deprecated (PlatformName.TvOS, 13,4)] + [Deprecated (PlatformName.WatchOS, 6,2)] public bool IsHdr { get { return CGColorSpaceIsHDR (handle); diff --git a/src/coregraphics.cs b/src/coregraphics.cs index ae5f7ead6d..553e850a6d 100644 --- a/src/coregraphics.cs +++ b/src/coregraphics.cs @@ -207,14 +207,30 @@ namespace CoreGraphics { [Mac (10,14)][iOS (12,0)] [TV (12,0)][Watch (5,0)] + [Deprecated (PlatformName.MacOSX, 10,15,4)] + [Deprecated (PlatformName.iOS, 13,4)] + [Deprecated (PlatformName.TvOS, 13,4)] + [Deprecated (PlatformName.WatchOS, 6,2)] [Field ("kCGColorSpaceITUR_2020_PQ_EOTF")] NSString Itur_2020_PQ_Eotf { get; } + [Mac (10,15,4), iOS (13,4), TV (13,4), Watch (6,2)] + [Field ("kCGColorSpaceITUR_2020_PQ")] + NSString Itur_2020_PQ { get; } + [Mac (10,15)][iOS (13,0)] [TV (13,0)][Watch (6,0)] + [Deprecated (PlatformName.MacOSX, 10,15,4)] + [Deprecated (PlatformName.iOS, 13,4)] + [Deprecated (PlatformName.TvOS, 13,4)] + [Deprecated (PlatformName.WatchOS, 6,2)] [Field ("kCGColorSpaceDisplayP3_PQ_EOTF")] NSString DisplayP3_PQ_Eotf { get; } + [Mac (10,15,4), iOS (13,4), TV (13,4), Watch (6,2)] + [Field ("kCGColorSpaceDisplayP3_PQ")] + NSString DisplayP3_PQ { get; } + [Mac (10,15)][iOS (13,0)] [TV (13,0)][Watch (6,0)] [Field ("kCGColorSpaceDisplayP3_HLG")] diff --git a/tests/xtro-sharpie/iOS-CoreGraphics.todo b/tests/xtro-sharpie/iOS-CoreGraphics.todo index 4a4aab5274..e69de29bb2 100644 --- a/tests/xtro-sharpie/iOS-CoreGraphics.todo +++ b/tests/xtro-sharpie/iOS-CoreGraphics.todo @@ -1,2 +0,0 @@ -!missing-field! kCGColorSpaceDisplayP3_PQ not bound -!missing-field! kCGColorSpaceITUR_2020_PQ not bound diff --git a/tests/xtro-sharpie/macOS-CoreGraphics.todo b/tests/xtro-sharpie/macOS-CoreGraphics.todo index 4a4aab5274..e69de29bb2 100644 --- a/tests/xtro-sharpie/macOS-CoreGraphics.todo +++ b/tests/xtro-sharpie/macOS-CoreGraphics.todo @@ -1,2 +0,0 @@ -!missing-field! kCGColorSpaceDisplayP3_PQ not bound -!missing-field! kCGColorSpaceITUR_2020_PQ not bound diff --git a/tests/xtro-sharpie/tvOS-CoreGraphics.todo b/tests/xtro-sharpie/tvOS-CoreGraphics.todo index 4a4aab5274..e69de29bb2 100644 --- a/tests/xtro-sharpie/tvOS-CoreGraphics.todo +++ b/tests/xtro-sharpie/tvOS-CoreGraphics.todo @@ -1,2 +0,0 @@ -!missing-field! kCGColorSpaceDisplayP3_PQ not bound -!missing-field! kCGColorSpaceITUR_2020_PQ not bound diff --git a/tests/xtro-sharpie/watchOS-CoreGraphics.todo b/tests/xtro-sharpie/watchOS-CoreGraphics.todo index 4a4aab5274..e69de29bb2 100644 --- a/tests/xtro-sharpie/watchOS-CoreGraphics.todo +++ b/tests/xtro-sharpie/watchOS-CoreGraphics.todo @@ -1,2 +0,0 @@ -!missing-field! kCGColorSpaceDisplayP3_PQ not bound -!missing-field! kCGColorSpaceITUR_2020_PQ not bound