Record Class SyMouseEventOnHeld
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.mouse.SyMouseEventOnHeld
- Record Components:
mousePositionFirst- The position of the mouse cursor when the button was first pressedmousePositionNow- The position of the mouse cursor now- The mouse buttonactual- The component that was initially under the mouse
- All Implemented Interfaces:
SyEventInputType, SyEventType, SyMouseEventType
public record SyMouseEventOnHeld(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionFirst, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionNow, SyMouseButton button, SyComponentType actual)
extends Record
implements SyMouseEventType
Notify the component that the mouse button
button is currently being
held.-
Constructor Summary
ConstructorsConstructorDescriptionSyMouseEventOnHeld(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionFirst, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionNow, SyMouseButton button, SyComponentType actual) Notify the component that the mouse buttonbuttonis currently being held. -
Method Summary
Modifier and TypeMethodDescriptionactual()Returns the value of theactualrecord component.button()Returns the value of thebuttonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> Returns the value of themousePositionFirstrecord component.com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> Returns the value of themousePositionNowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyMouseEventOnHeld
public SyMouseEventOnHeld(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionFirst, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionNow, SyMouseButton button, SyComponentType actual) Notify the component that the mouse buttonbuttonis currently being held.- Parameters:
mousePositionFirst- The position of the mouse cursor when the button was first pressedmousePositionNow- The position of the mouse cursor nowbutton- The mouse buttonactual- The component that was initially under the mouse
-
-
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 withObjects::equals(Object,Object). -
mousePositionFirst
public com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionFirst()Returns the value of themousePositionFirstrecord component.- Returns:
- the value of the
mousePositionFirstrecord component
-
mousePositionNow
public com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePositionNow()Returns the value of themousePositionNowrecord component.- Returns:
- the value of the
mousePositionNowrecord component
-
button
-
actual
-