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.PinchedEventArgs Class Referencesealed

Provides data for the PinchGestureRecognizer.PinchUpdated event, describing the change in scale produced by a two-finger pinch or spread gesture. More...

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

Public Member Functions

 PinchedEventArgs (double scaleDelta, double currentDistance)
 Initializes a new instance of the PinchedEventArgs class.
 PinchedEventArgs (PinchPhase phase, IReadOnlyList< int > touchIds, System.Drawing.PointF center, double startingDistance, double previousDistance, double currentDistance)
 Initializes complete pinch lifecycle data.

Properties

PinchPhase Phase [get]
 Gets the lifecycle phase of this pinch event.
IReadOnlyList< int > TouchIds [get]
 Gets the two contact IDs participating in the gesture.
System.Drawing.PointF Center [get]
 Gets the midpoint between the two contacts in client coordinates.
double StartingDistance [get]
 Gets the distance at which this pinch gesture began.
double PreviousDistance [get]
 Gets the distance reported by the preceding pinch event.
double ScaleDelta [get]
 Gets the scale factor relative to the previous pinch update. A value greater than 1.0 indicates the fingers moved apart (zoom in / expand), while a value less than 1.0 indicates the fingers moved closer together (zoom out / contract). A value of exactly 1.0 means no change in finger separation occurred.
double CurrentDistance [get]
 Gets the current distance in pixels between the two active touch contact points.
double TotalScale [get]
 Gets the scale relative to the beginning of the current pinch gesture.

Detailed Description

Provides data for the PinchGestureRecognizer.PinchUpdated event, describing the change in scale produced by a two-finger pinch or spread gesture.

Definition at line 7 of file PinchedEventArgs.cs.

Constructor & Destructor Documentation

◆ PinchedEventArgs() [1/2]

Gondwana.Input.Touch.Gestures.PinchedEventArgs.PinchedEventArgs ( double scaleDelta,
double currentDistance )

Initializes a new instance of the PinchedEventArgs class.

Parameters
scaleDeltaThe scale factor relative to the previous pinch update.
currentDistanceThe current distance in pixels between the two active touch contact points.

Definition at line 51 of file PinchedEventArgs.cs.

◆ PinchedEventArgs() [2/2]

Gondwana.Input.Touch.Gestures.PinchedEventArgs.PinchedEventArgs ( PinchPhase phase,
IReadOnlyList< int > touchIds,
System.Drawing.PointF center,
double startingDistance,
double previousDistance,
double currentDistance )

Initializes complete pinch lifecycle data.

Parameters
phaseThe phase.
touchIdsThe touch ids.
centerThe center.
startingDistanceThe starting distance.
previousDistanceThe previous distance.
currentDistanceThe current distance.

Definition at line 72 of file PinchedEventArgs.cs.

Property Documentation

◆ Center

System.Drawing.PointF Gondwana.Input.Touch.Gestures.PinchedEventArgs.Center
get

Gets the midpoint between the two contacts in client coordinates.

Definition at line 16 of file PinchedEventArgs.cs.

◆ CurrentDistance

double Gondwana.Input.Touch.Gestures.PinchedEventArgs.CurrentDistance
get

Gets the current distance in pixels between the two active touch contact points.

Definition at line 35 of file PinchedEventArgs.cs.

◆ Phase

PinchPhase Gondwana.Input.Touch.Gestures.PinchedEventArgs.Phase
get

Gets the lifecycle phase of this pinch event.

Definition at line 10 of file PinchedEventArgs.cs.

◆ PreviousDistance

double Gondwana.Input.Touch.Gestures.PinchedEventArgs.PreviousDistance
get

Gets the distance reported by the preceding pinch event.

Definition at line 22 of file PinchedEventArgs.cs.

◆ ScaleDelta

double Gondwana.Input.Touch.Gestures.PinchedEventArgs.ScaleDelta
get

Gets the scale factor relative to the previous pinch update. A value greater than 1.0 indicates the fingers moved apart (zoom in / expand), while a value less than 1.0 indicates the fingers moved closer together (zoom out / contract). A value of exactly 1.0 means no change in finger separation occurred.

Definition at line 30 of file PinchedEventArgs.cs.

◆ StartingDistance

double Gondwana.Input.Touch.Gestures.PinchedEventArgs.StartingDistance
get

Gets the distance at which this pinch gesture began.

Definition at line 19 of file PinchedEventArgs.cs.

◆ TotalScale

double Gondwana.Input.Touch.Gestures.PinchedEventArgs.TotalScale
get

Gets the scale relative to the beginning of the current pinch gesture.

Definition at line 40 of file PinchedEventArgs.cs.

◆ TouchIds

IReadOnlyList<int> Gondwana.Input.Touch.Gestures.PinchedEventArgs.TouchIds
get

Gets the two contact IDs participating in the gesture.

Definition at line 13 of file PinchedEventArgs.cs.