Vcl.Controls.TGestureEventInfo
Delphi
TGestureEventInfo = record
C++
struct DECLSPEC_DRECORD TGestureEventInfo
{
public:
TGestureID GestureID;
System::Types::TPoint Location;
TInteractiveGestureFlags Flags;
double Angle;
System::Types::TSmallPoint InertiaVector;
public:
union
{
struct
{
System::Types::TSmallPoint TapLocation;
};
struct
{
int Distance;
};
};
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
Description
Describes a gesture event.
TGestureEventInfo is a record that contains information about a gesture event. TGestureEventInfo is always associated with a gesturing event. The TGestureEvent type passes a TGestureEventInfo record to the user code.
The following table lists the fields that constitute a TGestureEventInfo record:
Field | Description |
---|---|
GestureID |
The ID of the gesture that is emitted. ID is an integer value uniquely identifying the gesture. |
Location |
The current point on the control's surface. Location contains the X and Y coordinates of the last known point. |
Flags |
A set of TInteractiveGestureFlag options describing the state of the interactive gesture. Flags is only valid if the gesture is interactive. |
Angle |
The angle in which either the finger or a gesturing device has moved relative to the screen coordinates. |
Distance |
The distance in pixels from the current point, given by Location, and the previous point. |
InertiaVector |
The inertia speed given by an X and Y pair. A positive X value means an inertia to the right of the screen, while a negative one means an inertia to the left. A positive Y value means an inertia to the bottom of the screen, while a negative one means an inertia to the top. InertiaVector is only valid if the event is interactive. |
TapLocation |
Specifies the coordinates of the "tap" and "press and tap" gestures. |