cohtml.InputSystem.GestureListener

A class managing and sending gesture events to a CohtmlView component.

Inherits from cohtml.Net.IGestureListener, SystemIDisposable

Public Functions

Name
virtual override voidOnPanRecognized(float gestureBeginPosX, float gestureBeginPosY, float currentPosX, float currentPosY, float deltaX, float deltaY)
Sends a gesture event to a CohtmlView component. Should be invoked when a Pan gesture event is recognized.
virtual override voidOnPanCompleted(float endPosX, float endPosY)
Sends a gesture event to a CohtmlView component. Should be invoked when a Pan gesture event is completed.
virtual override voidOnFlingCompleted(float endPosX, float endPosY, float flingStartX, float flingStartY, float flingMotionMs)
Sends a gesture event to a CohtmlView component. Should be invoked when a Fling gesture event is completed.
virtual override voidOnTapRecognized(float positionX, float positionY)
Sends a gesture event to a CohtmlView component. Should be invoked when a Tap gesture event is recognized.

Public Attributes

Name
CohtmlViewTargetView
A reference to the CohtmlView component that receives a gesture event.

Additional inherited members

Public Functions inherited from cohtml.Net.IGestureListener

Name
virtual voidDispose()
IGestureListener()
delegate voidSwigDelegateIGestureListener_0(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, global.System.IntPtr swigId)
delegate voidSwigDelegateIGestureListener_1(float arg0, float arg1, global.System.IntPtr swigId)
delegate voidSwigDelegateIGestureListener_2(float arg0, float arg1, float arg2, float arg3, float arg4, global.System.IntPtr swigId)
delegate voidSwigDelegateIGestureListener_3(float arg0, float arg1, global.System.IntPtr swigId)

Protected Attributes inherited from cohtml.Net.IGestureListener

Name
boolswigCMemOwn

Public Functions Documentation

function OnPanRecognized

virtual override void OnPanRecognized(
    float gestureBeginPosX,
    float gestureBeginPosY,
    float currentPosX,
    float currentPosY,
    float deltaX,
    float deltaY
)

Sends a gesture event to a CohtmlView component. Should be invoked when a Pan gesture event is recognized.

Reimplements: cohtml.Net.IGestureListener.OnPanRecognized

function OnPanCompleted

virtual override void OnPanCompleted(
    float endPosX,
    float endPosY
)

Sends a gesture event to a CohtmlView component. Should be invoked when a Pan gesture event is completed.

Reimplements: cohtml.Net.IGestureListener.OnPanCompleted

function OnFlingCompleted

virtual override void OnFlingCompleted(
    float endPosX,
    float endPosY,
    float flingStartX,
    float flingStartY,
    float flingMotionMs
)

Sends a gesture event to a CohtmlView component. Should be invoked when a Fling gesture event is completed.

Reimplements: cohtml.Net.IGestureListener.OnFlingCompleted

function OnTapRecognized

virtual override void OnTapRecognized(
    float positionX,
    float positionY
)

Sends a gesture event to a CohtmlView component. Should be invoked when a Tap gesture event is recognized.

Reimplements: cohtml.Net.IGestureListener.OnTapRecognized

Public Attributes Documentation

variable TargetView

CohtmlView TargetView;

A reference to the CohtmlView component that receives a gesture event.