Class GlyphInfo
java.lang.Object
com.raylib.GlyphInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.Construct with auto memory allocator and fields initialized as specifiedGlyphInfo(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectGlyphInfo(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedGlyphInfo(SegmentAllocator arena, int value, int offsetX, int offsetY, int advanceX, Image image) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionintadvanceX()Character advance position XadvanceX(int value) Character advance position Xstatic GlyphInfoallocateArray(long elementCount) Allocate an array of GlyphInfostatic GlyphInfoallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of GlyphInfobooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalintCharacter advance position XgetArrayElement(int index) getImage()Character image dataintCharacter offset X when drawingintCharacter offset Y when drawingintgetValue()Character value (Unicode)inthashCode()image()Character image dataCharacter image dataintoffsetX()Character offset X when drawingoffsetX(int value) Character offset X when drawingintoffsetY()Character offset Y when drawingoffsetY(int value) Character offset Y when drawingvoidsetAdvanceX(int value) Character advance position XvoidCharacter image datavoidsetOffsetX(int value) Character offset X when drawingvoidsetOffsetY(int value) Character offset Y when drawingvoidsetValue(int value) Character value (Unicode)intvalue()Character value (Unicode)value(int value) Character value (Unicode)
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
GlyphInfo
public GlyphInfo()Construct with auto memory allocator and fields initialized to zero. -
GlyphInfo
Construct with your owm memory allocator and fields not initialized -
GlyphInfo
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
GlyphInfo
Construct with auto memory allocator and fields initialized as specified- Parameters:
value- Character value (Unicode)offsetX- Character offset X when drawingoffsetY- Character offset Y when drawingadvanceX- Character advance position Ximage- Character image data
-
GlyphInfo
public GlyphInfo(SegmentAllocator arena, int value, int offsetX, int offsetY, int advanceX, Image image) Construct with your own memory allocator and fields initialized as specified- Parameters:
value- Character value (Unicode)offsetX- Character offset X when drawingoffsetY- Character offset Y when drawingadvanceX- Character advance position Ximage- Character image data
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of GlyphInfo -
allocateArray
Allocate an array of GlyphInfo -
getValue
public int getValue()Character value (Unicode) -
setValue
public void setValue(int value) Character value (Unicode) -
value
public int value()Character value (Unicode) -
value
Character value (Unicode) -
getOffsetX
public int getOffsetX()Character offset X when drawing -
setOffsetX
public void setOffsetX(int value) Character offset X when drawing -
offsetX
public int offsetX()Character offset X when drawing -
offsetX
Character offset X when drawing -
getOffsetY
public int getOffsetY()Character offset Y when drawing -
setOffsetY
public void setOffsetY(int value) Character offset Y when drawing -
offsetY
public int offsetY()Character offset Y when drawing -
offsetY
Character offset Y when drawing -
getAdvanceX
public int getAdvanceX()Character advance position X -
setAdvanceX
public void setAdvanceX(int value) Character advance position X -
advanceX
public int advanceX()Character advance position X -
advanceX
Character advance position X -
getImage
Character image data -
setImage
Character image data -
image
Character image data -
image
-