Class PasteNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PasteNode extends RenderNode
A render node for a paste.
Since:
4.22
  • Constructor Details

    • PasteNode

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

      public PasteNode(Rect bounds, long depth)
      Creates a GskRenderNode that will paste copied contents.
      Parameters:
      bounds - the rectangle to render the paste into
      depth - the index of which copy to paste. This will usually be 0.
      Since:
      4.22
  • Method Details

    • getType

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

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

      protected PasteNode 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
    • getDepth

      public long getDepth()
      Retrieves the index of the copy that should be pasted.
      Returns:
      the index of the copy to paste.
      Since:
      4.22