Record Class SyMouseEventOnPressed
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.mouse.SyMouseEventOnPressed
- Record Components:
mousePosition- The position of the mouse cursor now- The mouse buttonactual- The component that is under the mouse
- All Implemented Interfaces:
SyEventInputType, SyEventType, SyMouseEventType
public record SyMouseEventOnPressed(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePosition, SyMouseButton button, SyComponentType actual)
extends Record
implements SyMouseEventType
Notify the component that the mouse button
button has just been
pressed.-
Constructor Summary
ConstructorsConstructorDescriptionSyMouseEventOnPressed(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePosition, SyMouseButton button, SyComponentType actual) Notify the component that the mouse buttonbuttonhas just been pressed. -
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 themousePositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyMouseEventOnPressed
public SyMouseEventOnPressed(com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceViewportType> mousePosition, SyMouseButton button, SyComponentType actual) Notify the component that the mouse buttonbuttonhas just been pressed.- Parameters:
mousePosition- The position of the mouse cursor nowbutton- The mouse buttonactual- The component that is 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). -
mousePosition
Returns the value of themousePositionrecord component.- Returns:
- the value of the
mousePositionrecord component
-
button
-
actual
-