Gsk.ContainerNode

g Gsk.ContainerNode Gsk.ContainerNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.ContainerNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (children)

get_child (idx)

get_n_children ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.ContainerNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node that can contain other render nodes.

classmethod new(children)
Parameters:

children ([Gsk.RenderNode]) – The children of the node

Returns:

the new GskRenderNode

Return type:

Gsk.ContainerNode

Creates a new GskRenderNode instance for holding the given children.

The new node will acquire a reference to each of the children.

get_child(idx)
Parameters:

idx (int) – the position of the child to get

Returns:

the idx'th child of container

Return type:

Gsk.RenderNode

Gets one of the children of container.

get_n_children()
Returns:

the number of children of the GskRenderNode

Return type:

int

Retrieves the number of direct children of self.