Class Win32SurfaceProvider
Namespace: VelloSharp.Avalonia.Core.Surface.Providers
Assembly: VelloSharp.Avalonia.Core.dll
public sealed class Win32SurfaceProvider : IVelloWinitSurfaceProvider
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Win32SurfaceProvider(INativePlatformHandleSurface)
public Win32SurfaceProvider(INativePlatformHandleSurface surface)
Parameters
surface INativePlatformHandleSurface
Properties
RenderScaling
Gets the render scaling factor applied to drawing commands.
public double RenderScaling { get; }
Property Value
SurfacePixelSize
Gets the current pixel size of the swapchain surface.
public PixelSize SurfacePixelSize { get; }
Property Value
PixelSize
Methods
CreateSurfaceHandle()
Creates a Vello surface handle describing the underlying native window.
public SurfaceHandle CreateSurfaceHandle()
Returns
PrePresent()
Notifies the underlying window that presentation is about to occur.
public void PrePresent()
RequestRedraw()
Requests a redraw from the host event loop.
public void RequestRedraw()