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 MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intbaseSize(MemorySegment struct) Getter for field:int baseSizestatic voidbaseSize(MemorySegment struct, int fieldValue) Setter for field:int baseSizestatic final ValueLayout.OfIntLayout for field:int baseSizestatic final longOffset for field:int baseSizestatic intglyphCount(MemorySegment struct) Getter for field:int glyphCountstatic voidglyphCount(MemorySegment struct, int fieldValue) Setter for field:int glyphCountstatic final ValueLayout.OfIntLayout for field:int glyphCountstatic final longOffset for field:int glyphCountstatic intglyphPadding(MemorySegment struct) Getter for field:int glyphPaddingstatic voidglyphPadding(MemorySegment struct, int fieldValue) Setter for field:int glyphPaddingstatic final ValueLayout.OfIntLayout for field:int glyphPaddingstatic final longOffset for field:int glyphPaddingstatic MemorySegmentglyphs(MemorySegment struct) Getter for field:GlyphInfo *glyphsstatic voidglyphs(MemorySegment struct, MemorySegment fieldValue) Setter for field:GlyphInfo *glyphsstatic final AddressLayoutLayout for field:GlyphInfo *glyphsstatic final longOffset for field:GlyphInfo *glyphsstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentrecs(MemorySegment struct) Getter for field:Rectangle *recsstatic voidrecs(MemorySegment struct, MemorySegment fieldValue) Setter for field:Rectangle *recsstatic final AddressLayoutLayout for field:Rectangle *recsstatic final longOffset for field:Rectangle *recsstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic MemorySegmenttexture(MemorySegment struct) Getter for field:Texture2D texturestatic voidtexture(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture2D texturestatic final GroupLayoutLayout for field:Texture2D texturestatic final longOffset 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 ofarrayParamwhich 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 sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-