cohtml.Net.GestureEventData
A gesture event.
Inherits from SystemIDisposable
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum class | EventType { Unknown, Fling, PanStart, PanEnd, Tap} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| 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() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| 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. |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Types Documentation
Section titled “Public Types Documentation”enum EventType
Section titled “enum EventType”| Enumerator | Value | Description |
|---|---|---|
| Unknown | ||
| Fling | ||
| PanStart | ||
| PanEnd | ||
| Tap |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function GetDeltaX
Section titled “function GetDeltaX”float GetDeltaX()Returns the horizontal distance between the last handled position and the current position of a pan event.
function GetDeltaY
Section titled “function GetDeltaY”float GetDeltaY()Returns the vertical distance between the last handled position and the current position of a pan event.
function GetDuration
Section titled “function GetDuration”float GetDuration()Returns the duration between fling start and fling end of a fling event.
function SetDeltaX
Section titled “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
Section titled “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
Section titled “function SetDuration”void SetDuration( float newDuration)Sets the duration between fling start and fling end of a fling event.
function GestureEventData
Section titled “function GestureEventData”GestureEventData()Public Property Documentation
Section titled “Public Property Documentation”property CurrentLocationX
Section titled “property CurrentLocationX”float CurrentLocationX;The current X position of the touch in pixels in the space of the view.
property CurrentLocationY
Section titled “property CurrentLocationY”float CurrentLocationY;The current Y position of the touch in pixels in the space of the view.
property StartLocationX
Section titled “property StartLocationX”float StartLocationX;The start X position of the touch in pixels in the space of the view.
property StartLocationY
Section titled “property StartLocationY”float StartLocationY;The start Y position of the touch in pixels in the space of the view.
property Type
Section titled “property Type”GestureEventData.EventType Type;The type of the event.
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.