Class STBTTPackRange
java.lang.Object
overrungl.struct.GroupType
overrungl.stb.STBTTPackRange
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
STBTTPackRange.Buffer
Layout
struct STBTTPackRange {
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;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofSTBTTPackRange
.static final MemoryLayout
The memory layout ofarray_of_unicode_codepoints
.static final MemoryLayout
The memory layout ofchardata_for_range
.static final MemoryLayout
The memory layout offirst_unicode_codepoint_in_range
.static final MemoryLayout
The memory layout offont_size
.static final MemoryLayout
The memory layout ofh_oversample
.static final MemoryLayout
The memory layout ofnum_chars
.static final MemoryLayout
The memory layout ofv_oversample
.static final long
The byte offset ofarray_of_unicode_codepoints
.static final long
The byte offset ofchardata_for_range
.static final long
The byte offset offirst_unicode_codepoint_in_range
.static final long
The byte offset offont_size
.static final long
The byte offset ofh_oversample
.static final long
The byte offset ofnum_chars
.static final long
The byte offset ofv_oversample
.static final VarHandle
TheVarHandle
ofarray_of_unicode_codepoints
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofchardata_for_range
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
offirst_unicode_codepoint_in_range
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofh_oversample
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofv_oversample
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionSTBTTPackRange
(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.Buffer
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.static MemorySegment
array_of_unicode_codepoints
(MemorySegment segment, long index) Returnsarray_of_unicode_codepoints
at the given index.static void
array_of_unicode_codepoints
(MemorySegment segment, long index, MemorySegment value) Setsarray_of_unicode_codepoints
with the given value at the given index.asBuffer()
Converts this instance to a buffer.Returnschardata_for_range
.chardata_for_range
(MemorySegment value) Setschardata_for_range
with the given value.static MemorySegment
chardata_for_range
(MemorySegment segment, long index) Returnschardata_for_range
at the given index.static void
chardata_for_range
(MemorySegment segment, long index, MemorySegment value) Setschardata_for_range
with the given value at the given index.copyFrom
(STBTTPackRange src) Copies from the given source.int
Returnsfirst_unicode_codepoint_in_range
.first_unicode_codepoint_in_range
(int value) Setsfirst_unicode_codepoint_in_range
with the given value.static int
first_unicode_codepoint_in_range
(MemorySegment segment, long index) Returnsfirst_unicode_codepoint_in_range
at the given index.static void
first_unicode_codepoint_in_range
(MemorySegment segment, 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.static float
font_size
(MemorySegment segment, long index) Returnsfont_size
at the given index.static void
font_size
(MemorySegment segment, long index, float value) Setsfont_size
with the given value at the given index.byte
Returnsh_oversample
.h_oversample
(byte value) Setsh_oversample
with the given value.static byte
h_oversample
(MemorySegment segment, long index) Returnsh_oversample
at the given index.static void
h_oversample
(MemorySegment segment, 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.static int
num_chars
(MemorySegment segment, long index) Returnsnum_chars
at the given index.static void
num_chars
(MemorySegment segment, long index, int value) Setsnum_chars
with the given value at the given index.static STBTTPackRange.Buffer
of
(MemorySegment segment) CreatesSTBTTPackRange
with the given segment.static STBTTPackRange
ofNative
(MemorySegment segment) CreatesSTBTTPackRange
with the given segment.static STBTTPackRange.Buffer
ofNative
(MemorySegment segment, long count) CreatesSTBTTPackRange
with the given segment.byte
Returnsv_oversample
.v_oversample
(byte value) Setsv_oversample
with the given value.static byte
v_oversample
(MemorySegment segment, long index) Returnsv_oversample
at the given index.static void
v_oversample
(MemorySegment segment, long index, byte value) Setsv_oversample
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofSTBTTPackRange
. -
OFFSET_font_size
public static final long OFFSET_font_sizeThe byte offset offont_size
. -
LAYOUT_font_size
The memory layout offont_size
. -
VH_font_size
-
OFFSET_first_unicode_codepoint_in_range
public static final long OFFSET_first_unicode_codepoint_in_rangeThe byte offset offirst_unicode_codepoint_in_range
. -
LAYOUT_first_unicode_codepoint_in_range
The memory layout offirst_unicode_codepoint_in_range
. -
VH_first_unicode_codepoint_in_range
-
OFFSET_array_of_unicode_codepoints
public static final long OFFSET_array_of_unicode_codepointsThe byte offset ofarray_of_unicode_codepoints
. -
LAYOUT_array_of_unicode_codepoints
The memory layout ofarray_of_unicode_codepoints
. -
VH_array_of_unicode_codepoints
-
OFFSET_num_chars
public static final long OFFSET_num_charsThe byte offset ofnum_chars
. -
LAYOUT_num_chars
The memory layout ofnum_chars
. -
VH_num_chars
-
OFFSET_chardata_for_range
public static final long OFFSET_chardata_for_rangeThe byte offset ofchardata_for_range
. -
LAYOUT_chardata_for_range
The memory layout ofchardata_for_range
. -
VH_chardata_for_range
-
OFFSET_h_oversample
public static final long OFFSET_h_oversampleThe byte offset ofh_oversample
. -
LAYOUT_h_oversample
The memory layout ofh_oversample
. -
VH_h_oversample
-
OFFSET_v_oversample
public static final long OFFSET_v_oversampleThe byte offset ofv_oversample
. -
LAYOUT_v_oversample
The memory layout ofv_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
-
ofNative
Creates
STBTTPackRange
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
STBTTPackRange
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- 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
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
-
font_size
Returnsfont_size
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
font_size
at the given index
-
font_size
public float font_size()Returnsfont_size
.- Returns:
font_size
-
font_size
Setsfont_size
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
font_size
Setsfont_size
with the given value.- Parameters:
value
- the value- Returns:
this
-
first_unicode_codepoint_in_range
Returnsfirst_unicode_codepoint_in_range
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
first_unicode_codepoint_in_range
at the given index
-
first_unicode_codepoint_in_range
public int first_unicode_codepoint_in_range()Returnsfirst_unicode_codepoint_in_range
.- Returns:
first_unicode_codepoint_in_range
-
first_unicode_codepoint_in_range
Setsfirst_unicode_codepoint_in_range
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
first_unicode_codepoint_in_range
Setsfirst_unicode_codepoint_in_range
with the given value.- Parameters:
value
- the value- Returns:
this
-
array_of_unicode_codepoints
Returnsarray_of_unicode_codepoints
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
array_of_unicode_codepoints
at the given index
-
array_of_unicode_codepoints
Returnsarray_of_unicode_codepoints
.- Returns:
array_of_unicode_codepoints
-
array_of_unicode_codepoints
public static void array_of_unicode_codepoints(MemorySegment segment, long index, MemorySegment value) Setsarray_of_unicode_codepoints
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
array_of_unicode_codepoints
Setsarray_of_unicode_codepoints
with the given value.- Parameters:
value
- the value- Returns:
this
-
num_chars
Returnsnum_chars
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
num_chars
at the given index
-
num_chars
public int num_chars()Returnsnum_chars
.- Returns:
num_chars
-
num_chars
Setsnum_chars
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
num_chars
Setsnum_chars
with the given value.- Parameters:
value
- the value- Returns:
this
-
chardata_for_range
Returnschardata_for_range
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
chardata_for_range
at the given index
-
chardata_for_range
-
chardata_for_range
Setschardata_for_range
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
chardata_for_range
Setschardata_for_range
with the given value.- Parameters:
value
- the value- Returns:
this
-
h_oversample
Returnsh_oversample
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
h_oversample
at the given index
-
h_oversample
public byte h_oversample()Returnsh_oversample
.- Returns:
h_oversample
-
h_oversample
Setsh_oversample
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
h_oversample
Setsh_oversample
with the given value.- Parameters:
value
- the value- Returns:
this
-
v_oversample
Returnsv_oversample
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
v_oversample
at the given index
-
v_oversample
public byte v_oversample()Returnsv_oversample
.- Returns:
v_oversample
-
v_oversample
Setsv_oversample
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
v_oversample
Setsv_oversample
with the given value.- Parameters:
value
- the value- Returns:
this
-