Record Class GuiLayoutFragment
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiLayoutFragment
- Record Components:
source- retained source componentborderBox- final border boxcontentBox- final content boxbaseline- baseline in design-space coordinateslineIndex- inline/flex line index, or-1rowIndex- grid row index, or-1columnIndex- grid column index, or-1
public record GuiLayoutFragment(GuiComponent<?> source, GuiRect borderBox, GuiRect contentBox, float baseline, int lineIndex, int rowIndex, int columnIndex)
extends Record
Immutable final geometry produced by the modern arrange pass.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiLayoutFragment(GuiComponent<?> source, GuiRect borderBox, GuiRect contentBox, float baseline, int lineIndex, int rowIndex, int columnIndex) Creates an instance of aGuiLayoutFragmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbaseline()Returns the value of thebaselinerecord component.Returns the value of theborderBoxrecord component.intReturns the value of thecolumnIndexrecord component.Returns the value of thecontentBoxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineIndexrecord component.introwIndex()Returns the value of therowIndexrecord component.GuiComponent<?> source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiLayoutFragment
public GuiLayoutFragment(GuiComponent<?> source, GuiRect borderBox, GuiRect contentBox, float baseline, int lineIndex, int rowIndex, int columnIndex) Creates an instance of aGuiLayoutFragmentrecord class.- Parameters:
source- the value for thesourcerecord componentborderBox- the value for theborderBoxrecord componentcontentBox- the value for thecontentBoxrecord componentbaseline- the value for thebaselinerecord componentlineIndex- the value for thelineIndexrecord componentrowIndex- the value for therowIndexrecord componentcolumnIndex- the value for thecolumnIndexrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
source
-
borderBox
-
contentBox
Returns the value of thecontentBoxrecord component.- Returns:
- the value of the
contentBoxrecord component
-
baseline
-
lineIndex
-
rowIndex
-
columnIndex
public int columnIndex()Returns the value of thecolumnIndexrecord component.- Returns:
- the value of the
columnIndexrecord component
-