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
GestureEventArgs.cs
2
23public sealed class GestureEventArgs : EventArgs
24{
30 public GestureType GestureType { get; }
31
36 public TappedEventArgs? Tap { get; }
37
42 public SwipedEventArgs? Swipe { get; }
43
48 public PinchedEventArgs? Pinch { get; }
49
54 public bool IsTap => GestureType == GestureType.Tap;
55
60 public bool IsSwipe => GestureType == GestureType.Swipe;
61
66 public bool IsPinch => GestureType == GestureType.Pinch;
67
73 {
75 Tap = tap ?? throw new ArgumentNullException(nameof(tap));
76 }
77
83 {
85 Swipe = swipe ?? throw new ArgumentNullException(nameof(swipe));
86 }
87
93 {
95 Pinch = pinch ?? throw new ArgumentNullException(nameof(pinch));
96 }
97}
SwipedEventArgs? Swipe
Gets data specific to a swipe gesture, or null when GestureType is not GestureType....
GestureEventArgs(PinchedEventArgs pinch)
Initializes a new GestureEventArgs for a pinch gesture.
GestureEventArgs(TappedEventArgs tap)
Initializes a new GestureEventArgs for a tap gesture.
TappedEventArgs? Tap
Gets data specific to a tap gesture, or null when GestureType is not GestureType.Tap.
bool IsPinch
Gets a value indicating whether this event represents a pinch or spread gesture. When true,...
GestureType GestureType
Gets the type of gesture that this event represents. Use IsTap, IsSwipe, or IsPinch as convenient boo...
PinchedEventArgs? Pinch
Gets data specific to a pinch or spread gesture, or null when GestureType is not GestureType....
bool IsSwipe
Gets a value indicating whether this event represents a swipe gesture. When true, Swipe is non-null.
GestureEventArgs(SwipedEventArgs swipe)
Initializes a new GestureEventArgs for a swipe gesture.
bool IsTap
Gets a value indicating whether this event represents a tap gesture. When true, Tap is non-null.
Provides data for the PinchGestureRecognizer.PinchUpdated event, describing the change in scale produ...
Provides data for the SwipeGestureRecognizer.Swiped event, including the direction,...
Provides data for the TapGestureRecognizer.Tapped event, including the screen position where the tap ...