cohtml.Net.GestureEventData
A gesture event.
Inherits from SystemIDisposable
Public Types
Name | |
---|---|
enum class | EventType { Unknown, Fling, PanStart, PanEnd, Tap} |
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
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
Name | |
---|---|
bool | swigCMemOwn |
Public Types Documentation
enum EventType
Enumerator | Value | Description |
---|---|---|
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;