Class TransformNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TransformNode extends RenderNode
A render node applying a GskTransform to its single child node.
  • Constructor Details

    • TransformNode

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

      public TransformNode(RenderNode child, @Nullable Transform transform)
      Creates a GskRenderNode that will transform the given child with the given transform.
      Parameters:
      child - The node to transform
      transform - The transform to apply
  • Method Details

    • getType

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

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

      protected TransformNode 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 transformed by the given node.
      Returns:
      The child that is getting transformed
    • getTransform

      public Transform getTransform()
      Retrieves the GskTransform used by the node.
      Returns:
      a GskTransform