Class FT_Incremental_Metrics

All Implemented Interfaces:
Pointer

public class FT_Incremental_Metrics extends Struct<FT_Incremental_Metrics>

 struct FT_Incremental_MetricsRec {
     FT_Long bearing_x;
     FT_Long bearing_y;
     FT_Long advance;
     FT_Long advance_v;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BEARING_X
      The struct member offsets.
    • BEARING_Y

      public static final int BEARING_Y
      The struct member offsets.
    • ADVANCE

      public static final int ADVANCE
      The struct member offsets.
    • ADVANCE_V

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

    • FT_Incremental_Metrics

      public FT_Incremental_Metrics(ByteBuffer container)
      Creates a FT_Incremental_Metrics 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_Incremental_Metrics>
    • bearing_x

      public long bearing_x()
      Returns:
      the value of the bearing_x field.
    • bearing_y

      public long bearing_y()
      Returns:
      the value of the bearing_y field.
    • advance

      public long advance()
      Returns:
      the value of the advance field.
    • advance_v

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

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

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

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

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

      public static long nbearing_x(long struct)
      Unsafe version of bearing_x().
    • nbearing_y

      public static long nbearing_y(long struct)
      Unsafe version of bearing_y().
    • nadvance

      public static long nadvance(long struct)
      Unsafe version of advance().
    • nadvance_v

      public static long nadvance_v(long struct)
      Unsafe version of advance_v().