changelogs/SkiaSharp.Views/1.55.0/SkiaSharp.Views.UWP.md
Assembly Version Changed: 1.55.0.0 vs 0.0.0.0
public class AngleSwapChainPanel : Windows.UI.Xaml.Controls.SwapChainPanel, Windows.UI.Composition.IAnimationObject, Windows.UI.Composition.IVisualElement {
// constructors
public AngleSwapChainPanel ();
// properties
public GlesBackingOption BackingOption { get; set; }
public double ContentsScale { get; set; }
public GlesContext Context { get; set; }
public GlesDepthFormat DepthFormat { get; set; }
public bool DrawInBackground { get; set; }
public bool EnableRenderLoop { get; set; }
public GlesMultisampling Multisampling { get; set; }
public GlesStencilFormat StencilFormat { get; set; }
// methods
public void Invalidate ();
protected virtual void OnRenderFrame (Windows.Foundation.Rect rect);
}
public static class Extensions {
}
[Serializable]
public enum GlesBackingOption {
Detroyed = 0,
Retained = 1,
}
public class GlesContext : System.IDisposable {
// constructors
public GlesContext ();
// properties
public static GlesContext CurrentContext { get; set; }
public bool HasValidSurface { get; }
// methods
public virtual void Dispose ();
public void Reset ();
public void SetSurface (Windows.UI.Xaml.Controls.SwapChainPanel swapChainPanel, int rbWidth, int rbHeight, GlesBackingOption backingOption, GlesMultisampling multisampling, GlesRenderTarget renderTarget);
public void SetViewportSize (int width, int height);
public bool SwapBuffers (GlesRenderTarget renderTarget, int width, int height);
}
[Serializable]
public enum GlesDepthFormat {
Format16 = 1,
Format24 = 2,
None = 0,
}
[Serializable]
public enum GlesMultisampling {
FourTimes = 4,
None = 0,
}
[Serializable]
public enum GlesRenderTarget {
Renderbuffer = 36161,
}
[Serializable]
public enum GlesStencilFormat {
Format8 = 1,
None = 0,
}
public class SKPaintGLSurfaceEventArgs : System.EventArgs {
// constructors
public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTargetDesc renderTarget);
// properties
public SkiaSharp.GRBackendRenderTargetDesc RenderTarget { get; }
public SkiaSharp.SKSurface Surface { get; }
}
public class SKPaintSurfaceEventArgs : System.EventArgs {
// constructors
public SKPaintSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.SKImageInfo info);
// properties
public SkiaSharp.SKImageInfo Info { get; }
public SkiaSharp.SKSurface Surface { get; }
}
public class SKSwapChainPanel : SkiaSharp.Views.UWP.AngleSwapChainPanel, Windows.UI.Composition.IAnimationObject, Windows.UI.Composition.IVisualElement {
// constructors
public SKSwapChainPanel ();
// properties
public SkiaSharp.SKSize CanvasSize { get; }
// events
public event System.EventHandler<SKPaintGLSurfaceEventArgs> PaintSurface;
// methods
protected override Windows.Foundation.Size ArrangeOverride (Windows.Foundation.Size finalSize);
protected virtual void OnPaintSurface (SKPaintGLSurfaceEventArgs e);
protected override void OnRenderFrame (Windows.Foundation.Rect rect);
}
public class SKXamlCanvas : Windows.UI.Xaml.Controls.Canvas, Windows.UI.Composition.IAnimationObject, Windows.UI.Composition.IVisualElement {
// constructors
public SKXamlCanvas ();
// properties
public SkiaSharp.SKSize CanvasSize { get; }
// events
public event System.EventHandler<SKPaintSurfaceEventArgs> PaintSurface;
// methods
public void Invalidate ();
protected virtual void OnPaintSurface (SKPaintSurfaceEventArgs e);
}
public static class UWPExtensions {
// methods
public static Windows.UI.Color ToColor (this SkiaSharp.SKColor color);
public static Windows.Foundation.Point ToPoint (this SkiaSharp.SKPoint point);
public static Windows.Foundation.Rect ToRect (this SkiaSharp.SKRect rect);
public static SkiaSharp.SKColor ToSKColor (this Windows.UI.Color color);
public static SkiaSharp.SKPoint ToSKPoint (this Windows.Foundation.Point point);
public static SkiaSharp.SKRect ToSKRect (this Windows.Foundation.Rect rect);
public static SkiaSharp.SKSize ToSKSize (this Windows.Foundation.Size size);
public static Windows.Foundation.Size ToSize (this SkiaSharp.SKSize size);
}