Record Class WindowEvent.Moved
java.lang.Object
java.lang.Record
dev.engine.core.input.WindowEvent.Moved
- All Implemented Interfaces:
WindowEvent
- Enclosing interface:
WindowEvent
public static record WindowEvent.Moved(Time time, int x, int y)
extends Record
implements WindowEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface WindowEvent
WindowEvent.Closed, WindowEvent.FocusGained, WindowEvent.FocusLost, WindowEvent.Moved, WindowEvent.Resized -
Constructor Summary
Constructors -
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.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
Moved
Creates an instance of aMovedrecord class.- Parameters:
time- the value for thetimerecord componentx- the value for thexrecord componenty- the value for theyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
Returns the value of thetimerecord component.- Specified by:
timein interfaceWindowEvent- Returns:
- the value of the
timerecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-