Class MSDFGenConfig

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class MSDFGenConfig extends Struct<MSDFGenConfig> implements NativeResource

 struct msdf_config {
     int overlap_support;
 }
  • 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.
  • Constructor Details

    • MSDFGenConfig

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

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

      public MSDFGenConfig overlap_support(int value)
      Sets the specified value to the overlap_support field.
    • set

      public MSDFGenConfig set(MSDFGenConfig src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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