CairoRenderer

A GSK renderer that is using cairo.

Since it is using cairo, this renderer cannot support 3D transformations.

Constructors

this
this(GskCairoRenderer* gskCairoRenderer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new Cairo renderer.

Members

Functions

getCairoRendererStruct
GskCairoRenderer* getCairoRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gskCairoRenderer
GskCairoRenderer* gskCairoRenderer;

the main Gtk struct

Inherited Members

From Renderer

gskRenderer
GskRenderer* gskRenderer;

the main Gtk struct

getRendererStruct
GskRenderer* getRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getSurface
Surface getSurface()

Retrieves the GdkSurface set using gsk_enderer_realize().

isRealized
bool isRealized()

Checks whether the @renderer is realized or not.

realize
bool realize(Surface surface)

Creates the resources needed by the @renderer to render the scene graph.

render
void render(RenderNode root, Region region)

Renders the scene graph, described by a tree of GskRenderNode instances, ensuring that the given @region gets redrawn.

renderTexture
Texture renderTexture(RenderNode root, Rect viewport)

Renders the scene graph, described by a tree of GskRenderNode instances, to a GdkTexture.

unrealize
void unrealize()

Releases all the resources created by gsk_renderer_realize().

Meta