Class CrossFadeNode

All Implemented Interfaces:
PointerInterface

public class CrossFadeNode extends RenderNode
A render node cross fading between two child nodes.

https://docs.gtk.org/gsk4/class.CrossFadeNode.html

  • Constructor Details

    • CrossFadeNode

      public CrossFadeNode(PointerContainer pointer)
    • CrossFadeNode

      public CrossFadeNode(@Nonnull RenderNode start, @Nonnull 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

    • getClassHandler

      public static ClassHandler getClassHandler()
    • 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`
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()