Class hb_segment_properties_t

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<hb_segment_properties_t>
org.lwjgl.util.harfbuzz.hb_segment_properties_t
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class hb_segment_properties_t extends org.lwjgl.system.Struct<hb_segment_properties_t> implements org.lwjgl.system.NativeResource
The structure that holds various text properties of an hb_buffer_t.

Can be set and retrieved using buffer_set_segment_properties and buffer_get_segment_properties, respectively.

Layout


 struct hb_segment_properties_t {
     hb_direction_t direction();
     hb_script_t script();
     hb_language_t language();
     void * reserved1;
     void * reserved2;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DIRECTION
      The struct member offsets.
    • SCRIPT

      public static final int SCRIPT
      The struct member offsets.
    • LANGUAGE

      public static final int LANGUAGE
      The struct member offsets.
    • RESERVED1

      public static final int RESERVED1
      The struct member offsets.
    • RESERVED2

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

    • hb_segment_properties_t

      public hb_segment_properties_t(ByteBuffer container)
      Creates a hb_segment_properties_t 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<hb_segment_properties_t>
    • direction

      public int direction()
      the hb_direction_t of the buffer, see buffer_set_direction.
    • script

      public int script()
      the hb_script_t of the buffer, see buffer_set_script.
    • language

      public long language()
      the hb_language_t of the buffer, see buffer_set_language.
    • direction

      public hb_segment_properties_t direction(int value)
      Sets the specified value to the direction() field.
    • script

      public hb_segment_properties_t script(int value)
      Sets the specified value to the script() field.
    • language

      public hb_segment_properties_t language(long value)
      Sets the specified value to the language() field.
    • set

      public hb_segment_properties_t set(int direction, int script, long language)
      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 hb_segment_properties_t malloc()
      Returns a new hb_segment_properties_t instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static hb_segment_properties_t.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new hb_segment_properties_t.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
    • ndirection

      public static int ndirection(long struct)
      Unsafe version of direction().
    • nscript

      public static int nscript(long struct)
      Unsafe version of script().
    • nlanguage

      public static long nlanguage(long struct)
      Unsafe version of language().
    • nreserved1

      public static long nreserved1(long struct)
    • nreserved2

      public static long nreserved2(long struct)
    • ndirection

      public static void ndirection(long struct, int value)
      Unsafe version of direction.
    • nscript

      public static void nscript(long struct, int value)
      Unsafe version of script.
    • nlanguage

      public static void nlanguage(long struct, long value)
      Unsafe version of language.
    • nreserved1

      public static void nreserved1(long struct, long value)
    • nreserved2

      public static void nreserved2(long struct, long value)