Class: Gsk::ContainerNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::ContainerNode
- Defined in:
- (unknown)
Overview
A render node that can contain other render nodes.
Instance Method Summary collapse
-
#get_child(idx) ⇒ Gsk::RenderNode
Gets one of the children of container.
-
#initialize(children, n_children) ⇒ Gsk::ContainerNode
constructor
Creates a new
GskRenderNodeinstance for holding the given children. -
#n_children ⇒ Integer
Retrieves the number of direct children of node.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(children, n_children) ⇒ Gsk::ContainerNode
Creates a new GskRenderNode instance for holding the given children.
The new node will acquire a reference to each of the children.
Instance Method Details
#get_child(idx) ⇒ Gsk::RenderNode
Gets one of the children of container.
#n_children ⇒ Integer
Retrieves the number of direct children of node.