NglRenderer

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Members

Functions

self
NglRenderer self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From Renderer

getGType
GType getGType()
gType
GType gType [@property getter]
self
Renderer self()

Returns this, for use in with statements.

newForSurface
gsk.renderer.Renderer newForSurface(gdk.surface.Surface surface)

Creates an appropriate gsk.renderer.Renderer instance for the given surface.

getSurface
gdk.surface.Surface getSurface()

Retrieves the gdk.surface.Surface set using gsk_enderer_realize().

isRealized
bool isRealized()

Checks whether the renderer is realized or not.

realize
bool realize(gdk.surface.Surface surface)

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

realizeForDisplay
bool realizeForDisplay(gdk.display.Display display)

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

render
void render(gsk.render_node.RenderNode root, cairo.region.Region region)

Renders the scene graph, described by a tree of gsk.render_node.RenderNode instances to the renderer's surface, ensuring that the given region gets redrawn.

renderTexture
gdk.texture.Texture renderTexture(gsk.render_node.RenderNode root, graphene.rect.Rect viewport)

Renders the scene graph, described by a tree of gsk.render_node.RenderNode instances, to a gdk.texture.Texture.

unrealize
void unrealize()

Releases all the resources created by gsk.renderer.Renderer.realize.