Class RoundedClipNode

All Implemented Interfaces:
Proxy

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

    • RoundedClipNode

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

      public RoundedClipNode(RenderNode child, RoundedRect 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 RoundedClipNode class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected RoundedClipNode 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 RoundedRect getClip()
      Retrieves the rounded rectangle used to clip the contents of the node.
      Returns:
      a rounded rectangle