:right-sidebar: True ContainerNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ContainerNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node that can contain other render nodes. Constructors ------------ .. rst-class:: interim-class .. class:: ContainerNode :no-index: .. classmethod:: new(children: list[~gi.repository.Gsk.RenderNode]) -> ~gi.repository.Gsk.ContainerNode Creates a new ``GskRenderNode`` instance for holding the given ``children``\. The new node will acquire a reference to each of the children. :param children: The children of the node Methods ------- .. rst-class:: interim-class .. class:: ContainerNode :no-index: .. method:: get_child(idx: int) -> ~gi.repository.Gsk.RenderNode Gets one of the children of ``container``\. :param idx: the position of the child to get .. method:: get_n_children() -> int Retrieves the number of direct children of ``node``\.