Table of Contents

Class Renderer

Namespace
Gsk
Assembly
Gsk-4.0.dll
public class Renderer : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Renderer
Implements
Derived
Inherited Members

Constructors

Renderer(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Renderer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Renderer(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Renderer(CreationData data)

Parameters

data CreationData

Renderer(RendererHandle)

protected Renderer(RendererHandle handle)

Parameters

handle RendererHandle

Fields

RealizedPropertyDefinition

public static readonly Property<bool, Renderer> RealizedPropertyDefinition

Field Value

Property<bool, Renderer>

SurfacePropertyDefinition

public static readonly Property<Surface?, Renderer> SurfacePropertyDefinition

Field Value

Property<Surface, Renderer>

Properties

Realized

public bool Realized { get; }

Property Value

bool

Surface

public Surface? Surface { get; }

Property Value

Surface

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetSurface()

public Surface? GetSurface()

Returns

Surface

IsRealized()

public bool IsRealized()

Returns

bool

NewForSurface(Surface)

public static Renderer? NewForSurface(Surface surface)

Parameters

surface Surface

Returns

Renderer

NewFromPointer(nint, bool)

Creates a new managed Renderer instance for a given pointer.

public static Renderer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Renderer

NewWithProperties(ConstructArgument[])

Creates a new Renderer and sets the properties specified by the construct arguments.

public static Renderer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Renderer

Realize(Surface?)

public bool Realize(Surface? surface)

Parameters

surface Surface

Returns

bool

RealizeForDisplay(Display)

[Version("4.14")]
public bool RealizeForDisplay(Display display)

Parameters

display Display

Returns

bool

Render(RenderNode, Region?)

public void Render(RenderNode root, Region? region)

Parameters

root RenderNode
region Region

RenderTexture(RenderNode, Rect?)

public Texture RenderTexture(RenderNode root, Rect? viewport)

Parameters

root RenderNode
viewport Rect

Returns

Texture

Unrealize()

public void Unrealize()