About all my projects
Gnome::Gsk4::ContainerNode

Gnome::Gsk4::ContainerNode

Description

A render node that can contain other render nodes.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-containernode

Creates a new Gnome::Gsk4::RenderNode instance for holding the given $children.

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

method new-containernode ( N-Object() $children, UInt() $n-children --> Gnome::Gsk4::ContainerNode \)
  • $children; The children of the node.

  • $n-children; Number of children in the $children array.

Methods

get-child

Gets one of the children of $container.

method get-child ( UInt() $idx --> N-Object )
  • $idx; the position of the child to get.

Return value; the $idx'th child of $container.

get-n-children

Retrieves the number of direct children of $node.

method get-n-children (--> UInt )

Return value; the number of children of the Gnome::Gsk4::RenderNode.