java.lang.Object
java.lang.Record
technology.sola.engine.input.MouseWheelEvent
- Record Components:
isUp- true if the mouse wheel was moved upisDown- true if the mouse wheel was moved downisLeft- true if the mouse wheel was moved leftisRight- true if the mouse wheel was moved right
@NullMarked
public record MouseWheelEvent(boolean isUp, boolean isDown, boolean isLeft, boolean isRight)
extends Record
MouseWheelEvent is an event object containing information about an interaction with the mouse wheel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MouseWheelEventMouseWheelEvent to represent when no interaction with the mouse wheel has taken place. -
Constructor Summary
ConstructorsConstructorDescriptionMouseWheelEvent(boolean isUp, boolean isDown, boolean isLeft, boolean isRight) Creates an instance of aMouseWheelEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisDown()Returns the value of theisDownrecord component.booleanisLeft()Returns the value of theisLeftrecord component.booleanisRight()Returns the value of theisRightrecord component.booleanisUp()Returns the value of theisUprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
MouseWheelEvent to represent when no interaction with the mouse wheel has taken place.
-
-
Constructor Details
-
MouseWheelEvent
public MouseWheelEvent(boolean isUp, boolean isDown, boolean isLeft, boolean isRight) Creates an instance of aMouseWheelEventrecord class.
-
-
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 with '=='. -
isUp
public boolean isUp()Returns the value of theisUprecord component.- Returns:
- the value of the
isUprecord component
-
isDown
public boolean isDown()Returns the value of theisDownrecord component.- Returns:
- the value of the
isDownrecord component
-
isLeft
public boolean isLeft()Returns the value of theisLeftrecord component.- Returns:
- the value of the
isLeftrecord component
-
isRight
public boolean isRight()Returns the value of theisRightrecord component.- Returns:
- the value of the
isRightrecord component
-