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
Gondwana.Input.Touch.Gestures.SwipedEventArgs Class Referencesealed

Provides data for the SwipeGestureRecognizer.Swiped event, including the direction, start and end positions, and the computed speed of the swipe. More...

Inheritance diagram for Gondwana.Input.Touch.Gestures.SwipedEventArgs:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ SwipedEventArgs()

Gondwana.Input.Touch.Gestures.SwipedEventArgs.SwipedEventArgs ( SwipeDirection direction,
Point startPosition,
Point endPosition,
double speedPixelsPerSecond )

Initializes a new instance of the SwipedEventArgs class.

Parameters
directionThe primary direction of the swipe.
startPositionThe position where the swipe began.
endPositionThe position where the swipe ended.
speedPixelsPerSecondThe speed of the swipe in pixels per second.

Definition at line 40 of file SwipedEventArgs.cs.

Property Documentation

◆ Direction

SwipeDirection Gondwana.Input.Touch.Gestures.SwipedEventArgs.Direction
get

Gets the primary direction of the swipe gesture.

Definition at line 14 of file SwipedEventArgs.cs.

◆ EndPosition

Point Gondwana.Input.Touch.Gestures.SwipedEventArgs.EndPosition
get

Gets the position where the swipe gesture ended, in client (control-local) coordinates.

Definition at line 24 of file SwipedEventArgs.cs.

◆ SpeedPixelsPerSecond

double Gondwana.Input.Touch.Gestures.SwipedEventArgs.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.

Definition at line 31 of file SwipedEventArgs.cs.

◆ StartPosition

Point Gondwana.Input.Touch.Gestures.SwipedEventArgs.StartPosition
get

Gets the position where the swipe gesture began, in client (control-local) coordinates.

Definition at line 19 of file SwipedEventArgs.cs.