Class ContainerNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ContainerNode extends RenderNode
A render node that can contain other render nodes.
  • Constructor Details

    • ContainerNode

      public ContainerNode(MemorySegment address)
      Create a ContainerNode instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ContainerNode

      public ContainerNode(@Nullable RenderNode @Nullable [] children)

      Creates a new GskRenderNode instance for holding the given children.

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

      Parameters:
      children - The children of the node
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ContainerNode class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ContainerNode asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class RenderNode
      Returns:
      the instance as if it were its parent type
    • getChild

      public RenderNode getChild(int idx)
      Gets one of the children of container.
      Parameters:
      idx - the position of the child to get
      Returns:
      the idx'th child of container
    • getNChildren

      public int getNChildren()
      Retrieves the number of direct children of node.
      Returns:
      the number of children of the GskRenderNode