Class SubsurfaceNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class SubsurfaceNode extends RenderNode
A render node that potentially diverts a part of the scene graph to a subsurface.
Since:
4.14
  • Constructor Details

    • SubsurfaceNode

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

      public SubsurfaceNode(RenderNode child, @Nullable MemorySegment subsurface)

      Creates a GskRenderNode that will possibly divert the child node to a subsurface.

      Note: Since subsurfaces are currently private, these nodes cannot currently be created outside of GTK. See GtkGraphicsOffload.

      Parameters:
      child - The child to divert to a subsurface
      subsurface - the subsurface to use
      Since:
      4.14
  • Method Details

    • getType

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

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

      protected SubsurfaceNode 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
    • getSubsurface

      public static @Nullable MemorySegment getSubsurface(DebugNode node)
      Gets the subsurface that was set on this node
      Parameters:
      node - a subsurface GskRenderNode
      Returns:
      the subsurface
      Since:
      4.14
    • getChild

      public RenderNode getChild()
      Gets the child node that is getting drawn by the given node.
      Returns:
      the child GskRenderNode
      Since:
      4.14