Class STBTTPackRange
java.lang.Object
overrungl.struct.Struct
overrungl.stb.STBTTPackRange
Members
font_size
first_unicode_codepoint_in_range
array_of_unicode_codepoints
num_chars
chardata_for_range
h_oversample
v_oversample
Layout
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 Summary
Modifier and TypeFieldDescriptionstatic final StructLayout
The struct layout ofstbtt_pack_range
.static final VarHandle
TheVarHandle
ofarray_of_unicode_codepoints
of type(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment
.static final VarHandle
TheVarHandle
ofchardata_for_range
of type(MemorySegment base, long baseOffset, long index)java.lang.foreign.MemorySegment
.static final VarHandle
TheVarHandle
offirst_unicode_codepoint_in_range
of type(MemorySegment base, long baseOffset, long index)int
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
-
Constructor Summary
ConstructorDescriptionSTBTTPackRange
(MemorySegment segment) CreatesSTBTTPackRange
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTPackRange
alloc
(SegmentAllocator allocator) Allocates aSTBTTPackRange
with the given segment allocator.static STBTTPackRange
alloc
(SegmentAllocator allocator, long count) Allocates aSTBTTPackRange
with the given segment allocator and count.Returnsarray_of_unicode_codepoints
.Setsarray_of_unicode_codepoints
with the given value.array_of_unicode_codepointsAt
(long index) Returnsarray_of_unicode_codepoints
at the given index.array_of_unicode_codepointsAt
(long index, MemorySegment value) Setsarray_of_unicode_codepoints
with the given value at the given index.Returnschardata_for_range
.chardata_for_range
(MemorySegment value) Setschardata_for_range
with the given value.chardata_for_rangeAt
(long index) Returnschardata_for_range
at the given index.chardata_for_rangeAt
(long index, MemorySegment value) Setschardata_for_range
with the given value at the given index.int
Returnsfirst_unicode_codepoint_in_range
.first_unicode_codepoint_in_range
(int value) Setsfirst_unicode_codepoint_in_range
with the given value.int
first_unicode_codepoint_in_rangeAt
(long index) Returnsfirst_unicode_codepoint_in_range
at the given index.first_unicode_codepoint_in_rangeAt
(long index, int value) Setsfirst_unicode_codepoint_in_range
with the given value at the given index.float
Returnsfont_size
.font_size
(float value) Setsfont_size
with the given value.float
font_sizeAt
(long index) Returnsfont_size
at the given index.font_sizeAt
(long index, float value) Setsfont_size
with the given value at the given index.static MemorySegment
Returnsarray_of_unicode_codepoints
.static MemorySegment
get_array_of_unicode_codepoints
(MemorySegment segment, long index) Returnsarray_of_unicode_codepoints
at the given index.static MemorySegment
get_chardata_for_range
(MemorySegment segment) Returnschardata_for_range
.static MemorySegment
get_chardata_for_range
(MemorySegment segment, long index) Returnschardata_for_range
at the given index.static int
Returnsfirst_unicode_codepoint_in_range
.static int
get_first_unicode_codepoint_in_range
(MemorySegment segment, long index) Returnsfirst_unicode_codepoint_in_range
at the given index.static float
get_font_size
(MemorySegment segment) Returnsfont_size
.static float
get_font_size
(MemorySegment segment, long index) Returnsfont_size
at the given index.static byte
get_h_oversample
(MemorySegment segment) Returnsh_oversample
.static byte
get_h_oversample
(MemorySegment segment, long index) Returnsh_oversample
at the given index.static int
get_num_chars
(MemorySegment segment) Returnsnum_chars
.static int
get_num_chars
(MemorySegment segment, long index) Returnsnum_chars
at the given index.static byte
get_v_oversample
(MemorySegment segment) Returnsv_oversample
.static byte
get_v_oversample
(MemorySegment segment, long index) Returnsv_oversample
at the given index.byte
Returnsh_oversample
.h_oversample
(byte value) Setsh_oversample
with the given value.byte
h_oversampleAt
(long index) Returnsh_oversample
at the given index.h_oversampleAt
(long index, byte value) Setsh_oversample
with the given value at the given index.int
Returnsnum_chars
.num_chars
(int value) Setsnum_chars
with the given value.int
num_charsAt
(long index) Returnsnum_chars
at the given index.num_charsAt
(long index, int value) Setsnum_chars
with the given value at the given index.static STBTTPackRange
of
(MemorySegment segment) CreatesSTBTTPackRange
with the given segment.static void
set_array_of_unicode_codepoints
(MemorySegment segment, long index, MemorySegment value) Setsarray_of_unicode_codepoints
with the given value at the given index.static void
set_array_of_unicode_codepoints
(MemorySegment segment, MemorySegment value) Setsarray_of_unicode_codepoints
with the given value.static void
set_chardata_for_range
(MemorySegment segment, long index, MemorySegment value) Setschardata_for_range
with the given value at the given index.static void
set_chardata_for_range
(MemorySegment segment, MemorySegment value) Setschardata_for_range
with the given value.static void
set_first_unicode_codepoint_in_range
(MemorySegment segment, int value) Setsfirst_unicode_codepoint_in_range
with the given value.static void
set_first_unicode_codepoint_in_range
(MemorySegment segment, long index, int value) Setsfirst_unicode_codepoint_in_range
with the given value at the given index.static void
set_font_size
(MemorySegment segment, float value) Setsfont_size
with the given value.static void
set_font_size
(MemorySegment segment, long index, float value) Setsfont_size
with the given value at the given index.static void
set_h_oversample
(MemorySegment segment, byte value) Setsh_oversample
with the given value.static void
set_h_oversample
(MemorySegment segment, long index, byte value) Setsh_oversample
with the given value at the given index.static void
set_num_chars
(MemorySegment segment, int value) Setsnum_chars
with the given value.static void
set_num_chars
(MemorySegment segment, long index, int value) Setsnum_chars
with the given value at the given index.static void
set_v_oversample
(MemorySegment segment, byte value) Setsv_oversample
with the given value.static void
set_v_oversample
(MemorySegment segment, long index, byte value) Setsv_oversample
with the given value at the given index.byte
Returnsv_oversample
.v_oversample
(byte value) Setsv_oversample
with the given value.byte
v_oversampleAt
(long index) Returnsv_oversample
at the given index.v_oversampleAt
(long index, byte value) Setsv_oversample
with the given value at the given index.Methods inherited from class overrungl.struct.Struct
estimateCount, estimateCount, layout, segment
-
Field Details
-
LAYOUT
The struct layout ofstbtt_pack_range
. -
VH_font_size
-
VH_first_unicode_codepoint_in_range
-
VH_array_of_unicode_codepoints
-
VH_num_chars
-
VH_chardata_for_range
-
VH_h_oversample
-
VH_v_oversample
-
-
Constructor Details
-
STBTTPackRange
CreatesSTBTTPackRange
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesSTBTTPackRange
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aSTBTTPackRange
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
STBTTPackRange
-
alloc
Allocates aSTBTTPackRange
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
STBTTPackRange
-
get_font_size
Returnsfont_size
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
font_size
at the given index
-
get_font_size
Returnsfont_size
.- Parameters:
segment
- the segment of the struct- Returns:
font_size
-
font_sizeAt
Returnsfont_size
at the given index.- Parameters:
index
- the index- Returns:
font_size
at the given index
-
font_size
-
set_font_size
Setsfont_size
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_font_size
Setsfont_size
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
font_sizeAt
Setsfont_size
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
font_size
Setsfont_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) Returnsfirst_unicode_codepoint_in_range
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
first_unicode_codepoint_in_range
at the given index
-
get_first_unicode_codepoint_in_range
Returnsfirst_unicode_codepoint_in_range
.- Parameters:
segment
- the segment of the struct- Returns:
first_unicode_codepoint_in_range
-
first_unicode_codepoint_in_rangeAt
Returnsfirst_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
Returnsfirst_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) Setsfirst_unicode_codepoint_in_range
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_first_unicode_codepoint_in_range
public static void set_first_unicode_codepoint_in_range(MemorySegment segment, @CType("int") int value) Setsfirst_unicode_codepoint_in_range
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
first_unicode_codepoint_in_rangeAt
Setsfirst_unicode_codepoint_in_range
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
first_unicode_codepoint_in_range
Setsfirst_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) Returnsarray_of_unicode_codepoints
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
array_of_unicode_codepoints
at the given index
-
get_array_of_unicode_codepoints
Returnsarray_of_unicode_codepoints
.- Parameters:
segment
- the segment of the struct- Returns:
array_of_unicode_codepoints
-
array_of_unicode_codepointsAt
Returnsarray_of_unicode_codepoints
at the given index.- Parameters:
index
- the index- Returns:
array_of_unicode_codepoints
at the given index
-
array_of_unicode_codepoints
Returnsarray_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) Setsarray_of_unicode_codepoints
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_array_of_unicode_codepoints
public static void set_array_of_unicode_codepoints(MemorySegment segment, @CType("int*") MemorySegment value) Setsarray_of_unicode_codepoints
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
array_of_unicode_codepointsAt
Setsarray_of_unicode_codepoints
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
array_of_unicode_codepoints
Setsarray_of_unicode_codepoints
with the given value.- Parameters:
value
- the value- Returns:
this
-
get_num_chars
Returnsnum_chars
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
num_chars
at the given index
-
get_num_chars
Returnsnum_chars
.- Parameters:
segment
- the segment of the struct- Returns:
num_chars
-
num_charsAt
Returnsnum_chars
at the given index.- Parameters:
index
- the index- Returns:
num_chars
at the given index
-
num_chars
-
set_num_chars
Setsnum_chars
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_num_chars
Setsnum_chars
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
num_charsAt
Setsnum_chars
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
num_chars
Setsnum_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) Returnschardata_for_range
at the given index.- Parameters:
segment
- the segment of the structindex
- 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) Returnschardata_for_range
.- Parameters:
segment
- the segment of the struct- Returns:
chardata_for_range
-
chardata_for_rangeAt
Returnschardata_for_range
at the given index.- Parameters:
index
- the index- Returns:
chardata_for_range
at the given index
-
chardata_for_range
Returnschardata_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) Setschardata_for_range
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_chardata_for_range
public static void set_chardata_for_range(MemorySegment segment, @CType("stbtt_packedchar *") MemorySegment value) Setschardata_for_range
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
chardata_for_rangeAt
public STBTTPackRange chardata_for_rangeAt(long index, @CType("stbtt_packedchar *") MemorySegment value) Setschardata_for_range
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
chardata_for_range
Setschardata_for_range
with the given value.- Parameters:
value
- the value- Returns:
this
-
get_h_oversample
Returnsh_oversample
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
h_oversample
at the given index
-
get_h_oversample
Returnsh_oversample
.- Parameters:
segment
- the segment of the struct- Returns:
h_oversample
-
h_oversampleAt
Returnsh_oversample
at the given index.- Parameters:
index
- the index- Returns:
h_oversample
at the given index
-
h_oversample
-
set_h_oversample
public static void set_h_oversample(MemorySegment segment, long index, @CType("unsigned char") byte value) Setsh_oversample
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_h_oversample
Setsh_oversample
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
h_oversampleAt
Setsh_oversample
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
h_oversample
Setsh_oversample
with the given value.- Parameters:
value
- the value- Returns:
this
-
get_v_oversample
Returnsv_oversample
at the given index.- Parameters:
segment
- the segment of the structindex
- the index- Returns:
v_oversample
at the given index
-
get_v_oversample
Returnsv_oversample
.- Parameters:
segment
- the segment of the struct- Returns:
v_oversample
-
v_oversampleAt
Returnsv_oversample
at the given index.- Parameters:
index
- the index- Returns:
v_oversample
at the given index
-
v_oversample
-
set_v_oversample
public static void set_v_oversample(MemorySegment segment, long index, @CType("unsigned char") byte value) Setsv_oversample
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the indexvalue
- the value
-
set_v_oversample
Setsv_oversample
with the given value.- Parameters:
segment
- the segment of the structvalue
- the value
-
v_oversampleAt
Setsv_oversample
with the given value at the given index.- Parameters:
index
- the indexvalue
- the value- Returns:
this
-
v_oversample
Setsv_oversample
with the given value.- Parameters:
value
- the value- Returns:
this
-