Class: Gsk::SubsurfaceNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node that potentially diverts a part of the scene graph to a subsurface.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(child, subsurface) ⇒ Gsk::SubsurfaceNode

Creates a GskRenderNode that will possibly divert the child node to a subsurface.

Note: Since subsurfaces are currently private, these nodes cannot currently be created outside of GTK. See GtkGraphicsOffload.

Parameters:

  • child (Gsk::RenderNode)

    The child to divert to a subsurface

  • subsurface (GObject)

    the subsurface to use

Class Method Details

.get_subsurface(node) ⇒ GObject

Gets the subsurface that was set on this node

Parameters:

Returns:

  • (GObject)

    the subsurface

Instance Method Details

#childGsk::RenderNode

Gets the child node that is getting drawn by the given node.

Returns: