Package com.raylib
Class GlyphInfo
java.lang.Object
com.raylib.GlyphInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The 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 TypeMethodDescriptionstatic GlyphInfo
allocateArray
(long elementCount) Allocate an array of GlyphInfostatic GlyphInfo
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of GlyphInfoboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalint
Character advance position XgetArrayElement
(int index) getImage()
Character image dataint
Character offset X when drawingint
Character offset Y when drawingint
getValue()
Character value (Unicode)int
hashCode()
setAdvanceX
(int value) Character advance position XCharacter image datasetOffsetX
(int value) Character offset X when drawingsetOffsetY
(int value) Character offset Y when drawingsetValue
(int value) Character value (Unicode)
-
Field Details
-
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
Character value (Unicode) -
getOffsetX
public int getOffsetX()Character offset X when drawing -
setOffsetX
Character offset X when drawing -
getOffsetY
public int getOffsetY()Character offset Y when drawing -
setOffsetY
Character offset Y when drawing -
getAdvanceX
public int getAdvanceX()Character advance position X -
setAdvanceX
Character advance position X -
getImage
Character image data -
setImage
-