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 TypeMethodDescriptionint
advanceX()
Character advance position XadvanceX
(int value) Character advance position Xstatic 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()
image()
Character image dataCharacter image dataint
offsetX()
Character offset X when drawingoffsetX
(int value) Character offset X when drawingint
offsetY()
Character offset Y when drawingoffsetY
(int value) Character offset Y when drawingvoid
setAdvanceX
(int value) Character advance position Xvoid
Character image datavoid
setOffsetX
(int value) Character offset X when drawingvoid
setOffsetY
(int value) Character offset Y when drawingvoid
setValue
(int value) Character value (Unicode)int
value()
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
-