Class FT_Multi_Master

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_Multi_Master extends Struct<FT_Multi_Master> implements NativeResource

 struct FT_Multi_Master {
     FT_UInt num_axis;
     FT_UInt num_designs;
     {@link FT_MM_Axis FT_MM_Axis} axis[T1_MAX_MM_AXIS];
 }
  • 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.
    • AXIS

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

    • FT_Multi_Master

      public FT_Multi_Master(ByteBuffer container)
      Creates a FT_Multi_Master 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_Multi_Master>
    • 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.
    • axis

      public FT_MM_Axis.Buffer axis()
      Returns:
      a FT_MM_Axis.Buffer view of the axis field.
    • axis

      public FT_MM_Axis axis(int index)
      Returns:
      a FT_MM_Axis view of the struct at the specified index of the axis field.
    • malloc

      public static FT_Multi_Master malloc()
      Returns a new FT_Multi_Master instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FT_Multi_Master calloc()
      Returns a new FT_Multi_Master instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FT_Multi_Master create()
      Returns a new FT_Multi_Master instance allocated with BufferUtils.
    • create

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

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

      public static FT_Multi_Master.Buffer malloc(int capacity)
      Returns a new FT_Multi_Master.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FT_Multi_Master.Buffer calloc(int capacity)
      Returns a new FT_Multi_Master.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_Multi_Master.Buffer create(int capacity)
      Returns a new FT_Multi_Master.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      public static FT_Multi_Master malloc(MemoryStack stack)
      Returns a new FT_Multi_Master instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FT_Multi_Master calloc(MemoryStack stack)
      Returns a new FT_Multi_Master instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FT_Multi_Master.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FT_Multi_Master.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FT_Multi_Master.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FT_Multi_Master.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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().
    • naxis

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

      public static FT_MM_Axis naxis(long struct, int index)
      Unsafe version of axis.