Class ClipNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ClipNode extends RenderNode
A render node applying a rectangular clip to its single child node.
  • Constructor Details

    • ClipNode

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

      public ClipNode(RenderNode child, Rect clip)
      Creates a GskRenderNode that will clip the child to the area given by clip.
      Parameters:
      child - The node to draw
      clip - The clip to apply
  • Method Details

    • getType

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

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

      protected ClipNode 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()
      Gets the child node that is getting clipped by the given node.
      Returns:
      The child that is getting clipped
    • getClip

      public Rect getClip()
      Retrieves the clip rectangle for node.
      Returns:
      a clip rectangle