TouchFingerEvent class
A touch event.
- Inheritance
- Mixed in types
Constructors
- TouchFingerEvent(Sdl sdl, int timestamp, TouchFingerEventType type, int touchId, int fingerId, double x, double y, double distanceX, double distanceY, double pressure, int windowId)
- Create an event.
- TouchFingerEvent.fromSdlEvent(Sdl sdl, SDL_TouchFingerEvent event)
-
Create an instance from an SDL event.
factory
Properties
-
coordinates
→ Point<
double> -
Complete coordinates.
no setterinherited
-
distance
→ Point<
double> -
The distance.
no setter
- distanceX → double
-
The distance moved in the x-axis, normalized (-1...1).
final
- distanceY → double
-
The distance moved in the y-axis, normalized (-1...1).
final
- fingerId → int
-
The finger ID.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pressure → double
-
The quantity of pressure applied, normalized (0...1).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdl → Sdl
-
The SDL bindings to use for this event.
finalinherited
- timestamp → int
-
The time this event was emitted.
finalinherited
- touchId → int
-
The touch device id.
final
- type → TouchFingerEventType
-
The type of this event.
final
- window → Window?
-
The window that emitted this event.
no setterinherited
- windowId ↔ int
-
The ID of the window that emitted this event.
latefinalinherited
- x ↔ double
-
X coordinate.
latefinalinherited
- y ↔ double
-
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