Top | ![]() |
![]() |
![]() |
![]() |
enum | GripGestureType |
enum | GripDeviceType |
#define | GRIP_DEVICE_ALL |
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.
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.
#define GRIP_DEVICE_ALL (GRIP_DEVICE_TOUCHSCREEN | GRIP_DEVICE_TOUCHPAD | GRIP_DEVICE_INDEPENDENT)
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 |
|
guint |
identifies the gesture |
|
GdkWindow * |
the GdkWindow in which the gesture occurred |
|
GdkWindow * |
the root GdkWindow |
|
GdkWindow * |
the child GdkWindow |
|
guint32 |
the time the gesture event occurred |
|
gint |
the number of touches making up the gesture |
|
gdouble |
the X coordinate of the focus point of the gesture start |
|
gdouble |
the Y coordinate of the focus point of the gesture start |
|
gint |
the change in the X coordinate since the last gesture event |
|
gint |
the change in the Y coordinate since the last gesture event |
|
gdouble |
the rate of change of the X coordinate |
|
gdouble |
the rate of change of the Y coordinate |
|
gdouble |
the current X coordinate of the centroid poistion of the touches |
|
gdouble |
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 |
|
guint |
identifies the gesture |
|
GdkWindow * |
the GdkWindow in which the gesture occurred |
|
GdkWindow * |
the root GdkWindow |
|
GdkWindow * |
the child GdkWindow |
|
guint32 |
the time the gesture event occurred |
|
guint |
the number of touches making up the gesture |
|
gdouble |
the X coordinate of the focus point of the gesture start |
|
gdouble |
the Y coordinate of the focus point of the gesture start |
|
gdouble |
the change in the radius (in screen coordinates) |
|
gdouble |
the rate of change of the radius |
|
gdouble |
the current radius (in screen coordinates) |
|
gfloat |
the current X coordinate of the centroid poistion of the touches |
|
gfloat |
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 |
|
guint |
identifies the gesture |
|
GdkWindow * |
the GdkWindow in which the gesture occurred |
|
GdkWindow * |
the root GdkWindow |
|
GdkWindow * |
the child GdkWindow |
|
guint32 |
the time the gesture event occurred |
|
guint |
the number of touches making up the gesture |
|
gdouble |
the X coordinate of the focus point of the gesture start |
|
gdouble |
the Y coordinate of the focus point of the gesture start |
|
gdouble |
the change in the rotation angle (in radians) |
|
gdouble |
the rate of change in the rotation angle |
|
gdouble |
the current rotation angle |
|
gfloat |
the current X coordinate of the centroid poistion of the touches |
|
gfloat |
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 |
|
guint |
identifies the gesture |
|
GdkWindow * |
the GdkWindow in which the gesture occurred |
|
GdkWindow * |
the root GdkWindow |
|
GdkWindow * |
the child GdkWindow |
|
guint32 |
the time the gesture event occurred |
|
guint |
the number of touches making up the gesture |
|
guint32 |
the duration of the tap |
|
gfloat |
the X coordinate of the focus point of the gesture start |
|
gfloat |
the Y coordinate of the focus point of the gesture start |
|
gfloat |
the current X coordinate of the centroid poistion of the touches |
|
gfloat |
the current Y coordinate of the centroid poistion of the touches |
|
GripInputDevice * |
the GripInputDevice used to make the gesture |