![]() |
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 PinchGestureRecognizer.PinchUpdated event, describing the change in scale produced by a two-finger pinch or spread gesture. More...
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. | |
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.
| Gondwana.Input.Touch.Gestures.PinchedEventArgs.PinchedEventArgs | ( | double | scaleDelta, |
| double | currentDistance ) |
Initializes a new instance of the PinchedEventArgs class.
| scaleDelta | The scale factor relative to the previous pinch update. |
| currentDistance | The current distance in pixels between the two active touch contact points. |
Definition at line 51 of file PinchedEventArgs.cs.
| 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.
| phase | The phase. |
| touchIds | The touch ids. |
| center | The center. |
| startingDistance | The starting distance. |
| previousDistance | The previous distance. |
| currentDistance | The current distance. |
Definition at line 72 of file PinchedEventArgs.cs.
|
get |
Gets the midpoint between the two contacts in client coordinates.
Definition at line 16 of file PinchedEventArgs.cs.
|
get |
Gets the current distance in pixels between the two active touch contact points.
Definition at line 35 of file PinchedEventArgs.cs.
|
get |
Gets the lifecycle phase of this pinch event.
Definition at line 10 of file PinchedEventArgs.cs.
|
get |
Gets the distance reported by the preceding pinch event.
Definition at line 22 of file PinchedEventArgs.cs.
|
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.
|
get |
Gets the distance at which this pinch gesture began.
Definition at line 19 of file PinchedEventArgs.cs.
|
get |
Gets the scale relative to the beginning of the current pinch gesture.
Definition at line 40 of file PinchedEventArgs.cs.
|
get |
Gets the two contact IDs participating in the gesture.
Definition at line 13 of file PinchedEventArgs.cs.