Table of Contents

Constructor SwipeGestureEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SwipeGestureEventArgs(MouseEventArgs, PointD, PointD)

Initializes a new instance of the SwipeGestureEventArgs class with the specified mouse event data and swipe coordinates.

public SwipeGestureEventArgs(MouseEventArgs mouseArgs, PointD initialPoint, PointD endPoint)

Parameters

mouseArgs MouseEventArgs

The mouse event data associated with the swipe gesture. Cannot be null.

initialPoint PointD

The starting point of the swipe gesture, in device-independent coordinates.

endPoint PointD

The ending point of the swipe gesture, in device-independent coordinates.

Remarks

The swipe direction and angle are calculated based on the provided initial and end points. This constructor is typically used when handling swipe gestures in custom input scenarios.

SwipeGestureEventArgs(MouseEventArgs, SwipeDirection, float)

Initializes a new instance of the SwipeGestureActivity.SwipeGestureEventArgs class.

public SwipeGestureEventArgs(MouseEventArgs mouseArgs, SwipeDirection direction, float angle)

Parameters

mouseArgs MouseEventArgs

The mouse event arguments.

direction SwipeDirection

The direction of the swipe gesture.

angle float

The angle of the swipe gesture.