Record Class GuiTextMetrics.Line
java.lang.Object
java.lang.Record
com.render.api.gui.GuiTextMetrics.Line
- Record Components:
sourceStart- inclusive UTF-16 source offsetsourceEnd- exclusive UTF-16 source offsetx- logical inline originy- logical block originwidth- logical line widthbaseline- logical baselineheight- logical line-box height
- Enclosing class:
GuiTextMetrics
public static record GuiTextMetrics.Line(int sourceStart, int sourceEnd, float x, float y, float width, float baseline, float height)
extends Record
One laid-out line.
-
Constructor Summary
ConstructorsConstructorDescriptionLine(int sourceStart, int sourceEnd, float x, float y, float width, float baseline, float height) Creates an instance of aLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbaseline()Returns the value of thebaselinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.intReturns the value of thesourceEndrecord component.intReturns the value of thesourceStartrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
Line
public Line(int sourceStart, int sourceEnd, float x, float y, float width, float baseline, float height) Creates an instance of aLinerecord class.- Parameters:
sourceStart- the value for thesourceStartrecord componentsourceEnd- the value for thesourceEndrecord componentx- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentbaseline- the value for thebaselinerecord componentheight- the value for theheightrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
sourceStart
public int sourceStart()Returns the value of thesourceStartrecord component.- Returns:
- the value of the
sourceStartrecord component
-
sourceEnd
-
x
-
y
-
width
-
baseline
-
height
-