A gesture event. More...
Public Types | |
enum | EventType { Unknown, Fling, PanStart, PanEnd, Tap } |
Public Member Functions | |
float | GetDeltaX () const |
Returns the horizontal distance between the last handled position and the current position of a pan event. More... | |
float | GetDeltaY () const |
Returns the vertical distance between the last handled position and the current position of a pan event. More... | |
float | GetDuration () const |
Returns the duration between fling start and fling end of a fling event. More... | |
void | SetDeltaX (float newDeltaX) |
Sets the horizontal distance between the last handled position and the current position of a pan event. More... | |
void | SetDeltaY (float newDeltaY) |
Sets the horizontal distance between the last handled position and the current position of a pan event. More... | |
void | SetDuration (float newDuration) |
Sets the duration between fling start and fling end of a fling event. More... | |
GestureEventData () | |
Public Attributes | |
union { | |
struct { | |
float DeltaX | |
The horizontal distance between the last handled position and the current position. More... | |
float DeltaY | |
The vertical distance between the last handled position and the current position. More... | |
} PanDetails | |
Pan details of the event. More... | |
struct { | |
float Duration | |
The duration between fling start and fling end. More... | |
} FlingDetails | |
Fling details of the event. More... | |
} | Details |
The details of the event. More... | |
float | CurrentLocationX |
The current X position of the touch in pixels in the space of the view. More... | |
float | CurrentLocationY |
The current Y position of the touch in pixels in the space of the view. More... | |
float | StartLocationX |
The start X position of the touch in pixels in the space of the view. More... | |
float | StartLocationY |
The start Y position of the touch in pixels in the space of the view. More... | |
EventType | Type |
The type of the event. More... | |
A gesture event.
|
inline |
|
inline |
Returns the horizontal distance between the last handled position and the current position of a pan event.
|
inline |
Returns the vertical distance between the last handled position and the current position of a pan event.
|
inline |
Returns the duration between fling start and fling end of a fling event.
|
inline |
Sets the horizontal distance between the last handled position and the current position of a pan event.
|
inline |
Sets the horizontal distance between the last handled position and the current position of a pan event.
|
inline |
Sets the duration between fling start and fling end of a fling event.
float cohtml::GestureEventData::CurrentLocationX |
The current X position of the touch in pixels in the space of the view.
float cohtml::GestureEventData::CurrentLocationY |
The current Y position of the touch in pixels in the space of the view.
float cohtml::GestureEventData::DeltaX |
The horizontal distance between the last handled position and the current position.
float cohtml::GestureEventData::DeltaY |
The vertical distance between the last handled position and the current position.
union { ... } cohtml::GestureEventData::Details |
The details of the event.
float cohtml::GestureEventData::Duration |
The duration between fling start and fling end.
struct { ... } cohtml::GestureEventData::FlingDetails |
Fling details of the event.
struct { ... } cohtml::GestureEventData::PanDetails |
Pan details of the event.
float cohtml::GestureEventData::StartLocationX |
The start X position of the touch in pixels in the space of the view.
float cohtml::GestureEventData::StartLocationY |
The start Y position of the touch in pixels in the space of the view.
EventType cohtml::GestureEventData::Type |
The type of the event.