Class RepeatNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class RepeatNode extends RenderNode
A render node repeating its single child node.
  • Constructor Details

    • RepeatNode

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

      public RepeatNode(Rect bounds, RenderNode child, @Nullable Rect childBounds)
      Creates a GskRenderNode that will repeat the drawing of child across the given bounds.
      Parameters:
      bounds - The bounds of the area to be painted
      child - The child to repeat
      childBounds - The area of the child to repeat or null to use the child's bounds
  • Method Details

    • getType

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

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

      protected RepeatNode 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()
      Retrieves the child of node.
      Returns:
      a GskRenderNode
    • getChildBounds

      public Rect getChildBounds()
      Retrieves the bounding rectangle of the child of node.
      Returns:
      a bounding rectangle