Record Class GuiScrolling.ScrollWindow
java.lang.Object
java.lang.Record
codechicken.lib.gui.modular.elements.GuiScrolling.ScrollWindow
- Enclosing class:
- GuiScrolling
public static record GuiScrolling.ScrollWindow(GuiElement<?> container, GuiScrolling scrolling, GuiSlider.ScrollBar verticalBar, GuiSlider.ScrollBar horizontalBar)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScrollWindow(GuiElement<?> container, GuiScrolling scrolling, GuiSlider.ScrollBar verticalBar, GuiSlider.ScrollBar horizontalBar) Creates an instance of aScrollWindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionGuiElement<?>Returns the value of thecontainerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalBarrecord component.Returns the value of thescrollingrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalBarrecord component.
-
Constructor Details
-
ScrollWindow
public ScrollWindow(GuiElement<?> container, GuiScrolling scrolling, @Nullable GuiSlider.ScrollBar verticalBar, @Nullable GuiSlider.ScrollBar horizontalBar) Creates an instance of aScrollWindowrecord class.- Parameters:
container- the value for thecontainerrecord componentscrolling- the value for thescrollingrecord componentverticalBar- the value for theverticalBarrecord componenthorizontalBar- the value for thehorizontalBarrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
scrolling
Returns the value of thescrollingrecord component.- Returns:
- the value of the
scrollingrecord component
-
verticalBar
Returns the value of theverticalBarrecord component.- Returns:
- the value of the
verticalBarrecord component
-
horizontalBar
Returns the value of thehorizontalBarrecord component.- Returns:
- the value of the
horizontalBarrecord component
-