cohtml.Net.GestureEventData

A gesture event.

Inherits from SystemIDisposable

Public Types

Name
enum classEventType { Unknown, Fling, PanStart, PanEnd, Tap}

Public Functions

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()

Public Properties

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.

Protected Attributes

Name
boolswigCMemOwn

Public Types Documentation

enum EventType

EnumeratorValueDescription
Unknown
Fling
PanStart
PanEnd
Tap

Public Functions Documentation

function Dispose

virtual void Dispose()

function GetDeltaX

float GetDeltaX()

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

function GetDeltaY

float GetDeltaY()

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

function GetDuration

float GetDuration()

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

function SetDeltaX

void SetDeltaX(
    float newDeltaX
)

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

function SetDeltaY

void SetDeltaY(
    float newDeltaY
)

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

function SetDuration

void SetDuration(
    float newDuration
)

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

function GestureEventData

GestureEventData()

Public Property Documentation

property CurrentLocationX

float CurrentLocationX;

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

property CurrentLocationY

float CurrentLocationY;

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

property StartLocationX

float StartLocationX;

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

property StartLocationY

float StartLocationY;

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

property Type

GestureEventData.EventType Type;

The type of the event.

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;