Class FT_PaintRotate

All Implemented Interfaces:
Pointer

public class FT_PaintRotate extends Struct<FT_PaintRotate>

 struct FT_PaintRotate {
     {@link FT_OpaquePaint FT_OpaquePaintRec} paint;
     FT_Fixed angle;
     FT_Fixed center_x;
     FT_Fixed center_y;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PAINT
      The struct member offsets.
    • ANGLE

      public static final int ANGLE
      The struct member offsets.
    • CENTER_X

      public static final int CENTER_X
      The struct member offsets.
    • CENTER_Y

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

    • FT_PaintRotate

      public FT_PaintRotate(ByteBuffer container)
      Creates a FT_PaintRotate 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_PaintRotate>
    • paint

      public FT_OpaquePaint paint()
      Returns:
      a FT_OpaquePaint view of the paint field.
    • angle

      public long angle()
      Returns:
      the value of the angle field.
    • center_x

      public long center_x()
      Returns:
      the value of the center_x field.
    • center_y

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

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

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

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

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

      public static FT_OpaquePaint npaint(long struct)
      Unsafe version of paint().
    • nangle

      public static long nangle(long struct)
      Unsafe version of angle().
    • ncenter_x

      public static long ncenter_x(long struct)
      Unsafe version of center_x().
    • ncenter_y

      public static long ncenter_y(long struct)
      Unsafe version of center_y().