Class CrossFadeNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class CrossFadeNode extends RenderNode
A render node cross fading between two child nodes.
  • Constructor Details

    • CrossFadeNode

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

      public CrossFadeNode(RenderNode start, RenderNode end, float progress)
      Creates a GskRenderNode that will do a cross-fade between start and end.
      Parameters:
      start - The start node to be drawn
      end - The node to be cross_fadeed onto the start node
      progress - How far the fade has progressed from start to end. The value will be clamped to the range [0 ... 1]
  • Method Details

    • getType

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

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

      protected CrossFadeNode 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
    • getEndChild

      public RenderNode getEndChild()
      Retrieves the child GskRenderNode at the end of the cross-fade.
      Returns:
      a GskRenderNode
    • getProgress

      public float getProgress()
      Retrieves the progress value of the cross fade.
      Returns:
      the progress value, between 0 and 1
    • getStartChild

      public RenderNode getStartChild()
      Retrieves the child GskRenderNode at the beginning of the cross-fade.
      Returns:
      a GskRenderNode