Class FT_MM_Axis

All Implemented Interfaces:
Pointer

public class FT_MM_Axis extends Struct<FT_MM_Axis>

 struct FT_MM_Axis {
     FT_String * name;
     FT_Long minimum;
     FT_Long maximum;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NAME
      The struct member offsets.
    • MINIMUM

      public static final int MINIMUM
      The struct member offsets.
    • MAXIMUM

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

    • FT_MM_Axis

      public FT_MM_Axis(ByteBuffer container)
      Creates a FT_MM_Axis 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_MM_Axis>
    • name

      public ByteBuffer name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the name field.
    • nameString

      public String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • minimum

      public long minimum()
      Returns:
      the value of the minimum field.
    • maximum

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

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

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

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

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

      public static ByteBuffer nname(long struct)
      Unsafe version of name().
    • nnameString

      public static String nnameString(long struct)
      Unsafe version of nameString().
    • nminimum

      public static long nminimum(long struct)
      Unsafe version of minimum().
    • nmaximum

      public static long nmaximum(long struct)
      Unsafe version of maximum().