Class Font
java.lang.Object
com.raylib.jextract.Font
struct Font {
int baseSize;
int glyphCount;
int glyphPadding;
Texture2D texture;
Rectangle *recs;
GlyphInfo *glyphs;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 int
baseSize
(MemorySegment struct) Getter for field:int baseSize
static void
baseSize
(MemorySegment struct, int fieldValue) Setter for field:int baseSize
static final ValueLayout.OfInt
Layout for field:int baseSize
static final long
Offset for field:int baseSize
static int
glyphCount
(MemorySegment struct) Getter for field:int glyphCount
static void
glyphCount
(MemorySegment struct, int fieldValue) Setter for field:int glyphCount
static final ValueLayout.OfInt
Layout for field:int glyphCount
static final long
Offset for field:int glyphCount
static int
glyphPadding
(MemorySegment struct) Getter for field:int glyphPadding
static void
glyphPadding
(MemorySegment struct, int fieldValue) Setter for field:int glyphPadding
static final ValueLayout.OfInt
Layout for field:int glyphPadding
static final long
Offset for field:int glyphPadding
static MemorySegment
glyphs
(MemorySegment struct) Getter for field:GlyphInfo *glyphs
static void
glyphs
(MemorySegment struct, MemorySegment fieldValue) Setter for field:GlyphInfo *glyphs
static final AddressLayout
Layout for field:GlyphInfo *glyphs
static final long
Offset for field:GlyphInfo *glyphs
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
recs
(MemorySegment struct) Getter for field:Rectangle *recs
static void
recs
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Rectangle *recs
static final AddressLayout
Layout for field:Rectangle *recs
static final long
Offset for field:Rectangle *recs
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this structstatic MemorySegment
texture
(MemorySegment struct) Getter for field:Texture2D texture
static void
texture
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture2D texture
static final GroupLayout
Layout for field:Texture2D texture
static final long
Offset for field:Texture2D texture
-
Method Details
-
layout
The layout of this struct -
baseSize$layout
Layout for field:int baseSize
-
baseSize$offset
public static final long baseSize$offset()Offset for field:int baseSize
-
baseSize
Getter for field:int baseSize
-
baseSize
Setter for field:int baseSize
-
glyphCount$layout
Layout for field:int glyphCount
-
glyphCount$offset
public static final long glyphCount$offset()Offset for field:int glyphCount
-
glyphCount
Getter for field:int glyphCount
-
glyphCount
Setter for field:int glyphCount
-
glyphPadding$layout
Layout for field:int glyphPadding
-
glyphPadding$offset
public static final long glyphPadding$offset()Offset for field:int glyphPadding
-
glyphPadding
Getter for field:int glyphPadding
-
glyphPadding
Setter for field:int glyphPadding
-
texture$layout
Layout for field:Texture2D texture
-
texture$offset
public static final long texture$offset()Offset for field:Texture2D texture
-
texture
Getter for field:Texture2D texture
-
texture
Setter for field:Texture2D texture
-
recs$layout
Layout for field:Rectangle *recs
-
recs$offset
public static final long recs$offset()Offset for field:Rectangle *recs
-
recs
Getter for field:Rectangle *recs
-
recs
Setter for field:Rectangle *recs
-
glyphs$layout
Layout for field:GlyphInfo *glyphs
-
glyphs$offset
public static final long glyphs$offset()Offset for field:GlyphInfo *glyphs
-
glyphs
Getter for field:GlyphInfo *glyphs
-
glyphs
Setter for field:GlyphInfo *glyphs
-
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
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-