![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Provides data for the SwipeGestureRecognizer.Swiped event, including the direction, start and end positions, and the computed speed of the swipe. More...
Public Member Functions | |
| SwipedEventArgs (SwipeDirection direction, Point startPosition, Point endPosition, double speedPixelsPerSecond) | |
| Initializes a new instance of the SwipedEventArgs class. | |
Properties | |
| SwipeDirection | Direction [get] |
| Gets the primary direction of the swipe gesture. | |
| Point | StartPosition [get] |
| Gets the position where the swipe gesture began, in client (control-local) coordinates. | |
| Point | EndPosition [get] |
| Gets the position where the swipe gesture ended, in client (control-local) coordinates. | |
| double | SpeedPixelsPerSecond [get] |
| Gets the speed of the swipe in pixels per second. This is calculated as the Euclidean distance between StartPosition and EndPosition divided by the duration of the contact. | |
Provides data for the SwipeGestureRecognizer.Swiped event, including the direction, start and end positions, and the computed speed of the swipe.
Definition at line 9 of file SwipedEventArgs.cs.
| Gondwana.Input.Touch.Gestures.SwipedEventArgs.SwipedEventArgs | ( | SwipeDirection | direction, |
| Point | startPosition, | ||
| Point | endPosition, | ||
| double | speedPixelsPerSecond ) |
Initializes a new instance of the SwipedEventArgs class.
| direction | The primary direction of the swipe. |
| startPosition | The position where the swipe began. |
| endPosition | The position where the swipe ended. |
| speedPixelsPerSecond | The speed of the swipe in pixels per second. |
Definition at line 40 of file SwipedEventArgs.cs.
|
get |
Gets the primary direction of the swipe gesture.
Definition at line 14 of file SwipedEventArgs.cs.
|
get |
Gets the position where the swipe gesture ended, in client (control-local) coordinates.
Definition at line 24 of file SwipedEventArgs.cs.
|
get |
Gets the speed of the swipe in pixels per second. This is calculated as the Euclidean distance between StartPosition and EndPosition divided by the duration of the contact.
Definition at line 31 of file SwipedEventArgs.cs.
|
get |
Gets the position where the swipe gesture began, in client (control-local) coordinates.
Definition at line 19 of file SwipedEventArgs.cs.