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- baseline from the top border edge
public record GuiIntrinsicSize(float minWidth, float maxWidth, float minHeight, float maxHeight, float baseline)
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 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 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 an instance of aGuiIntrinsicSizerecord class.
-
-
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
-