[CoreGraphics] Most of CoreGraphics is available in all versions of Mac Catalyst, so mark as such. (#20369)

This commit is contained in:
Rolf Bjarne Kvinge 2024-04-05 20:34:03 +02:00 коммит произвёл GitHub
Родитель f83ec9f2e2
Коммит 5909a2a89a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 46 добавлений и 45 удалений

Просмотреть файл

@ -10,10 +10,10 @@ namespace CoreGraphics
{
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGCaptureOptions : uint
{
@ -22,10 +22,10 @@ namespace CoreGraphics
}
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public static class CGDisplay
{
@ -86,9 +86,10 @@ namespace CoreGraphics
public static extern void RestoreColorSyncSettings ();
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[ObsoletedOSPlatform ("macos10.9")]
[ObsoletedOSPlatform ("maccatalyst13.1")]
#else
[Deprecated (PlatformName.MacOSX, 10, 9)]
#endif

Просмотреть файл

@ -30,10 +30,10 @@ using NativeHandle = System.IntPtr;
namespace CoreGraphics {
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public sealed class CGEvent : NativeObject {
public delegate IntPtr CGEventTapCallback (IntPtr tapProxyEvent, CGEventType eventType, IntPtr eventRef, IntPtr userInfo);

Просмотреть файл

@ -25,10 +25,10 @@ using NativeHandle = System.IntPtr;
namespace CoreGraphics {
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public sealed class CGEventSource : NativeObject {
#if !NET

Просмотреть файл

@ -25,10 +25,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventTapLocation;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventTapLocation : int {
HID,
@ -38,10 +38,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventTapPlacement;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventTapPlacement : uint {
HeadInsert,
@ -50,10 +50,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventTapOptions;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventTapOptions : uint {
Default,
@ -62,10 +62,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGMouseButton;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGMouseButton : uint {
Left, Right, Center
@ -73,10 +73,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGScrollEventUnit;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGScrollEventUnit : uint {
Pixel, Line
@ -84,10 +84,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint64_t CGEventMask;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[Flags]
public enum CGEventMask : ulong {
@ -112,10 +112,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint64_t CGEventFlags;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[Flags]
public enum CGEventFlags : ulong {
@ -132,10 +132,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventField;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
internal enum CGEventField : int {
MouseEventNumber = 0,
@ -202,10 +202,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventType;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventType : uint {
Null = 0x0,
@ -231,10 +231,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventMouseSubtype;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventMouseSubtype : uint {
Default, TabletPoint, TabletProximity
@ -242,10 +242,10 @@ namespace CoreGraphics {
// CGEventTypes.h:typedef uint32_t CGEventSourceStateID;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventSourceStateID : int {
Private = -1, CombinedSession = 0, HidSystem = 1
@ -253,10 +253,10 @@ namespace CoreGraphics {
// CGRemoteOperation.h:typedef uint32_t CGEventFilterMask;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[Flags]
public enum CGEventFilterMask : uint {
@ -267,10 +267,10 @@ namespace CoreGraphics {
// CGRemoteOperation.h:typedef uint32_t CGEventSuppressionState;
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public enum CGEventSuppressionState : int {
SuppressionInterval,

Просмотреть файл

@ -44,10 +44,10 @@ namespace CoreGraphics {
#if MONOMAC || __MACCATALYST__
// uint32_t -> CGWindow.h (OSX SDK only)
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[Flags]
public enum CGWindowImageOption : uint {
@ -61,10 +61,10 @@ namespace CoreGraphics {
// uint32_t -> CGWindow.h (OSX SDK only)
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[Flags]
public enum CGWindowListOption : uint {
@ -252,23 +252,23 @@ namespace CoreGraphics {
#if MONOMAC || __MACCATALYST__
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
[DllImport (Constants.CoreGraphicsLibrary)]
static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public static CGImage? ScreenImage (int windownumber, CGRect bounds)
{
@ -276,12 +276,12 @@ namespace CoreGraphics {
}
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (13,1)]
#endif
public static CGImage? ScreenImage (int windownumber, CGRect bounds, CGWindowListOption windowOption,
CGWindowImageOption imageOption)