Class FT_PaintSweepGradient

All Implemented Interfaces:
Pointer

public class FT_PaintSweepGradient extends Struct<FT_PaintSweepGradient>

 struct FT_PaintSweepGradient {
     {@link FT_ColorLine FT_ColorLine} colorline;
     {@link FT_Vector FT_Vector} center;
     FT_Fixed start_angle;
     FT_Fixed end_angle;
 }
  • 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.
    • CENTER

      public static final int CENTER
      The struct member offsets.
    • START_ANGLE

      public static final int START_ANGLE
      The struct member offsets.
    • END_ANGLE

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

    • FT_PaintSweepGradient

      public FT_PaintSweepGradient(ByteBuffer container)
      Creates a FT_PaintSweepGradient 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_PaintSweepGradient>
    • colorline

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

      public FT_Vector center()
      Returns:
      a FT_Vector view of the center field.
    • start_angle

      public long start_angle()
      Returns:
      the value of the start_angle field.
    • end_angle

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

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

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

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

      public static @Nullable FT_PaintSweepGradient.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().
    • ncenter

      public static FT_Vector ncenter(long struct)
      Unsafe version of center().
    • nstart_angle

      public static long nstart_angle(long struct)
      Unsafe version of start_angle().
    • nend_angle

      public static long nend_angle(long struct)
      Unsafe version of end_angle().