About my projects, examples and tutorials
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 an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

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 \)
Code
  • $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 )
Code
  • $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 )
Code

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