Class DebugNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DebugNode extends RenderNode
A render node that emits a debugging message when drawing its child node.
  • Constructor Details

    • DebugNode

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

      public DebugNode(RenderNode child, String message)

      Creates a GskRenderNode that will add debug information about the given child.

      Adding this node has no visual effect.

      Parameters:
      child - The child to add debug info for
      message - The debug message
  • Method Details

    • getType

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

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

      protected DebugNode 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
    • getMessage

      public String getMessage()
      Gets the debug message that was set on this node
      Returns:
      The debug message