1.13 <GskContainerNode>

Class: <GskContainerNode>

It derives from <GskRenderNode>.

A render node that can contain other render nodes.

Procedures

Method: container-node:get-child self idx ⇒ %return
Method: get-child self idx ⇒ %return

Gets one of the children of container.

self

Passed: a <GskContainerNode>.

a container <GskRenderNode>

idx

Passed: an unsigned 32-bit integer.

the position of the child to get

%return

Returned: a <GskRenderNode>.

the idx’th child of container

Method: container-node:get-n-children self ⇒ %return
Method: get-n-children self ⇒ %return

Retrieves the number of direct children of self.

self

Passed: a <GskContainerNode>.

a container <GskRenderNode>

%return

Returned: an unsigned 32-bit integer.

the number of children of the <GskRenderNode>

Procedure: container-node:new children ⇒ %return

Creates a new <GskRenderNode> instance for holding the given children.

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

children

Passed: a list or vector, each a <GskRenderNode>.

The children of the node

%return

Returned: a <GskContainerNode>.

the new <GskRenderNode>

n-children

Not passed: guile-gi gives the length of children.

Number of children in the children array