Record Class FKFontRef
java.lang.Object
java.lang.Record
dev.pfaff.altargui.pathfinder.fontkit.FKFontRef
-
Constructor Summary
ConstructorsConstructorDescriptionFKFontRef
(MemorySegment ptr) Creates an instance of aFKFontRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@Nullable Integer
glyphForCodepoint
(int codepoint) final int
hashCode()
Returns a hash code value for this object.ptr()
Returns the value of theptr
record component.void
rasterizeCodepoint
(MemorySegment canvasPixelBuffer, int canvasWidth, int canvasHeight, FKCanvasFormat canvasFormat, int glyphId, float pointSize, FKCanvasRasterizationOptions rasterizationOptions) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FKFontRef
Creates an instance of aFKFontRef
record class.- Parameters:
ptr
- the value for theptr
record component
-
-
Method Details
-
glyphForCodepoint
-
rasterizeCodepoint
public void rasterizeCodepoint(MemorySegment canvasPixelBuffer, int canvasWidth, int canvasHeight, FKCanvasFormat canvasFormat, int glyphId, float pointSize, FKCanvasRasterizationOptions rasterizationOptions) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
ptr
Returns the value of theptr
record component.- Returns:
- the value of the
ptr
record component
-