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 intadvanceX(MemorySegment struct) Getter for field:int advanceXstatic voidadvanceX(MemorySegment struct, int fieldValue) Setter for field:int advanceXstatic final ValueLayout.OfIntLayout for field:int advanceXstatic final longOffset for field:int advanceXstatic 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 MemorySegmentimage(MemorySegment struct) Getter for field:Image imagestatic voidimage(MemorySegment struct, MemorySegment fieldValue) Setter for field:Image imagestatic final GroupLayoutLayout for field:Image imagestatic final longOffset for field:Image imagestatic final GroupLayoutlayout()The layout of this structstatic intoffsetX(MemorySegment struct) Getter for field:int offsetXstatic voidoffsetX(MemorySegment struct, int fieldValue) Setter for field:int offsetXstatic final ValueLayout.OfIntLayout for field:int offsetXstatic final longOffset for field:int offsetXstatic intoffsetY(MemorySegment struct) Getter for field:int offsetYstatic voidoffsetY(MemorySegment struct, int fieldValue) Setter for field:int offsetYstatic final ValueLayout.OfIntLayout for field:int offsetYstatic final longOffset for field:int offsetYstatic 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 intvalue(MemorySegment struct) Getter for field:int valuestatic voidvalue(MemorySegment struct, int fieldValue) Setter for field:int valuestatic final ValueLayout.OfIntLayout for field:int valuestatic final longOffset 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 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()
-