Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/CoreGraphics/CGContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,21 @@ public CGBitmapContext AsBitmapContext ()
{
return new CGBitmapContext (Handle, false);
}

#if NET
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("tvos17.0")]
Comment on lines +1425 to +1428
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the diff in how we define the platform attrs for .net vs legacy? iirc these bindings that are within a framework directory go through one less pass through the generator, so assuming that has something to do with it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is manually generated code, both need to be added. in the generator written code this is added. Look at the .g.cs files.

#else
[Mac (14, 0), iOS (17, 0), TV (17, 0), MacCatalyst (17, 0), Watch (10, 0)]
#endif
[DllImport (Constants.CoreGraphicsLibrary)]
static extern void CGContextDrawConicGradient (/* CGContext */ IntPtr context, /*[NullAllowed] CGGradient*/ IntPtr gradient, CGPoint center, nfloat angle);

public void DrawConicGradient (CGGradient gradient, CGPoint point, nfloat angle) =>
Comment thread
mandel-macaque marked this conversation as resolved.
Outdated
CGContextDrawConicGradient (Handle, gradient.GetHandle (), point, angle);

#endif // !COREBUILD
}
}

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/iOS-CoreGraphics.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/macOS-CoreGraphics.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/tvOS-CoreGraphics.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/watchOS-CoreGraphics.todo

This file was deleted.