Class FT_PaintScale

All Implemented Interfaces:
Pointer

public class FT_PaintScale extends Struct<FT_PaintScale>

 struct FT_PaintScale {
     {@link FT_OpaquePaint FT_OpaquePaintRec} paint;
     FT_Fixed scale_x;
     FT_Fixed scale_y;
     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.
    • SCALE_X

      public static final int SCALE_X
      The struct member offsets.
    • SCALE_Y

      public static final int SCALE_Y
      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_PaintScale

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

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

      public long scale_x()
      Returns:
      the value of the scale_x field.
    • scale_y

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

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

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

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

      public static long nscale_x(long struct)
      Unsafe version of scale_x().
    • nscale_y

      public static long nscale_y(long struct)
      Unsafe version of scale_y().
    • 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().