cohtml::GestureEventData
A gesture event.
#include <InputEvents.h>
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum | EventType { Unknown, Fling, PanStart, PanEnd, Tap} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| float | GetDeltaX() const Returns the horizontal distance between the last handled position and the current position of a pan event. |
| float | GetDeltaY() const Returns the vertical distance between the last handled position and the current position of a pan event. |
| float | GetDuration() const 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 Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| float | DeltaX The horizontal distance between the last handled position and the current position. |
| float | DeltaY The vertical distance between the last handled position and the current position. |
| struct cohtml::GestureEventData::@0::@1 | PanDetails Pan details of the event. |
| float | Duration The duration between fling start and fling end. |
| struct cohtml::GestureEventData::@0::@2 | FlingDetails Fling details of the event. |
| struct cohtml::GestureEventData::@0 | Details The details of the event. |
| 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. |
| EventType | Type The type of the event. |
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 GetDeltaX
Section titled “function GetDeltaX”inline float GetDeltaX() constReturns the horizontal distance between the last handled position and the current position of a pan event.
function GetDeltaY
Section titled “function GetDeltaY”inline float GetDeltaY() constReturns the vertical distance between the last handled position and the current position of a pan event.
function GetDuration
Section titled “function GetDuration”inline float GetDuration() constReturns the duration between fling start and fling end of a fling event.
function SetDeltaX
Section titled “function SetDeltaX”inline 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”inline 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”inline void SetDuration( float newDuration)Sets the duration between fling start and fling end of a fling event.
function GestureEventData
Section titled “function GestureEventData”inline GestureEventData()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable DeltaX
Section titled “variable DeltaX”float DeltaX;The horizontal distance between the last handled position and the current position.
variable DeltaY
Section titled “variable DeltaY”float DeltaY;The vertical distance between the last handled position and the current position.
variable PanDetails
Section titled “variable PanDetails”struct cohtml::GestureEventData::@0::@1 PanDetails;Pan details of the event.
variable Duration
Section titled “variable Duration”float Duration;The duration between fling start and fling end.
variable FlingDetails
Section titled “variable FlingDetails”struct cohtml::GestureEventData::@0::@2 FlingDetails;Fling details of the event.
variable Details
Section titled “variable Details”struct cohtml::GestureEventData::@0 Details;The details of the event.
variable CurrentLocationX
Section titled “variable CurrentLocationX”float CurrentLocationX;The current X position of the touch in pixels in the space of the view.
variable CurrentLocationY
Section titled “variable CurrentLocationY”float CurrentLocationY;The current Y position of the touch in pixels in the space of the view.
variable StartLocationX
Section titled “variable StartLocationX”float StartLocationX;The start X position of the touch in pixels in the space of the view.
variable StartLocationY
Section titled “variable StartLocationY”float StartLocationY;The start Y position of the touch in pixels in the space of the view.
variable Type
Section titled “variable Type”EventType Type;The type of the event.
© 2026 Coherent Labs. All rights reserved.