Class FT_MM_Var

All Implemented Interfaces:
Pointer

public class FT_MM_Var extends Struct<FT_MM_Var>

 struct FT_MM_Var {
     FT_UInt num_axis;
     FT_UInt num_designs;
     FT_UInt num_namedstyles;
     {@link FT_Var_Axis FT_Var_Axis} * axis;
     {@link FT_Var_Named_Style FT_Var_Named_Style} * namedstyle;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NUM_AXIS
      The struct member offsets.
    • NUM_DESIGNS

      public static final int NUM_DESIGNS
      The struct member offsets.
    • NUM_NAMEDSTYLES

      public static final int NUM_NAMEDSTYLES
      The struct member offsets.
    • AXIS

      public static final int AXIS
      The struct member offsets.
    • NAMEDSTYLE

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

    • FT_MM_Var

      public FT_MM_Var(ByteBuffer container)
      Creates a FT_MM_Var 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_Var>
    • num_axis

      public int num_axis()
      Returns:
      the value of the num_axis field.
    • num_designs

      public int num_designs()
      Returns:
      the value of the num_designs field.
    • num_namedstyles

      public int num_namedstyles()
      Returns:
      the value of the num_namedstyles field.
    • axis

      public FT_Var_Axis.Buffer axis()
      Returns:
      a FT_Var_Axis.Buffer view of the struct array pointed to by the axis field.
    • namedstyle

      public FT_Var_Named_Style.Buffer namedstyle()
      Returns:
      a FT_Var_Named_Style.Buffer view of the struct array pointed to by the namedstyle field.
    • create

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

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

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

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

      public static int nnum_axis(long struct)
      Unsafe version of num_axis().
    • nnum_designs

      public static int nnum_designs(long struct)
      Unsafe version of num_designs().
    • nnum_namedstyles

      public static int nnum_namedstyles(long struct)
      Unsafe version of num_namedstyles().
    • naxis

      public static FT_Var_Axis.Buffer naxis(long struct)
      Unsafe version of axis().
    • nnamedstyle

      public static FT_Var_Named_Style.Buffer nnamedstyle(long struct)
      Unsafe version of namedstyle().