Record Class Button.Look
java.lang.Object
java.lang.Record
com.trevlar.menukit.api.element.Button.Look
- Enclosing class:
Button
The look this frame, handed to the render hooks.
-
Constructor Summary
ConstructorsConstructorDescriptionLook(boolean hovered, boolean pressed, boolean disabled) Creates an instance of aLookrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandisabled()Returns the value of thedisabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhovered()Returns the value of thehoveredrecord component.booleanpressed()Returns the value of thepressedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Look
public Look(boolean hovered, boolean pressed, boolean disabled) Creates an instance of aLookrecord class.- Parameters:
hovered- the value for thehoveredrecord componentpressed- the value for thepressedrecord componentdisabled- the value for thedisabledrecord 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. -
hovered
public boolean hovered()Returns the value of thehoveredrecord component.- Returns:
- the value of the
hoveredrecord component
-
pressed
public boolean pressed()Returns the value of thepressedrecord component.- Returns:
- the value of the
pressedrecord component
-
disabled
public boolean disabled()Returns the value of thedisabledrecord component.- Returns:
- the value of the
disabledrecord component
-