Record Class GuiGridArea
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiGridArea
- Record Components:
rowStart- first rowcolumnStart- first columnrowSpan- positive row spancolumnSpan- positive column span
public record GuiGridArea(int rowStart, int columnStart, int rowSpan, int columnSpan)
extends Record
One-based named grid area.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiGridArea(int rowStart, int columnStart, int rowSpan, int columnSpan) Creates an instance of aGuiGridArearecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnSpanrecord component.intReturns the value of thecolumnStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introwSpan()Returns the value of therowSpanrecord component.introwStart()Returns the value of therowStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiGridArea
public GuiGridArea(int rowStart, int columnStart, int rowSpan, int columnSpan) Creates an instance of aGuiGridArearecord class.- Parameters:
rowStart- the value for therowStartrecord componentcolumnStart- the value for thecolumnStartrecord componentrowSpan- the value for therowSpanrecord componentcolumnSpan- the value for thecolumnSpanrecord 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. -
rowStart
-
columnStart
public int columnStart()Returns the value of thecolumnStartrecord component.- Returns:
- the value of the
columnStartrecord component
-
rowSpan
-
columnSpan
public int columnSpan()Returns the value of thecolumnSpanrecord component.- Returns:
- the value of the
columnSpanrecord component
-