Class FT_PaintRadialGradient

All Implemented Interfaces:
Pointer

public class FT_PaintRadialGradient extends Struct<FT_PaintRadialGradient>

 struct FT_PaintRadialGradient {
     {@link FT_ColorLine FT_ColorLine} colorline;
     {@link FT_Vector FT_Vector} c0;
     FT_Pos r0;
     {@link FT_Vector FT_Vector} c1;
     FT_Pos r1;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • COLORLINE

      public static final int COLORLINE
      The struct member offsets.
    • C0

      public static final int C0
      The struct member offsets.
    • R0

      public static final int R0
      The struct member offsets.
    • C1

      public static final int C1
      The struct member offsets.
    • R1

      public static final int R1
      The struct member offsets.
  • Constructor Details

    • FT_PaintRadialGradient

      public FT_PaintRadialGradient(ByteBuffer container)
      Creates a FT_PaintRadialGradient instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FT_PaintRadialGradient>
    • colorline

      public FT_ColorLine colorline()
      Returns:
      a FT_ColorLine view of the colorline field.
    • c0

      public FT_Vector c0()
      Returns:
      a FT_Vector view of the c0 field.
    • r0

      public long r0()
      Returns:
      the value of the r0 field.
    • c1

      public FT_Vector c1()
      Returns:
      a FT_Vector view of the c1 field.
    • r1

      public long r1()
      Returns:
      the value of the r1 field.
    • create

      public static FT_PaintRadialGradient create(long address)
      Returns a new FT_PaintRadialGradient instance for the specified memory address.
    • createSafe

      public static @Nullable FT_PaintRadialGradient createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static FT_PaintRadialGradient.Buffer create(long address, int capacity)
      Create a FT_PaintRadialGradient.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FT_PaintRadialGradient.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ncolorline

      public static FT_ColorLine ncolorline(long struct)
      Unsafe version of colorline().
    • nc0

      public static FT_Vector nc0(long struct)
      Unsafe version of c0().
    • nr0

      public static long nr0(long struct)
      Unsafe version of r0().
    • nc1

      public static FT_Vector nc1(long struct)
      Unsafe version of c1().
    • nr1

      public static long nr1(long struct)
      Unsafe version of r1().