Class ClipNode

All Implemented Interfaces:
PointerInterface

public class ClipNode extends RenderNode
A render node applying a rectangular clip to its single child node.

https://docs.gtk.org/gsk4/class.ClipNode.html

  • Constructor Details

    • ClipNode

      public ClipNode(PointerContainer pointer)
    • ClipNode

      public ClipNode(@Nonnull RenderNode child, @Nonnull 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

    • getClassHandler

      public static ClassHandler getClassHandler()
    • 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
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()