Record Class MouseDragEvent
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.api.gui.MouseDragEvent
public record MouseDragEvent(double mouseX, double mouseY, int button, int modifiers, double deltaX, double deltaY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMouseDragEvent(double mouseX, double mouseY, int button, int modifiers, double deltaX, double deltaY) Creates an instance of aMouseDragEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbutton()Returns the value of thebuttonrecord component.doubledeltaX()Returns the value of thedeltaXrecord component.doubledeltaY()Returns the value of thedeltaYrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themodifiersrecord component.doublemouseX()Returns the value of themouseXrecord component.doublemouseY()Returns the value of themouseYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MouseDragEvent
public MouseDragEvent(double mouseX, double mouseY, int button, int modifiers, double deltaX, double deltaY) Creates an instance of aMouseDragEventrecord class.- Parameters:
mouseX- the value for themouseXrecord componentmouseY- the value for themouseYrecord componentbutton- the value for thebuttonrecord componentmodifiers- the value for themodifiersrecord componentdeltaX- the value for thedeltaXrecord componentdeltaY- the value for thedeltaYrecord 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 with '=='. -
mouseX
public double mouseX()Returns the value of themouseXrecord component.- Returns:
- the value of the
mouseXrecord component
-
mouseY
public double mouseY()Returns the value of themouseYrecord component.- Returns:
- the value of the
mouseYrecord component
-
button
public int button()Returns the value of thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-
modifiers
public int modifiers()Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-
deltaX
public double deltaX()Returns the value of thedeltaXrecord component.- Returns:
- the value of the
deltaXrecord component
-
deltaY
public double deltaY()Returns the value of thedeltaYrecord component.- Returns:
- the value of the
deltaYrecord component
-