From 7e4dc6959d61ee8749a68c500aa487b75d1bf472 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 5 Feb 2024 21:43:23 +0200 Subject: [PATCH] Update changelogs --- .../SkiaSharp.Views.Maui.Controls.breaking.md | 29 +++++++++ .../3.0.0/SkiaSharp.Views.Maui.Controls.md | 53 ++++++++++++++++ .../3.0.0/SkiaSharp.Views.Maui.Core.md | 61 +++++++++++++++++++ .../3.0.0/SkiaSharp.Views.Windows.md | 35 +++++++++++ 4 files changed, 178 insertions(+) create mode 100644 changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.breaking.md diff --git a/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.breaking.md b/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.breaking.md new file mode 100644 index 000000000..7ea6364fc --- /dev/null +++ b/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.breaking.md @@ -0,0 +1,29 @@ +# API diff: SkiaSharp.Views.Maui.Controls.dll + +## SkiaSharp.Views.Maui.Controls.dll + +> Assembly Version Changed: 3.0.0.0 vs 2.88.0.0 + +### Namespace SkiaSharp.Views.Maui.Controls + +#### Type Changed: SkiaSharp.Views.Maui.Controls.SKCanvasView + +Removed interface: + +```csharp +ISKCanvasViewController +``` + + +#### Type Changed: SkiaSharp.Views.Maui.Controls.SKGLView + +Removed interface: + +```csharp +ISKGLViewController +``` + + +#### Removed Type SkiaSharp.Views.Maui.Controls.ISKCanvasViewController +#### Removed Type SkiaSharp.Views.Maui.Controls.ISKGLViewController + diff --git a/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.md b/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.md index a650e725a..99d1553c0 100644 --- a/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.md +++ b/changelogs/SkiaSharp.Views.Maui.Controls/3.0.0/SkiaSharp.Views.Maui.Controls.md @@ -4,3 +4,56 @@ > Assembly Version Changed: 3.0.0.0 vs 2.88.0.0 +### Namespace SkiaSharp.Views.Maui.Controls + +#### Type Changed: SkiaSharp.Views.Maui.Controls.SKCanvasView + +Removed interface: + +```csharp +ISKCanvasViewController +``` + +Removed method: + +```csharp +protected override Microsoft.Maui.SizeRequest OnMeasure (double widthConstraint, double heightConstraint); +``` + + +#### Type Changed: SkiaSharp.Views.Maui.Controls.SKGLView + +Removed interface: + +```csharp +ISKGLViewController +``` + +Added interface: + +```csharp +SkiaSharp.Views.Maui.ISKGLView +``` + +Added field: + +```csharp +public static Microsoft.Maui.Controls.BindableProperty IgnorePixelScalingProperty; +``` + +Added property: + +```csharp +public override bool IgnorePixelScaling { get; set; } +``` + +Removed method: + +```csharp +protected override Microsoft.Maui.SizeRequest OnMeasure (double widthConstraint, double heightConstraint); +``` + + +#### Removed Type SkiaSharp.Views.Maui.Controls.ISKCanvasViewController +#### Removed Type SkiaSharp.Views.Maui.Controls.ISKGLViewController + diff --git a/changelogs/SkiaSharp.Views.Maui.Core/3.0.0/SkiaSharp.Views.Maui.Core.md b/changelogs/SkiaSharp.Views.Maui.Core/3.0.0/SkiaSharp.Views.Maui.Core.md index c6137a6a8..c33e810f4 100644 --- a/changelogs/SkiaSharp.Views.Maui.Core/3.0.0/SkiaSharp.Views.Maui.Core.md +++ b/changelogs/SkiaSharp.Views.Maui.Core/3.0.0/SkiaSharp.Views.Maui.Core.md @@ -4,3 +4,64 @@ > Assembly Version Changed: 3.0.0.0 vs 2.88.0.0 +### Namespace SkiaSharp.Views.Maui + +#### Type Changed: SkiaSharp.Views.Maui.SKPaintGLSurfaceEventArgs + +Added constructors: + +```csharp +public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKImageInfo info); +public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKImageInfo info, SkiaSharp.SKImageInfo rawInfo); +``` + +Added properties: + +```csharp +public SkiaSharp.SKImageInfo Info { get; } +public SkiaSharp.SKImageInfo RawInfo { get; } +``` + + +#### New Type: SkiaSharp.Views.Maui.ISKGLView + +```csharp +public interface ISKGLView : Microsoft.Maui.IElement, Microsoft.Maui.ITransform, Microsoft.Maui.IView { + // properties + public virtual SkiaSharp.SKSize CanvasSize { get; } + public virtual bool EnableTouchEvents { get; } + public virtual SkiaSharp.GRContext GRContext { get; } + public virtual bool HasRenderLoop { get; } + public virtual bool IgnorePixelScaling { get; } + // methods + public virtual void InvalidateSurface (); + public virtual void OnCanvasSizeChanged (SkiaSharp.SKSizeI size); + public virtual void OnGRContextChanged (SkiaSharp.GRContext context); + public virtual void OnPaintSurface (SKPaintGLSurfaceEventArgs e); + public virtual void OnTouch (SKTouchEventArgs e); +} +``` + + +### Namespace SkiaSharp.Views.Maui.Handlers + +#### New Type: SkiaSharp.Views.Maui.Handlers.SKGLViewHandler + +```csharp +public class SKGLViewHandler : Microsoft.Maui.Handlers.ViewHandler`2[SkiaSharp.Views.Maui.ISKGLView,System.Object], Microsoft.Maui.IElementHandler, Microsoft.Maui.IPlatformViewHandler, Microsoft.Maui.IViewHandler { + // constructors + public SKGLViewHandler (); + public SKGLViewHandler (Microsoft.Maui.PropertyMapper mapper, Microsoft.Maui.CommandMapper commands); + // fields + public static Microsoft.Maui.CommandMapper SKGLViewCommandMapper; + public static Microsoft.Maui.PropertyMapper SKGLViewMapper; + // methods + protected override object CreatePlatformView (); + public static void MapEnableTouchEvents (SKGLViewHandler handler, SkiaSharp.Views.Maui.ISKGLView view); + public static void MapHasRenderLoop (SKGLViewHandler handler, SkiaSharp.Views.Maui.ISKGLView view); + public static void MapIgnorePixelScaling (SKGLViewHandler handler, SkiaSharp.Views.Maui.ISKGLView view); + public static void OnInvalidateSurface (SKGLViewHandler handler, SkiaSharp.Views.Maui.ISKGLView view, object args); +} +``` + + diff --git a/changelogs/SkiaSharp.Views.WinUI/3.0.0/SkiaSharp.Views.Windows.md b/changelogs/SkiaSharp.Views.WinUI/3.0.0/SkiaSharp.Views.Windows.md index 82249503c..bff6e5699 100644 --- a/changelogs/SkiaSharp.Views.WinUI/3.0.0/SkiaSharp.Views.Windows.md +++ b/changelogs/SkiaSharp.Views.WinUI/3.0.0/SkiaSharp.Views.Windows.md @@ -27,4 +27,39 @@ public SkiaSharp.GRBackendRenderTargetDesc RenderTarget { get; } #### Removed Type SkiaSharp.Views.Windows.Extensions +#### New Type: SkiaSharp.Views.Windows.AngleSwapChainPanel + +```csharp +public class AngleSwapChainPanel : Microsoft.UI.Xaml.Controls.SwapChainPanel { + // constructors + public AngleSwapChainPanel (); + // properties + public double ContentsScale { get; } + public bool DrawInBackground { get; set; } + public bool EnableRenderLoop { get; set; } + // methods + public void Invalidate (); + protected virtual void OnDestroyingContext (); + protected virtual void OnRenderFrame (Windows.Foundation.Rect rect); +} +``` + +#### New Type: SkiaSharp.Views.Windows.SKSwapChainPanel + +```csharp +public class SKSwapChainPanel : SkiaSharp.Views.Windows.AngleSwapChainPanel { + // constructors + public SKSwapChainPanel (); + // properties + public SkiaSharp.SKSize CanvasSize { get; } + public SkiaSharp.GRContext GRContext { get; } + // events + public event System.EventHandler PaintSurface; + // methods + protected override void OnDestroyingContext (); + protected virtual void OnPaintSurface (SKPaintGLSurfaceEventArgs e); + protected override void OnRenderFrame (Windows.Foundation.Rect rect); +} +``` +