Class FT_PaintSkew

All Implemented Interfaces:
Pointer

public class FT_PaintSkew extends Struct<FT_PaintSkew>

 struct FT_PaintSkew {
     {@link FT_OpaquePaint FT_OpaquePaintRec} paint;
     FT_Fixed x_skew_angle;
     FT_Fixed y_skew_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.
    • X_SKEW_ANGLE

      public static final int X_SKEW_ANGLE
      The struct member offsets.
    • Y_SKEW_ANGLE

      public static final int Y_SKEW_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_PaintSkew

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

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

      public long x_skew_angle()
      Returns:
      the value of the x_skew_angle field.
    • y_skew_angle

      public long y_skew_angle()
      Returns:
      the value of the y_skew_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_PaintSkew create(long address)
      Returns a new FT_PaintSkew instance for the specified memory address.
    • createSafe

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

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

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

      public static long nx_skew_angle(long struct)
      Unsafe version of x_skew_angle().
    • ny_skew_angle

      public static long ny_skew_angle(long struct)
      Unsafe version of y_skew_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().