Class RepeatingLinearGradientNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class RepeatingLinearGradientNode extends RenderNode
A render node for a repeating linear gradient.
  • Constructor Details

    • RepeatingLinearGradientNode

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

      public RepeatingLinearGradientNode(Rect bounds, Point start, Point end, @Nullable ColorStop @Nullable [] colorStops)
      Creates a GskRenderNode that will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds.
      Parameters:
      bounds - the rectangle to render the linear gradient into
      start - the point at which the linear gradient will begin
      end - the point at which the linear gradient will finish
      colorStops - a pointer to an array of GskColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.
  • Method Details

    • getType

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

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

      protected RepeatingLinearGradientNode 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