Skip to main content

Class X11SurfaceProvider

Namespace: VelloSharp.Avalonia.Core.Surface.Providers
Assembly: VelloSharp.Avalonia.Core.dll

public sealed class X11SurfaceProvider : IVelloWinitSurfaceProvider

Inheritance

objectX11SurfaceProvider

Implements

IVelloWinitSurfaceProvider

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

RenderScaling

Gets the render scaling factor applied to drawing commands.

public double RenderScaling { get; }

Property Value

double

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

SurfaceHandle

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()

TryCreate(INativePlatformHandleSurface)

public static X11SurfaceProvider? TryCreate(INativePlatformHandleSurface surface)

Parameters

surface INativePlatformHandleSurface

Returns

X11SurfaceProvider?