Class STBTTPackRange

java.lang.Object
overrungl.struct.Struct
overrungl.stb.STBTTPackRange

public final class STBTTPackRange extends Struct

Members

font_size

VarHandle - Getter - Setter

first_unicode_codepoint_in_range

VarHandle - Getter - Setter

array_of_unicode_codepoints

VarHandle - Getter - Setter

num_chars

VarHandle - Getter - Setter

chardata_for_range

VarHandle - Getter - Setter

h_oversample

VarHandle - Getter - Setter

v_oversample

VarHandle - Getter - Setter

Layout

Java definition

typedef struct stbtt_pack_range {
    float font_size;
    int first_unicode_codepoint_in_range;
    int* array_of_unicode_codepoints;
    int num_chars;
    stbtt_packedchar * chardata_for_range;
    unsigned char h_oversample;
    unsigned char v_oversample;
} STBTTPackRange;
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
      The struct layout of stbtt_pack_range.
    • VH_font_size

      public static final VarHandle VH_font_size
      The VarHandle of font_size of type (MemorySegment base, long baseOffset, long index)float.
    • VH_first_unicode_codepoint_in_range

      public static final VarHandle VH_first_unicode_codepoint_in_range
      The VarHandle of first_unicode_codepoint_in_range of type (MemorySegment base, long baseOffset, long index)int.
    • VH_array_of_unicode_codepoints

      public static final VarHandle VH_array_of_unicode_codepoints
      The VarHandle of array_of_unicode_codepoints of type (MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment.
    • VH_num_chars

      public static final VarHandle VH_num_chars
      The VarHandle of num_chars of type (MemorySegment base, long baseOffset, long index)int.
    • VH_chardata_for_range

      public static final VarHandle VH_chardata_for_range
      The VarHandle of chardata_for_range of type (MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment.
    • VH_h_oversample

      public static final VarHandle VH_h_oversample
      The VarHandle of h_oversample of type (MemorySegment base, long baseOffset, long index)byte.
    • VH_v_oversample

      public static final VarHandle VH_v_oversample
      The VarHandle of v_oversample of type (MemorySegment base, long baseOffset, long index)byte.
  • Constructor Details

    • STBTTPackRange

      public STBTTPackRange(MemorySegment segment)
      Creates STBTTPackRange with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      public static STBTTPackRange of(MemorySegment segment)
      Creates STBTTPackRange with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static STBTTPackRange alloc(SegmentAllocator allocator)
      Allocates a STBTTPackRange with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated STBTTPackRange
    • alloc

      public static STBTTPackRange alloc(SegmentAllocator allocator, long count)
      Allocates a STBTTPackRange with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated STBTTPackRange
    • get_font_size

      @CType("float") public static float get_font_size(MemorySegment segment, long index)
      Returns font_size at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      font_size at the given index
    • get_font_size

      @CType("float") public static float get_font_size(MemorySegment segment)
      Returns font_size.
      Parameters:
      segment - the segment of the struct
      Returns:
      font_size
    • font_sizeAt

      @CType("float") public float font_sizeAt(long index)
      Returns font_size at the given index.
      Parameters:
      index - the index
      Returns:
      font_size at the given index
    • font_size

      @CType("float") public float font_size()
      Returns font_size.
      Returns:
      font_size
    • set_font_size

      public static void set_font_size(MemorySegment segment, long index, @CType("float") float value)
      Sets font_size with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_font_size

      public static void set_font_size(MemorySegment segment, @CType("float") float value)
      Sets font_size with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • font_sizeAt

      public STBTTPackRange font_sizeAt(long index, @CType("float") float value)
      Sets font_size with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • font_size

      public STBTTPackRange font_size(@CType("float") float value)
      Sets font_size with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_first_unicode_codepoint_in_range

      @CType("int") public static int get_first_unicode_codepoint_in_range(MemorySegment segment, long index)
      Returns first_unicode_codepoint_in_range at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      first_unicode_codepoint_in_range at the given index
    • get_first_unicode_codepoint_in_range

      @CType("int") public static int get_first_unicode_codepoint_in_range(MemorySegment segment)
      Returns first_unicode_codepoint_in_range.
      Parameters:
      segment - the segment of the struct
      Returns:
      first_unicode_codepoint_in_range
    • first_unicode_codepoint_in_rangeAt

      @CType("int") public int first_unicode_codepoint_in_rangeAt(long index)
      Returns first_unicode_codepoint_in_range at the given index.
      Parameters:
      index - the index
      Returns:
      first_unicode_codepoint_in_range at the given index
    • first_unicode_codepoint_in_range

      @CType("int") public int first_unicode_codepoint_in_range()
      Returns first_unicode_codepoint_in_range.
      Returns:
      first_unicode_codepoint_in_range
    • set_first_unicode_codepoint_in_range

      public static void set_first_unicode_codepoint_in_range(MemorySegment segment, long index, @CType("int") int value)
      Sets first_unicode_codepoint_in_range with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_first_unicode_codepoint_in_range

      public static void set_first_unicode_codepoint_in_range(MemorySegment segment, @CType("int") int value)
      Sets first_unicode_codepoint_in_range with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • first_unicode_codepoint_in_rangeAt

      public STBTTPackRange first_unicode_codepoint_in_rangeAt(long index, @CType("int") int value)
      Sets first_unicode_codepoint_in_range with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • first_unicode_codepoint_in_range

      public STBTTPackRange first_unicode_codepoint_in_range(@CType("int") int value)
      Sets first_unicode_codepoint_in_range with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_array_of_unicode_codepoints

      @CType("int*") public static MemorySegment get_array_of_unicode_codepoints(MemorySegment segment, long index)
      Returns array_of_unicode_codepoints at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      array_of_unicode_codepoints at the given index
    • get_array_of_unicode_codepoints

      @CType("int*") public static MemorySegment get_array_of_unicode_codepoints(MemorySegment segment)
      Returns array_of_unicode_codepoints.
      Parameters:
      segment - the segment of the struct
      Returns:
      array_of_unicode_codepoints
    • array_of_unicode_codepointsAt

      @CType("int*") public MemorySegment array_of_unicode_codepointsAt(long index)
      Returns array_of_unicode_codepoints at the given index.
      Parameters:
      index - the index
      Returns:
      array_of_unicode_codepoints at the given index
    • array_of_unicode_codepoints

      @CType("int*") public MemorySegment array_of_unicode_codepoints()
      Returns array_of_unicode_codepoints.
      Returns:
      array_of_unicode_codepoints
    • set_array_of_unicode_codepoints

      public static void set_array_of_unicode_codepoints(MemorySegment segment, long index, @CType("int*") MemorySegment value)
      Sets array_of_unicode_codepoints with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_array_of_unicode_codepoints

      public static void set_array_of_unicode_codepoints(MemorySegment segment, @CType("int*") MemorySegment value)
      Sets array_of_unicode_codepoints with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • array_of_unicode_codepointsAt

      public STBTTPackRange array_of_unicode_codepointsAt(long index, @CType("int*") MemorySegment value)
      Sets array_of_unicode_codepoints with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • array_of_unicode_codepoints

      public STBTTPackRange array_of_unicode_codepoints(@CType("int*") MemorySegment value)
      Sets array_of_unicode_codepoints with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_num_chars

      @CType("int") public static int get_num_chars(MemorySegment segment, long index)
      Returns num_chars at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      num_chars at the given index
    • get_num_chars

      @CType("int") public static int get_num_chars(MemorySegment segment)
      Returns num_chars.
      Parameters:
      segment - the segment of the struct
      Returns:
      num_chars
    • num_charsAt

      @CType("int") public int num_charsAt(long index)
      Returns num_chars at the given index.
      Parameters:
      index - the index
      Returns:
      num_chars at the given index
    • num_chars

      @CType("int") public int num_chars()
      Returns num_chars.
      Returns:
      num_chars
    • set_num_chars

      public static void set_num_chars(MemorySegment segment, long index, @CType("int") int value)
      Sets num_chars with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_num_chars

      public static void set_num_chars(MemorySegment segment, @CType("int") int value)
      Sets num_chars with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • num_charsAt

      public STBTTPackRange num_charsAt(long index, @CType("int") int value)
      Sets num_chars with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • num_chars

      public STBTTPackRange num_chars(@CType("int") int value)
      Sets num_chars with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_chardata_for_range

      @CType("stbtt_packedchar *") public static MemorySegment get_chardata_for_range(MemorySegment segment, long index)
      Returns chardata_for_range at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      chardata_for_range at the given index
    • get_chardata_for_range

      @CType("stbtt_packedchar *") public static MemorySegment get_chardata_for_range(MemorySegment segment)
      Returns chardata_for_range.
      Parameters:
      segment - the segment of the struct
      Returns:
      chardata_for_range
    • chardata_for_rangeAt

      @CType("stbtt_packedchar *") public MemorySegment chardata_for_rangeAt(long index)
      Returns chardata_for_range at the given index.
      Parameters:
      index - the index
      Returns:
      chardata_for_range at the given index
    • chardata_for_range

      @CType("stbtt_packedchar *") public MemorySegment chardata_for_range()
      Returns chardata_for_range.
      Returns:
      chardata_for_range
    • set_chardata_for_range

      public static void set_chardata_for_range(MemorySegment segment, long index, @CType("stbtt_packedchar *") MemorySegment value)
      Sets chardata_for_range with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_chardata_for_range

      public static void set_chardata_for_range(MemorySegment segment, @CType("stbtt_packedchar *") MemorySegment value)
      Sets chardata_for_range with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • chardata_for_rangeAt

      public STBTTPackRange chardata_for_rangeAt(long index, @CType("stbtt_packedchar *") MemorySegment value)
      Sets chardata_for_range with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • chardata_for_range

      public STBTTPackRange chardata_for_range(@CType("stbtt_packedchar *") MemorySegment value)
      Sets chardata_for_range with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_h_oversample

      @CType("unsigned char") public static byte get_h_oversample(MemorySegment segment, long index)
      Returns h_oversample at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      h_oversample at the given index
    • get_h_oversample

      @CType("unsigned char") public static byte get_h_oversample(MemorySegment segment)
      Returns h_oversample.
      Parameters:
      segment - the segment of the struct
      Returns:
      h_oversample
    • h_oversampleAt

      @CType("unsigned char") public byte h_oversampleAt(long index)
      Returns h_oversample at the given index.
      Parameters:
      index - the index
      Returns:
      h_oversample at the given index
    • h_oversample

      @CType("unsigned char") public byte h_oversample()
      Returns h_oversample.
      Returns:
      h_oversample
    • set_h_oversample

      public static void set_h_oversample(MemorySegment segment, long index, @CType("unsigned char") byte value)
      Sets h_oversample with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_h_oversample

      public static void set_h_oversample(MemorySegment segment, @CType("unsigned char") byte value)
      Sets h_oversample with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • h_oversampleAt

      public STBTTPackRange h_oversampleAt(long index, @CType("unsigned char") byte value)
      Sets h_oversample with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • h_oversample

      public STBTTPackRange h_oversample(@CType("unsigned char") byte value)
      Sets h_oversample with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • get_v_oversample

      @CType("unsigned char") public static byte get_v_oversample(MemorySegment segment, long index)
      Returns v_oversample at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      Returns:
      v_oversample at the given index
    • get_v_oversample

      @CType("unsigned char") public static byte get_v_oversample(MemorySegment segment)
      Returns v_oversample.
      Parameters:
      segment - the segment of the struct
      Returns:
      v_oversample
    • v_oversampleAt

      @CType("unsigned char") public byte v_oversampleAt(long index)
      Returns v_oversample at the given index.
      Parameters:
      index - the index
      Returns:
      v_oversample at the given index
    • v_oversample

      @CType("unsigned char") public byte v_oversample()
      Returns v_oversample.
      Returns:
      v_oversample
    • set_v_oversample

      public static void set_v_oversample(MemorySegment segment, long index, @CType("unsigned char") byte value)
      Sets v_oversample with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index
      value - the value
    • set_v_oversample

      public static void set_v_oversample(MemorySegment segment, @CType("unsigned char") byte value)
      Sets v_oversample with the given value.
      Parameters:
      segment - the segment of the struct
      value - the value
    • v_oversampleAt

      public STBTTPackRange v_oversampleAt(long index, @CType("unsigned char") byte value)
      Sets v_oversample with the given value at the given index.
      Parameters:
      index - the index
      value - the value
      Returns:
      this
    • v_oversample

      public STBTTPackRange v_oversample(@CType("unsigned char") byte value)
      Sets v_oversample with the given value.
      Parameters:
      value - the value
      Returns:
      this