Class FTC_Scaler

All Implemented Interfaces:
Pointer

public class FTC_Scaler extends Struct<FTC_Scaler>

 struct FTC_ScalerRec {
     FTC_FaceID face_id;
     FT_UInt width;
     FT_UInt height;
     FT_Int pixel;
     FT_UInt x_res;
     FT_UInt y_res;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FACE_ID
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
    • PIXEL

      public static final int PIXEL
      The struct member offsets.
    • X_RES

      public static final int X_RES
      The struct member offsets.
    • Y_RES

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

    • FTC_Scaler

      public FTC_Scaler(ByteBuffer container)
      Creates a FTC_Scaler 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<FTC_Scaler>
    • face_id

      public long face_id()
      Returns:
      the value of the face_id field.
    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • pixel

      public int pixel()
      Returns:
      the value of the pixel field.
    • x_res

      public int x_res()
      Returns:
      the value of the x_res field.
    • y_res

      public int y_res()
      Returns:
      the value of the y_res field.
    • create

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

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

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

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

      public static long nface_id(long struct)
      Unsafe version of face_id().
    • nwidth

      public static int nwidth(long struct)
      Unsafe version of width().
    • nheight

      public static int nheight(long struct)
      Unsafe version of height().
    • npixel

      public static int npixel(long struct)
      Unsafe version of pixel().
    • nx_res

      public static int nx_res(long struct)
      Unsafe version of x_res().
    • ny_res

      public static int ny_res(long struct)
      Unsafe version of y_res().