Class AvaloniaNativeSurfaceProvider
Namespace: VelloSharp.Avalonia.Core.Surface.Providers
Assembly: VelloSharp.Avalonia.Core.dll
Provides the surface details required by the Vello renderer for Avalonia.Native on macOS.
public sealed class AvaloniaNativeSurfaceProvider : IVelloWinitSurfaceProvider
Inheritance
object ← AvaloniaNativeSurfaceProvider
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
AvaloniaNativeSurfaceProvider(ITopLevelImpl)
public AvaloniaNativeSurfaceProvider(ITopLevelImpl topLevel)
Parameters
topLevel ITopLevelImpl
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()