Record Class GuiIntrinsicSize
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiIntrinsicSize
- Record Components:
minWidth- minimum-content widthmaxWidth- maximum-content widthminHeight- minimum-content heightmaxHeight- maximum-content heightbaseline- first baseline from the top border edgelastBaseline- last baseline from the top border edge
public record GuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline, float lastBaseline)
extends Record
Cached intrinsic contributions from the latest modern measure pass.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline) Creates a single-baseline intrinsic contribution for compatibility callers and replaced elements.GuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline, float lastBaseline) Creates an instance of aGuiIntrinsicSizerecord 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.floatReturns the value of thelastBaselinerecord component.floatReturns the value of themaxHeightrecord component.floatmaxWidth()Returns the value of themaxWidthrecord component.floatReturns the value of theminHeightrecord component.floatminWidth()Returns the value of theminWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiIntrinsicSize
public GuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline) Creates a single-baseline intrinsic contribution for compatibility callers and replaced elements. -
GuiIntrinsicSize
public GuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline, float lastBaseline) Creates an instance of aGuiIntrinsicSizerecord class.- Parameters:
minWidth- the value for theminWidthrecord componentmaxWidth- the value for themaxWidthrecord componentminHeight- the value for theminHeightrecord componentmaxHeight- the value for themaxHeightrecord componentbaseline- the value for thebaselinerecord componentlastBaseline- the value for thelastBaselinerecord 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. -
minWidth
-
maxWidth
-
minHeight
-
maxHeight
-
baseline
-
lastBaseline
public float lastBaseline()Returns the value of thelastBaselinerecord component.- Returns:
- the value of the
lastBaselinerecord component
-