Record Class GuiScrollInsets
java.lang.Object
java.lang.Record
com.render.api.gui.GuiScrollInsets
- Record Components:
top- top insetright- right insetbottom- bottom insetleft- left inset
Insets applied to the effective scroll-snap viewport.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiScrollInsets(float top, float right, float bottom, float left) Creates an instance of aGuiScrollInsetsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatleft()Returns the value of theleftrecord component.floatright()Returns the value of therightrecord component.static GuiScrollInsetssymmetric(float vertical, float horizontal) Creates symmetric vertical and horizontal insets.floattop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.static GuiScrollInsetsuniform(float value) Creates equal insets on all sides.
-
Field Details
-
ZERO
-
-
Constructor Details
-
GuiScrollInsets
public GuiScrollInsets(float top, float right, float bottom, float left) Creates an instance of aGuiScrollInsetsrecord class.
-
-
Method Details
-
uniform
Creates equal insets on all sides.- Parameters:
value- inset in design-space pixels- Returns:
- uniform insets
-
symmetric
Creates symmetric vertical and horizontal insets.- Parameters:
vertical- top and bottom insethorizontal- left and right inset- Returns:
- symmetric insets
-
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. -
top
-
right
-
bottom
-
left
-