Class MSDFGenMultichannelConfig

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class MSDFGenMultichannelConfig extends Struct<MSDFGenMultichannelConfig> implements NativeResource

 struct msdf_multichannel_config {
     int overlap_support;
     int mode;
     int distance_check_mode;
     double min_deviation_ratio;
     double min_improve_ratio;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OVERLAP_SUPPORT
      The struct member offsets.
    • MODE

      public static final int MODE
      The struct member offsets.
    • DISTANCE_CHECK_MODE

      public static final int DISTANCE_CHECK_MODE
      The struct member offsets.
    • MIN_DEVIATION_RATIO

      public static final int MIN_DEVIATION_RATIO
      The struct member offsets.
    • MIN_IMPROVE_RATIO

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

    • MSDFGenMultichannelConfig

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

      public int overlap_support()
      Returns:
      the value of the overlap_support field.
    • mode

      public int mode()
      Returns:
      the value of the mode field.
    • distance_check_mode

      public int distance_check_mode()
      Returns:
      the value of the distance_check_mode field.
    • min_deviation_ratio

      public double min_deviation_ratio()
      Returns:
      the value of the min_deviation_ratio field.
    • min_improve_ratio

      public double min_improve_ratio()
      Returns:
      the value of the min_improve_ratio field.
    • overlap_support

      public MSDFGenMultichannelConfig overlap_support(int value)
      Sets the specified value to the overlap_support field.
    • mode

      public MSDFGenMultichannelConfig mode(int value)
      Sets the specified value to the mode field.
    • distance_check_mode

      public MSDFGenMultichannelConfig distance_check_mode(int value)
      Sets the specified value to the distance_check_mode field.
    • min_deviation_ratio

      public MSDFGenMultichannelConfig min_deviation_ratio(double value)
      Sets the specified value to the min_deviation_ratio field.
    • min_improve_ratio

      public MSDFGenMultichannelConfig min_improve_ratio(double value)
      Sets the specified value to the min_improve_ratio field.
    • set

      public MSDFGenMultichannelConfig set(int overlap_support, int mode, int distance_check_mode, double min_deviation_ratio, double min_improve_ratio)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static MSDFGenMultichannelConfig.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new MSDFGenMultichannelConfig.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
    • noverlap_support

      public static int noverlap_support(long struct)
      Unsafe version of overlap_support().
    • nmode

      public static int nmode(long struct)
      Unsafe version of mode().
    • ndistance_check_mode

      public static int ndistance_check_mode(long struct)
      Unsafe version of distance_check_mode().
    • nmin_deviation_ratio

      public static double nmin_deviation_ratio(long struct)
      Unsafe version of min_deviation_ratio().
    • nmin_improve_ratio

      public static double nmin_improve_ratio(long struct)
      Unsafe version of min_improve_ratio().
    • noverlap_support

      public static void noverlap_support(long struct, int value)
      Unsafe version of overlap_support.
    • nmode

      public static void nmode(long struct, int value)
      Unsafe version of mode.
    • ndistance_check_mode

      public static void ndistance_check_mode(long struct, int value)
      Unsafe version of distance_check_mode.
    • nmin_deviation_ratio

      public static void nmin_deviation_ratio(long struct, double value)
      Unsafe version of min_deviation_ratio.
    • nmin_improve_ratio

      public static void nmin_improve_ratio(long struct, double value)
      Unsafe version of min_improve_ratio.