Record Class MouseClickEvent
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.api.gui.MouseClickEvent
public record MouseClickEvent(double mouseX, double mouseY, int button, int modifiers, boolean doubleClick)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMouseClickEvent(double mouseX, double mouseY, int button, int modifiers, boolean doubleClick) Creates an instance of aMouseClickEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbutton()Returns the value of thebuttonrecord component.booleanReturns the value of thedoubleClickrecord 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
-
MouseClickEvent
public MouseClickEvent(double mouseX, double mouseY, int button, int modifiers, boolean doubleClick) Creates an instance of aMouseClickEventrecord class.- Parameters:
mouseX- the value for themouseXrecord componentmouseY- the value for themouseYrecord componentbutton- the value for thebuttonrecord componentmodifiers- the value for themodifiersrecord componentdoubleClick- the value for thedoubleClickrecord 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
-
doubleClick
public boolean doubleClick()Returns the value of thedoubleClickrecord component.- Returns:
- the value of the
doubleClickrecord component
-