| Top |
| #define | GRIP_DEVICE_ALL |
| GripGestureEvent * | grip_gesture_event_new () |
| void | grip_gesture_event_free () |
| GripGestureEvent * | grip_gesture_event_copy () |
| enum | GripGestureType |
| enum | GripDeviceType |
| enum | GripTimeType |
| union | GripGestureEvent |
| struct | GripEventGestureAny |
| struct | GripEventGestureDrag |
| struct | GripEventGesturePinch |
| struct | GripEventGestureRotate |
| struct | GripEventGestureTap |
A series of one or more events are passed to the gesture callback. Each event conveys information specific to the type of gesture occurring.
#define GRIP_DEVICE_ALL (GRIP_DEVICE_TOUCHSCREEN | GRIP_DEVICE_TOUCHPAD | GRIP_DEVICE_INDEPENDENT)
GripGestureEvent *
grip_gesture_event_new (GripGestureType gesture_type);
Creates a new Grip gesture event.
void
grip_gesture_event_free (GripGestureEvent *event);
Frees the resources allocated for a GripGestureEvent.
GripGestureEvent *
grip_gesture_event_copy (const GripGestureEvent *event);
Creates a new GripGestureEvent instance using a deep copy of and existing event.
This is a boxed type.
GripGestureType |
the GripGestureType, selects the variant record |
|
GripEventGestureAny |
||
GripEventGestureDrag |
the event contains a drag gesture record |
|
GripEventGesturePinch |
the event contains a pinch gesture record |
|
GripEventGestureRotate |
the event contains a rotate gesture record |
|
GripEventGestureTap |
the event contains a tap gesture record |
struct GripEventGestureAny {
GdkEventType type;
GdkWindow *window;
};
This struct is not used.
struct GripEventGestureDrag {
GripGestureType type;
guint id;
GdkWindow *window;
GdkWindow *root;
GdkWindow *child;
guint32 timestamp;
gint fingers;
gdouble focus_x;
gdouble focus_y;
gint delta_x;
gint delta_y;
gdouble velocity_x;
gdouble velocity_y;
gdouble position_x;
gdouble position_y;
GripInputDevice *input_device;
};
Data associated with a drag event. A drag is a lateral motion.
GripGestureType |
the GripGestureType of the gesture |
|
identifies the gesture |
||
the GdkWindow in which the gesture occurred |
||
the root GdkWindow |
||
the child GdkWindow |
||
the time the gesture event occurred |
||
the number of touches making up the gesture |
||
the X coordinate of the focus point of the gesture start |
||
the Y coordinate of the focus point of the gesture start |
||
the change in the X coordinate since the last gesture event |
||
the change in the Y coordinate since the last gesture event |
||
the rate of change of the X coordinate |
||
the rate of change of the Y coordinate |
||
the current X coordinate of the centroid poistion of the touches |
||
the current Y coordinate of the centroid poistion of the touches |
||
GripInputDevice * |
the GripInputDevice used to make the gesture |
struct GripEventGesturePinch {
GripGestureType type;
guint id;
GdkWindow *window;
GdkWindow *root;
GdkWindow *child;
guint32 timestamp;
guint fingers;
gdouble focus_x;
gdouble focus_y;
gdouble radius_delta;
gdouble radial_velocity;
gdouble radius;
gfloat position_x;
gfloat position_y;
GripInputDevice *input_device;
};
Data associated with a pinch event. A pinch is an expand or contract motion.
GripGestureType |
the GripGestureType of the gesture |
|
identifies the gesture |
||
the GdkWindow in which the gesture occurred |
||
the root GdkWindow |
||
the child GdkWindow |
||
the time the gesture event occurred |
||
the number of touches making up the gesture |
||
the X coordinate of the focus point of the gesture start |
||
the Y coordinate of the focus point of the gesture start |
||
the change in the radius (in screen coordinates) |
||
the rate of change of the radius |
||
the current radius (in screen coordinates) |
||
the current X coordinate of the centroid poistion of the touches |
||
the current Y coordinate of the centroid poistion of the touches |
||
GripInputDevice * |
the GripInputDevice used to make the gesture |
struct GripEventGestureRotate {
GripGestureType type;
guint id;
GdkWindow *window;
GdkWindow *root;
GdkWindow *child;
guint32 timestamp;
guint fingers;
gdouble focus_x;
gdouble focus_y;
gdouble angle_delta;
gdouble angular_velocity;
gdouble angle;
gfloat position_x;
gfloat position_y;
GripInputDevice *input_device;
};
Data associated with a rotate gesture event.
GripGestureType |
the GripGestureType of the gesture |
|
identifies the gesture |
||
the GdkWindow in which the gesture occurred |
||
the root GdkWindow |
||
the child GdkWindow |
||
the time the gesture event occurred |
||
the number of touches making up the gesture |
||
the X coordinate of the focus point of the gesture start |
||
the Y coordinate of the focus point of the gesture start |
||
the change in the rotation angle (in radians) |
||
the rate of change in the rotation angle |
||
the current rotation angle |
||
the current X coordinate of the centroid poistion of the touches |
||
the current Y coordinate of the centroid poistion of the touches |
||
GripInputDevice * |
the GripInputDevice used to make the gesture |
struct GripEventGestureTap {
GripGestureType type;
guint id;
GdkWindow *window;
GdkWindow *root;
GdkWindow *child;
guint32 timestamp;
guint fingers;
guint32 tap_time;
gfloat focus_x;
gfloat focus_y;
gfloat position_x;
gfloat position_y;
GripInputDevice *input_device;
};
Data associated with a tap gesture.
GripGestureType |
the GripGestureType of the gesture |
|
identifies the gesture |
||
the GdkWindow in which the gesture occurred |
||
the root GdkWindow |
||
the child GdkWindow |
||
the time the gesture event occurred |
||
the number of touches making up the gesture |
||
the duration of the tap |
||
the X coordinate of the focus point of the gesture start |
||
the Y coordinate of the focus point of the gesture start |
||
the current X coordinate of the centroid poistion of the touches |
||
the current Y coordinate of the centroid poistion of the touches |
||
GripInputDevice * |
the GripInputDevice used to make the gesture |