Class CopyNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class CopyNode extends RenderNode
A render node that copies the current state of the rendering canvas so a PasteNode can draw it.
Since:
4.22
  • Constructor Details

    • CopyNode

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

      public CopyNode(RenderNode child)
      Creates a GskRenderNode that copies the current rendering canvas for playback by paste nodes that are part of the child.
      Parameters:
      child - The child
      Since:
      4.22
  • Method Details

    • getType

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

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

      protected CopyNode 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 drawn by the given node.
      Returns:
      the child GskRenderNode
      Since:
      4.22