Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 10 additions & 2 deletions src/CoreGraphics/CGContextPDF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,21 +414,29 @@ public void SetDestination (string name, CGRect rect)
[DllImport (Constants.CoreGraphicsLibrary)]
static extern void CGPDFContextBeginTag (/* CGContextRef* */ IntPtr context, CGPdfTagType tagType, /* CFDictionaryRef* _Nullable */ IntPtr tagProperties);

/// <summary>Opens a tagged content sequence of the specified <paramref name="tagType" /> in the PDF context.</summary>
/// <param name="tagType">The type of the tag to open.</param>
/// <param name="tagProperties">A dictionary of properties for the tag, or <see langword="null" /> if there are none.</param>
/// <remarks>Every call to <c>BeginTag</c> must be balanced by a matching call to <see cref="EndTag" />.</remarks>
Comment thread
rolfbjarne marked this conversation as resolved.
Resolved
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("maccatalyst")]
public void BeginTag (CGPdfTagType tagType, NSDictionary tagProperties)
public void BeginTag (CGPdfTagType tagType, NSDictionary? tagProperties)
{
CGPDFContextBeginTag (Handle, tagType, tagProperties.GetHandle ());
GC.KeepAlive (tagProperties);
}

/// <summary>Opens a tagged content sequence of the specified <paramref name="tagType" /> in the PDF context.</summary>
/// <param name="tagType">The type of the tag to open.</param>
/// <param name="tagProperties">The properties for the tag, or <see langword="null" /> if there are none.</param>
/// <remarks>Every call to <c>BeginTag</c> must be balanced by a matching call to <see cref="EndTag" />.</remarks>
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("maccatalyst")]
public void BeginTag (CGPdfTagType tagType, CGPdfTagProperties tagProperties)
public void BeginTag (CGPdfTagType tagType, CGPdfTagProperties? tagProperties)
{
var d = tagProperties?.Dictionary;
CGPDFContextBeginTag (Handle, tagType, d.GetHandle ());
Expand Down
7 changes: 3 additions & 4 deletions src/CoreImage/CIContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ public int? CIImageFormat {
}

public partial class CIContext {
/// <param name="options">The context options to use.</param>
/// <summary>Creates a new Core Image context with the specified <paramref name="options" />.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Creates a new Core Image context with the specified <paramref name="options" />.</summary>
/// <param name="options">The context options to use, or <see langword="null" /> to use the default options.</param>
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public CIContext (CIContextOptions options) :
public CIContext (CIContextOptions? options) :
this (options?.Dictionary)
{
}
Expand Down
33 changes: 17 additions & 16 deletions src/CoreImage/CIImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,26 +281,27 @@ public static CIImage FromData (NSData bitmapData, nint bytesPerRow, CGSize size
return FromData (bitmapData, bytesPerRow, size, CIImage.CIFormatToInt (pixelFormat), colorSpace);
}

/// <summary>Creates a <see cref="CIImage" /> from an image provider with the specified dimensions, pixel format, and color space.</summary>
/// <param name="provider">The image data provider.</param>
/// <param name="width">The width of the image in pixels.</param>
/// <param name="height">The height of the image in pixels.</param>
/// <param name="pixelFormat">The pixel format of the image data.</param>
/// <param name="colorSpace">The color space for the resulting image.</param>
/// <param name="options">Options that configure the image creation.</param>
public static CIImage FromProvider (ICIImageProvider provider, nuint width, nuint height, CIFormat pixelFormat, CGColorSpace colorSpace, CIImageProviderOptions options)
/// <summary>Creates a new image that lazily obtains its data from the specified <paramref name="provider" />.</summary>
/// <param name="provider">The provider that supplies the image data on demand.</param>
/// <param name="width">The width of the image, in pixels.</param>
/// <param name="height">The height of the image, in pixels.</param>
/// <param name="pixelFormat">The pixel format of the image data supplied by <paramref name="provider" />.</param>
/// <param name="colorSpace">The color space of the image.</param>
/// <param name="options">Options that control how the image is created, or <see langword="null" /> to use the default options.</param>
/// <returns>A new <see cref="CoreImage.CIImage" /> backed by <paramref name="provider" />.</returns>
public static CIImage FromProvider (ICIImageProvider provider, nuint width, nuint height, CIFormat pixelFormat, CGColorSpace colorSpace, CIImageProviderOptions? options)
{
return FromProvider (provider, width, height, CIImage.CIFormatToInt (pixelFormat), colorSpace, options?.Dictionary);
}

/// <summary>Initializes a new <see cref="CIImage" /> from an image provider with the specified dimensions, pixel format, and color space.</summary>
/// <param name="provider">The image data provider.</param>
/// <param name="width">The width of the image in pixels.</param>
/// <param name="height">The height of the image in pixels.</param>
/// <param name="pixelFormat">The pixel format of the image data.</param>
/// <param name="colorSpace">The color space for the resulting image.</param>
/// <param name="options">Options that configure the image creation.</param>
public CIImage (ICIImageProvider provider, nuint width, nuint height, CIFormat pixelFormat, CGColorSpace colorSpace, CIImageProviderOptions options)
/// <summary>Creates a new image that lazily obtains its data from the specified <paramref name="provider" />.</summary>
/// <param name="provider">The provider that supplies the image data on demand.</param>
/// <param name="width">The width of the image, in pixels.</param>
/// <param name="height">The height of the image, in pixels.</param>
/// <param name="pixelFormat">The pixel format of the image data supplied by <paramref name="provider" />.</param>
/// <param name="colorSpace">The color space of the image.</param>
/// <param name="options">Options that control how the image is created, or <see langword="null" /> to use the default options.</param>
public CIImage (ICIImageProvider provider, nuint width, nuint height, CIFormat pixelFormat, CGColorSpace colorSpace, CIImageProviderOptions? options)
: this (provider, width, height, CIImage.CIFormatToInt (pixelFormat), colorSpace, options?.Dictionary)
{
}
Expand Down
15 changes: 7 additions & 8 deletions src/UserNotifications/UNNotificationAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
namespace UserNotifications {
public partial class UNNotificationAttachment {

/// <param name="identifier">To be added.</param>
/// <param name="url">To be added.</param>
/// <param name="attachmentOptions">To be added.</param>
/// <param name="error">To be added.</param>
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
public static UNNotificationAttachment? FromIdentifier (string identifier, NSUrl url, UNNotificationAttachmentOptions attachmentOptions, out NSError? error)
/// <summary>Creates a new attachment for a notification from the file at the specified <paramref name="url" />.</summary>
/// <param name="identifier">The unique identifier for the attachment, or an empty string to have one generated automatically.</param>
/// <param name="url">The URL of the file to attach.</param>
/// <param name="attachmentOptions">Options that describe how the attachment should be handled, or <see langword="null" /> to use the default options.</param>
/// <param name="error">On failure, contains the error that describes why the attachment could not be created.</param>
/// <returns>A new <see cref="UserNotifications.UNNotificationAttachment" />, or <see langword="null" /> if the attachment could not be created.</returns>
public static UNNotificationAttachment? FromIdentifier (string identifier, NSUrl url, UNNotificationAttachmentOptions? attachmentOptions, out NSError? error)
{
return FromIdentifier (identifier, url, attachmentOptions?.Dictionary, out error);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10317,8 +10317,6 @@ M:CoreGraphics.CGContext.ShowTextAtPoint(System.Runtime.InteropServices.NFloat,S
M:CoreGraphics.CGContext.ShowTextAtPoint(System.Runtime.InteropServices.NFloat,System.Runtime.InteropServices.NFloat,System.String)
M:CoreGraphics.CGContext.StrokeRectWithWidth(CoreGraphics.CGRect,System.Runtime.InteropServices.NFloat)
M:CoreGraphics.CGContext.TranslateCTM(System.Runtime.InteropServices.NFloat,System.Runtime.InteropServices.NFloat)
M:CoreGraphics.CGContextPDF.BeginTag(CoreGraphics.CGPdfTagType,CoreGraphics.CGPdfTagProperties)
M:CoreGraphics.CGContextPDF.BeginTag(CoreGraphics.CGPdfTagType,Foundation.NSDictionary)
M:CoreGraphics.CGContextPDF.EndTag
M:CoreGraphics.CGContextPDF.SetIdTree(CoreGraphics.CGPDFDictionary)
M:CoreGraphics.CGContextPDF.SetPageTagStructureTree(Foundation.NSDictionary)
Expand Down
Loading