Skip to content
SiteEmail

cohtml.Net.GestureEventData

A gesture event.

Inherits from SystemIDisposable

Name
enum classEventType { Unknown, Fling, PanStart, PanEnd, Tap}
Name
virtual voidDispose()
floatGetDeltaX()
Returns the horizontal distance between the last handled position and the current position of a pan event.
floatGetDeltaY()
Returns the vertical distance between the last handled position and the current position of a pan event.
floatGetDuration()
Returns the duration between fling start and fling end of a fling event.
voidSetDeltaX(float newDeltaX)
Sets the horizontal distance between the last handled position and the current position of a pan event.
voidSetDeltaY(float newDeltaY)
Sets the horizontal distance between the last handled position and the current position of a pan event.
voidSetDuration(float newDuration)
Sets the duration between fling start and fling end of a fling event.
GestureEventData()
Name
floatCurrentLocationX
The current X position of the touch in pixels in the space of the view.
floatCurrentLocationY
The current Y position of the touch in pixels in the space of the view.
floatStartLocationX
The start X position of the touch in pixels in the space of the view.
floatStartLocationY
The start Y position of the touch in pixels in the space of the view.
GestureEventData.EventTypeType
The type of the event.
Name
boolswigCMemOwn
EnumeratorValueDescription
Unknown
Fling
PanStart
PanEnd
Tap
virtual void Dispose()
float GetDeltaX()

Returns the horizontal distance between the last handled position and the current position of a pan event.

float GetDeltaY()

Returns the vertical distance between the last handled position and the current position of a pan event.

float GetDuration()

Returns the duration between fling start and fling end of a fling event.

void SetDeltaX(
float newDeltaX
)

Sets the horizontal distance between the last handled position and the current position of a pan event.

void SetDeltaY(
float newDeltaY
)

Sets the horizontal distance between the last handled position and the current position of a pan event.

void SetDuration(
float newDuration
)

Sets the duration between fling start and fling end of a fling event.

GestureEventData()
float CurrentLocationX;

The current X position of the touch in pixels in the space of the view.

float CurrentLocationY;

The current Y position of the touch in pixels in the space of the view.

float StartLocationX;

The start X position of the touch in pixels in the space of the view.

float StartLocationY;

The start Y position of the touch in pixels in the space of the view.

GestureEventData.EventType Type;

The type of the event.

bool swigCMemOwn;