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.
Loading...
Searching...
No Matches
SwipedEventArgs.cs
1using System.Drawing;
2
4
9public sealed class SwipedEventArgs : EventArgs
10{
14 public SwipeDirection Direction { get; }
15
19 public Point StartPosition { get; }
20
24 public Point EndPosition { get; }
25
31 public double SpeedPixelsPerSecond { get; }
32
40 public SwipedEventArgs(SwipeDirection direction, Point startPosition, Point endPosition, double speedPixelsPerSecond)
41 {
42 Direction = direction;
43 StartPosition = startPosition;
44 EndPosition = endPosition;
45 SpeedPixelsPerSecond = speedPixelsPerSecond;
46 }
47}
Point EndPosition
Gets the position where the swipe gesture ended, in client (control-local) coordinates.
SwipeDirection Direction
Gets the primary direction of the swipe gesture.
SwipedEventArgs(SwipeDirection direction, Point startPosition, Point endPosition, double speedPixelsPerSecond)
Initializes a new instance of the SwipedEventArgs class.
double SpeedPixelsPerSecond
Gets the speed of the swipe in pixels per second. This is calculated as the Euclidean distance betwee...
Point StartPosition
Gets the position where the swipe gesture began, in client (control-local) coordinates.
SwipeDirection
Specifies the direction of a swipe gesture.