Record Class GlyphRef
java.lang.Object
java.lang.Record
dev.pfaff.altargui.text.GlyphRef
- Record Components:
texture
- the texture page the glyph is contained inindex
- the index of the glyph in the texture page
-
Constructor Summary
ConstructorsConstructorDescriptionGlyphRef
(LoadableTexture texture, byte index, float minX, float maxX) Creates an instance of aGlyphRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.byte
index()
Returns the value of theindex
record component.float
maxX()
Returns the value of themaxX
record component.float
minX()
Returns the value of theminX
record component.texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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 thecompare
method from their corresponding wrapper classes. -
texture
-
index
-
minX
public float minX()Returns the value of theminX
record component.- Returns:
- the value of the
minX
record component
-
maxX
public float maxX()Returns the value of themaxX
record component.- Returns:
- the value of the
maxX
record component
-