gsk.render_node
Module for RenderNode class
class RenderNode
Types 1
classRenderNode
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 * _cInstancePtrMethods
gsk.render_node.RenderNode deserialize(glib.bytes.Bytes bytes, gsk.types.ParseErrorFunc errorFunc = null)Loads data previously created via [gsk.render_node.RenderNode.serialize].void draw(cairo.context.Context cr)Draw the contents of node to the given cairo context.void getBounds(out graphene.rect.Rect bounds)Retrieves the boundaries of the node.gsk.types.RenderNodeType getNodeType()Returns the type of the node. Returns: the type of the [gsk.render_node.RenderNode]glib.bytes.Bytes serialize()Serializes 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`.Destructors