Record Class FKGlyphLoadableTexture
java.lang.Object
java.lang.Record
dev.pfaff.altargui.pathfinder.fontkit.FKGlyphLoadableTexture
- All Implemented Interfaces:
LoadableTexture
public record FKGlyphLoadableTexture(FKFontRef font, int codepoint)
extends Record
implements LoadableTexture
-
Constructor Summary
ConstructorsConstructorDescriptionFKGlyphLoadableTexture
(FKFontRef font, int codepoint) Creates an instance of aFKGlyphLoadableTexture
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecodepoint
record component.final boolean
Indicates whether some other object is "equal to" this one.font()
Returns the value of thefont
record component.final int
hashCode()
Returns a hash code value for this object.load()
Loads the texture synchronously.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FKGlyphLoadableTexture
Creates an instance of aFKGlyphLoadableTexture
record class.- Parameters:
font
- the value for thefont
record componentcodepoint
- the value for thecodepoint
record component
-
-
Method Details
-
load
Description copied from interface:LoadableTexture
Loads the texture synchronously. This is meant to be called from a worker thread, not the main thread.- Specified by:
load
in interfaceLoadableTexture
- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
font
Returns the value of thefont
record component.- Returns:
- the value of the
font
record component
-
codepoint
public int codepoint()Returns the value of thecodepoint
record component.- Returns:
- the value of the
codepoint
record component
-