MouseButtonEvent class
A mouse button has been pressed or released.
- Inheritance
-
- Object
- Event
- MouseEvent
- MouseButtonEvent
Constructors
- MouseButtonEvent({required Sdl sdl, required int timestamp, required int wndId, required int which, required MouseButton button, required PressedState state, required int clicks, required int x, required int y})
- Create an event.
- MouseButtonEvent.fromSdlEvent(Sdl sdl, SDL_MouseButtonEvent e)
- Create an instance from an event.
Properties
-
The button which was pressed.
final
- clicks → int
-
The number of clicks that were made.
final
-
coordinates
→ Point<
int> -
Complete coordinates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTouchInput → bool
-
Returns
true
if this event was generated by touch input.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdl → Sdl
-
The SDL bindings to use for this event.
finalinherited
- state → PressedState
-
Whether or not the button was pressed or released.
final
- timestamp → int
-
The time this event was emitted.
finalinherited
- which → int
-
The mouse instance ID.
finalinherited
- window → Window?
-
The window that emitted this event.
no setterinherited
- windowId ↔ int
-
The ID of the window that emitted this event.
latefinalinherited
- x ↔ int
-
X coordinate.
latefinalinherited
- y ↔ int
-
Y coordinate.
latefinalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited