Package com.raylib.jextract
Class GlyphInfo
java.lang.Object
com.raylib.jextract.GlyphInfo
struct GlyphInfo {
int value;
int offsetX;
int offsetY;
int advanceX;
Image image;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
advanceX
(MemorySegment struct) Getter for field:int advanceX
static void
advanceX
(MemorySegment struct, int fieldValue) Setter for field:int advanceX
static final ValueLayout.OfInt
Layout for field:int advanceX
static final long
Offset for field:int advanceX
static MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
image
(MemorySegment struct) Getter for field:Image image
static void
image
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Image image
static final GroupLayout
Layout for field:Image image
static final long
Offset for field:Image image
static final GroupLayout
layout()
The layout of this structstatic int
offsetX
(MemorySegment struct) Getter for field:int offsetX
static void
offsetX
(MemorySegment struct, int fieldValue) Setter for field:int offsetX
static final ValueLayout.OfInt
Layout for field:int offsetX
static final long
Offset for field:int offsetX
static int
offsetY
(MemorySegment struct) Getter for field:int offsetY
static void
offsetY
(MemorySegment struct, int fieldValue) Setter for field:int offsetY
static final ValueLayout.OfInt
Layout for field:int offsetY
static final long
Offset for field:int offsetY
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static long
sizeof()
The size (in bytes) of this structstatic int
value
(MemorySegment struct) Getter for field:int value
static void
value
(MemorySegment struct, int fieldValue) Setter for field:int value
static final ValueLayout.OfInt
Layout for field:int value
static final long
Offset for field:int value
-
Method Details
-
layout
The layout of this struct -
value$layout
Layout for field:int value
-
value$offset
public static final long value$offset()Offset for field:int value
-
value
Getter for field:int value
-
value
Setter for field:int value
-
offsetX$layout
Layout for field:int offsetX
-
offsetX$offset
public static final long offsetX$offset()Offset for field:int offsetX
-
offsetX
Getter for field:int offsetX
-
offsetX
Setter for field:int offsetX
-
offsetY$layout
Layout for field:int offsetY
-
offsetY$offset
public static final long offsetY$offset()Offset for field:int offsetY
-
offsetY
Getter for field:int offsetY
-
offsetY
Setter for field:int offsetY
-
advanceX$layout
Layout for field:int advanceX
-
advanceX$offset
public static final long advanceX$offset()Offset for field:int advanceX
-
advanceX
Getter for field:int advanceX
-
advanceX
Setter for field:int advanceX
-
image$layout
Layout for field:Image image
-
image$offset
public static final long image$offset()Offset for field:Image image
-
image
Getter for field:Image image
-
image
Setter for field:Image image
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-