RenderNode
GskRenderNode
is the basic block in a scene graph to be rendered using class@Gsk.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 class@Gsk.Renderer it's safe to release any reference you have on them. All class@Gsk.RenderNodes are immutable, you can only specify their properties during construction.
Skipped during bindings generation
parameter
cr
: cairo.Context
Inheritors
Constructors
Properties
Functions
Returns the type of the @node.
Gets an opaque rectangle inside the node that GTK can determine to be fully opaque.
Acquires a reference on the given GskRenderNode
.
Serializes the @node for later deserialization via gsk_render_node_deserialize(). No guarantees are made about the format used other than that the same version of GTK will be able to deserialize the result of a call to gsk_render_node_serialize() and gsk_render_node_deserialize() will correctly reject files it cannot open that were created with previous versions of GTK.
This function is equivalent to calling method@Gsk.RenderNode.serialize followed by func@GLib.file_set_contents.