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
constructArgumentsConstructArgument[]
Renderer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Renderer(CreationData data)
Parameters
dataCreationData
Renderer(RendererHandle)
protected Renderer(RendererHandle handle)
Parameters
handleRendererHandle
Fields
RealizedPropertyDefinition
public static readonly Property<bool, Renderer> RealizedPropertyDefinition
Field Value
SurfacePropertyDefinition
public static readonly Property<Surface?, Renderer> SurfacePropertyDefinition
Field Value
Properties
Realized
public bool Realized { get; }
Property Value
Surface
public Surface? Surface { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetSurface()
public Surface? GetSurface()
Returns
IsRealized()
public bool IsRealized()
Returns
NewForSurface(Surface)
public static Renderer? NewForSurface(Surface surface)
Parameters
surfaceSurface
Returns
NewFromPointer(nint, bool)
Creates a new managed Renderer instance for a given pointer.
public static Renderer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Renderer and sets the properties specified by the construct arguments.
public static Renderer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Realize(Surface?)
public bool Realize(Surface? surface)
Parameters
surfaceSurface
Returns
RealizeForDisplay(Display)
[Version("4.14")]
public bool RealizeForDisplay(Display display)
Parameters
displayDisplay
Returns
Render(RenderNode, Region?)
public void Render(RenderNode root, Region? region)
Parameters
rootRenderNoderegionRegion
RenderTexture(RenderNode, Rect?)
public Texture RenderTexture(RenderNode root, Rect? viewport)
Parameters
rootRenderNodeviewportRect
Returns
Unrealize()
public void Unrealize()