gsk.render_node

Module for [RenderNode] class

Types 1

gsk.render_node.RenderNode is the basic block in a scene graph to be rendered using gsk.renderer.Renderer.

Each node has a parent, except the top-level node; each node may have children nodes.

Each node has an associated drawing surface, which has the size of the rectangle set when creating it.

Render nodes are meant to be transient; once they have been associated to a gsk.renderer.Renderer it's safe to release any reference you have on them. All gsk.render_node.RenderNodes are immutable, you can only specify their properties during construction.

Fields
GskRenderNode * _cInstancePtr
Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
gsk.render_node.RenderNode deserialize(glib.bytes.Bytes bytes, gsk.types.ParseErrorFunc errorFunc = null) static nothrowLoads data previously created via [gsk.render_node.RenderNode.serialize].
void draw(cairo.context.Context cr) nothrowDraw the contents of node to the given cairo context.
void getBounds(out graphene.rect.Rect bounds) nothrowRetrieves the boundaries of the node.
gsk.types.RenderNodeType getNodeType() nothrowReturns the type of the node. Returns: the type of the [gsk.render_node.RenderNode]
glib.bytes.Bytes serialize() nothrowSerializes the node for later deserialization via [gsk.render_node.RenderNode.deserialize]. No guarantees are made about the format used other than that the same version of GTK will be able to dese...
bool writeToFile(string filename)This function is equivalent to calling [gsk.render_node.RenderNode.serialize] followed by `funcGLib.file_set_contents`.
Constructors
this(void * ptr, Flag!"Take" take)
Destructors