Gsk.RenderNode
Description: Reference for Gsk.RenderNode

### Class

# GskRenderNode

#### Description [src]

    abstract class Gsk.RenderNode : GObject.TypeInstance {
      /* No available fields */
    }

`GskRenderNode` is the basic block in a scene graph to be rendered using `GskRenderer`.

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 `GskRenderer` it’s safe to release any reference you have on them. All `GskRenderNode`s are immutable, you can only specify their properties during construction.

#### Descendants

- GskBlendNode
- GskBlurNode
- GskBorderNode
- GskCairoNode
- GskClipNode
- GskColorMatrixNode
- GskColorNode
- GskConicGradientNode
- GskContainerNode
- GskCrossFadeNode
- GskDebugNode
- GskGLShaderNode
- GskInsetShadowNode
- GskLinearGradientNode
- GskMaskNode
- GskOpacityNode
- GskOutsetShadowNode
- GskRadialGradientNode
- GskRepeatNode
- GskRepeatingLinearGradientNode
- GskRepeatingRadialGradientNode
- GskRoundedClipNode
- GskShadowNode
- GskTextNode
- GskTextureNode
- GskTextureScaleNode
- GskTransformNode

#### Functions

###### gsk_render_node_deserialize

Loads data previously created via `gsk_render_node_serialize()`.

#### Instance methods

###### gsk_render_node_draw

Draw the contents of `node` to the given cairo context.

###### gsk_render_node_get_bounds

Retrieves the boundaries of the `node`.

###### gsk_render_node_get_node_type

Returns the type of the `node`.

###### gsk_render_node_ref

Acquires a reference on the given `GskRenderNode`.

###### gsk_render_node_serialize

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.

###### gsk_render_node_unref

Releases a reference on the given `GskRenderNode`.

###### gsk_render_node_write_to_file

This function is equivalent to calling `gsk_render_node_serialize()` followed by `g_file_set_contents()`.