Class RepeatingRadialGradientNode

All Implemented Interfaces:
Proxy

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

    • RepeatingRadialGradientNode

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

      public RepeatingRadialGradientNode(Rect bounds, Point center, float hradius, float vradius, float start, float end, @Nullable ColorStop @Nullable [] colorStops)

      Creates a GskRenderNode that draws a repeating radial gradient.

      The radial gradient starts around center. The size of the gradient is dictated by hradius in horizontal orientation and by vradius in vertical orientation.

      Parameters:
      bounds - the bounds of the node
      center - the center of the gradient
      hradius - the horizontal radius
      vradius - the vertical radius
      start - a percentage >= 0 that defines the start of the gradient around center
      end - a percentage >= 0 that defines the end of the gradient around center
      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 RepeatingRadialGradientNode class.
      Returns:
      the GType
    • getMemoryLayout

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

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