1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>Gesture Events</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="libgrip Reference Manual">
8
<link rel="up" href="libgrip-api.html" title="Programming Interface">
9
<link rel="prev" href="GripGestureManager.html" title="GripGestureManager">
10
<link rel="next" href="libgrip-Input-Devices.html" title="Input Devices">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="GripGestureManager.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="libgrip-api.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">libgrip Reference Manual</th>
21
<td><a accesskey="n" href="libgrip-Input-Devices.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libgrip-Gesture-Events.synopsis" class="shortcut">Top</a>
26
<a href="#libgrip-Gesture-Events.description" class="shortcut">Description</a>
28
<a href="#libgrip-Gesture-Events.object-hierarchy" class="shortcut">Object Hierarchy</a>
31
<div class="refentry">
32
<a name="libgrip-Gesture-Events"></a><div class="titlepage"></div>
33
<div class="refnamediv"><table width="100%"><tr>
35
<h2><span class="refentrytitle"><a name="libgrip-Gesture-Events.top_of_page"></a>Gesture Events</span></h2>
38
<td valign="top" align="right"></td>
40
<div class="refsynopsisdiv">
41
<a name="libgrip-Gesture-Events.synopsis"></a><h2>Synopsis</h2>
42
<a name="GripGestureType"></a><a name="GripTimeType"></a><a name="GripGestureEvent"></a><pre class="synopsis">enum <a class="link" href="libgrip-Gesture-Events.html#GripGestureType">GripGestureType</a>;
44
enum <a class="link" href="libgrip-Gesture-Events.html#GripDeviceType" title="enum GripDeviceType">GripDeviceType</a>;
45
#define <a class="link" href="libgrip-Gesture-Events.html#GRIP-DEVICE-ALL:CAPS" title="GRIP_DEVICE_ALL">GRIP_DEVICE_ALL</a>
47
enum <a class="link" href="libgrip-Gesture-Events.html#GripTimeType">GripTimeType</a>;
49
union <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent">GripGestureEvent</a>;
50
struct <a class="link" href="libgrip-Gesture-Events.html#GripEventGestureAny" title="struct GripEventGestureAny">GripEventGestureAny</a>;
51
struct <a class="link" href="libgrip-Gesture-Events.html#GripEventGestureDrag" title="struct GripEventGestureDrag">GripEventGestureDrag</a>;
52
struct <a class="link" href="libgrip-Gesture-Events.html#GripEventGesturePinch" title="struct GripEventGesturePinch">GripEventGesturePinch</a>;
53
struct <a class="link" href="libgrip-Gesture-Events.html#GripEventGestureRotate" title="struct GripEventGestureRotate">GripEventGestureRotate</a>;
54
struct <a class="link" href="libgrip-Gesture-Events.html#GripEventGestureTap" title="struct GripEventGestureTap">GripEventGestureTap</a>;
55
<a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="returnvalue">GripGestureEvent</span></a> * <a class="link" href="libgrip-Gesture-Events.html#grip-gesture-event-new" title="grip_gesture_event_new ()">grip_gesture_event_new</a> (<em class="parameter"><code><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> gesture_type</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="libgrip-Gesture-Events.html#grip-gesture-event-free" title="grip_gesture_event_free ()">grip_gesture_event_free</a> (<em class="parameter"><code><a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a> *event</code></em>);
57
<a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="returnvalue">GripGestureEvent</span></a> * <a class="link" href="libgrip-Gesture-Events.html#grip-gesture-event-copy" title="grip_gesture_event_copy ()">grip_gesture_event_copy</a> (<em class="parameter"><code>const <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a> *event</code></em>);
60
<div class="refsect1">
61
<a name="libgrip-Gesture-Events.object-hierarchy"></a><h2>Object Hierarchy</h2>
62
<pre class="synopsis">
66
<pre class="synopsis">
70
<pre class="synopsis">
75
<div class="refsect1">
76
<a name="libgrip-Gesture-Events.description"></a><h2>Description</h2>
78
A series of one or more events are passed to the gesture callback. Each
79
event conveys information specific to the type of gesture occurring.
82
<div class="refsect1">
83
<a name="libgrip-Gesture-Events.details"></a><h2>Details</h2>
84
<div class="refsect2">
85
<a name="GripGestureType"></a><h3>enum GripGestureType</h3>
86
<pre class="programlisting">typedef enum {
87
GRIP_GESTURE_DRAG = 0,
88
GRIP_GESTURE_PINCH = 1,
89
GRIP_GESTURE_ROTATE = 2,
94
Indicates the type of gesture for which a gesture event is being received.
96
<div class="variablelist"><table border="0">
97
<col align="left" valign="top">
100
<td><p><a name="GRIP-GESTURE-DRAG:CAPS"></a><span class="term"><code class="literal">GRIP_GESTURE_DRAG</code></span></p></td>
105
<td><p><a name="GRIP-GESTURE-PINCH:CAPS"></a><span class="term"><code class="literal">GRIP_GESTURE_PINCH</code></span></p></td>
106
<td>a pinch/expand gesture
110
<td><p><a name="GRIP-GESTURE-ROTATE:CAPS"></a><span class="term"><code class="literal">GRIP_GESTURE_ROTATE</code></span></p></td>
115
<td><p><a name="GRIP-GESTURE-TAP:CAPS"></a><span class="term"><code class="literal">GRIP_GESTURE_TAP</code></span></p></td>
123
<div class="refsect2">
124
<a name="GripDeviceType"></a><h3>enum GripDeviceType</h3>
125
<pre class="programlisting">typedef enum {
126
GRIP_DEVICE_TOUCHSCREEN = 1,
127
GRIP_DEVICE_TOUCHPAD = 2,
128
GRIP_DEVICE_INDEPENDENT = 4,
132
Describes certain properties of a gesture input device.
134
<div class="variablelist"><table border="0">
135
<col align="left" valign="top">
138
<td><p><a name="GRIP-DEVICE-TOUCHSCREEN:CAPS"></a><span class="term"><code class="literal">GRIP_DEVICE_TOUCHSCREEN</code></span></p></td>
139
<td>device is a touchscreen.
143
<td><p><a name="GRIP-DEVICE-TOUCHPAD:CAPS"></a><span class="term"><code class="literal">GRIP_DEVICE_TOUCHPAD</code></span></p></td>
144
<td>device is a touchpad
148
<td><p><a name="GRIP-DEVICE-INDEPENDENT:CAPS"></a><span class="term"><code class="literal">GRIP_DEVICE_INDEPENDENT</code></span></p></td>
149
<td>device is a Magic Mouse
156
<div class="refsect2">
157
<a name="GRIP-DEVICE-ALL:CAPS"></a><h3>GRIP_DEVICE_ALL</h3>
158
<pre class="programlisting">#define GRIP_DEVICE_ALL (GRIP_DEVICE_TOUCHSCREEN | GRIP_DEVICE_TOUCHPAD | GRIP_DEVICE_INDEPENDENT)
164
<div class="refsect2">
165
<a name="GripTimeType"></a><h3>enum GripTimeType</h3>
166
<pre class="programlisting">typedef enum {
173
Indicates the part of the gesture stream ocuuring during the gesture event.
175
<div class="variablelist"><table border="0">
176
<col align="left" valign="top">
179
<td><p><a name="GRIP-TIME-START:CAPS"></a><span class="term"><code class="literal">GRIP_TIME_START</code></span></p></td>
180
<td>a new gesture is starting
184
<td><p><a name="GRIP-TIME-UPDATE:CAPS"></a><span class="term"><code class="literal">GRIP_TIME_UPDATE</code></span></p></td>
185
<td>an existing gesture is updating
189
<td><p><a name="GRIP-TIME-END:CAPS"></a><span class="term"><code class="literal">GRIP_TIME_END</code></span></p></td>
190
<td>a gesture is ending
197
<div class="refsect2">
198
<a name="GripGestureEvent"></a><h3>union GripGestureEvent</h3>
199
<pre class="programlisting">union _GripGestureEvent
201
GripGestureType type;
202
GripEventGestureAny any;
203
GripEventGestureDrag drag;
204
GripEventGesturePinch pinch;
205
GripEventGestureRotate rotate;
206
GripEventGestureTap tap;
210
This is a boxed type.
212
<div class="variablelist"><table border="0">
213
<col align="left" valign="top">
216
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> <em class="structfield"><code><a name="GripGestureEvent.type"></a>type</code></em>;</span></p></td>
217
<td>the <a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a>, selects the variant record</td>
220
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripEventGestureAny" title="struct GripEventGestureAny"><span class="type">GripEventGestureAny</span></a> <em class="structfield"><code><a name="GripGestureEvent.any"></a>any</code></em>;</span></p></td>
224
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripEventGestureDrag" title="struct GripEventGestureDrag"><span class="type">GripEventGestureDrag</span></a> <em class="structfield"><code><a name="GripGestureEvent.drag"></a>drag</code></em>;</span></p></td>
225
<td>the event contains a drag gesture record</td>
228
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripEventGesturePinch" title="struct GripEventGesturePinch"><span class="type">GripEventGesturePinch</span></a> <em class="structfield"><code><a name="GripGestureEvent.pinch"></a>pinch</code></em>;</span></p></td>
229
<td>the event contains a pinch gesture record</td>
232
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripEventGestureRotate" title="struct GripEventGestureRotate"><span class="type">GripEventGestureRotate</span></a> <em class="structfield"><code><a name="GripGestureEvent.rotate"></a>rotate</code></em>;</span></p></td>
233
<td>the event contains a rotate gesture record</td>
236
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripEventGestureTap" title="struct GripEventGestureTap"><span class="type">GripEventGestureTap</span></a> <em class="structfield"><code><a name="GripGestureEvent.tap"></a>tap</code></em>;</span></p></td>
237
<td>the event contains a tap gesture record</td>
243
<div class="refsect2">
244
<a name="GripEventGestureAny"></a><h3>struct GripEventGestureAny</h3>
245
<pre class="programlisting">struct GripEventGestureAny {
251
This struct is not used.
255
<div class="refsect2">
256
<a name="GripEventGestureDrag"></a><h3>struct GripEventGestureDrag</h3>
257
<pre class="programlisting">struct GripEventGestureDrag {
258
GripGestureType type;
273
GripInputDevice *input_device;
277
Data associated with a drag event. A drag is a lateral motion.
279
<div class="variablelist"><table border="0">
280
<col align="left" valign="top">
283
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.type"></a>type</code></em>;</span></p></td>
284
<td>the <a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> of the gesture</td>
287
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.id"></a>id</code></em>;</span></p></td>
288
<td>identifies the gesture</td>
291
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureDrag.window"></a>window</code></em>;</span></p></td>
292
<td>the <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in which the gesture occurred</td>
295
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureDrag.root"></a>root</code></em>;</span></p></td>
296
<td>the root <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
300
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureDrag.child"></a>child</code></em>;</span></p></td>
301
<td>the child <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
305
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.timestamp"></a>timestamp</code></em>;</span></p></td>
306
<td>the time the gesture event occurred</td>
309
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.fingers"></a>fingers</code></em>;</span></p></td>
310
<td>the number of touches making up the gesture</td>
313
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.focus-x"></a>focus_x</code></em>;</span></p></td>
314
<td>the X coordinate of the focus point of the gesture start</td>
317
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.focus-y"></a>focus_y</code></em>;</span></p></td>
318
<td>the Y coordinate of the focus point of the gesture start</td>
321
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.delta-x"></a>delta_x</code></em>;</span></p></td>
322
<td>the change in the X coordinate since the last gesture event</td>
325
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.delta-y"></a>delta_y</code></em>;</span></p></td>
326
<td>the change in the Y coordinate since the last gesture event</td>
329
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.velocity-x"></a>velocity_x</code></em>;</span></p></td>
330
<td>the rate of change of the X coordinate</td>
333
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.velocity-y"></a>velocity_y</code></em>;</span></p></td>
334
<td>the rate of change of the Y coordinate</td>
337
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.position-x"></a>position_x</code></em>;</span></p></td>
338
<td>the current X coordinate of the centroid poistion of the touches</td>
341
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureDrag.position-y"></a>position_y</code></em>;</span></p></td>
342
<td>the current Y coordinate of the centroid poistion of the touches</td>
345
<td><p><span class="term"><a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> *<em class="structfield"><code><a name="GripEventGestureDrag.input-device"></a>input_device</code></em>;</span></p></td>
346
<td>the <a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> used to make the gesture</td>
352
<div class="refsect2">
353
<a name="GripEventGesturePinch"></a><h3>struct GripEventGesturePinch</h3>
354
<pre class="programlisting">struct GripEventGesturePinch {
355
GripGestureType type;
364
gdouble radius_delta;
365
gdouble radial_velocity;
369
GripInputDevice *input_device;
373
Data associated with a pinch event. A pinch is an expand or contract motion.
375
<div class="variablelist"><table border="0">
376
<col align="left" valign="top">
379
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.type"></a>type</code></em>;</span></p></td>
380
<td>the <a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> of the gesture</td>
383
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.id"></a>id</code></em>;</span></p></td>
384
<td>identifies the gesture</td>
387
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGesturePinch.window"></a>window</code></em>;</span></p></td>
388
<td>the <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in which the gesture occurred</td>
391
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGesturePinch.root"></a>root</code></em>;</span></p></td>
392
<td>the root <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
396
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGesturePinch.child"></a>child</code></em>;</span></p></td>
397
<td>the child <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
401
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.timestamp"></a>timestamp</code></em>;</span></p></td>
402
<td>the time the gesture event occurred</td>
405
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.fingers"></a>fingers</code></em>;</span></p></td>
406
<td>the number of touches making up the gesture</td>
409
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.focus-x"></a>focus_x</code></em>;</span></p></td>
410
<td>the X coordinate of the focus point of the gesture start</td>
413
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.focus-y"></a>focus_y</code></em>;</span></p></td>
414
<td>the Y coordinate of the focus point of the gesture start</td>
417
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.radius-delta"></a>radius_delta</code></em>;</span></p></td>
418
<td>the change in the radius (in screen coordinates)</td>
421
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.radial-velocity"></a>radial_velocity</code></em>;</span></p></td>
422
<td>the rate of change of the radius</td>
425
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.radius"></a>radius</code></em>;</span></p></td>
426
<td>the current radius (in screen coordinates)</td>
429
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.position-x"></a>position_x</code></em>;</span></p></td>
430
<td>the current X coordinate of the centroid poistion of the touches</td>
433
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGesturePinch.position-y"></a>position_y</code></em>;</span></p></td>
434
<td>the current Y coordinate of the centroid poistion of the touches</td>
437
<td><p><span class="term"><a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> *<em class="structfield"><code><a name="GripEventGesturePinch.input-device"></a>input_device</code></em>;</span></p></td>
438
<td>the <a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> used to make the gesture</td>
444
<div class="refsect2">
445
<a name="GripEventGestureRotate"></a><h3>struct GripEventGestureRotate</h3>
446
<pre class="programlisting">struct GripEventGestureRotate {
447
GripGestureType type;
457
gdouble angular_velocity;
461
GripInputDevice *input_device;
465
Data associated with a rotate gesture event.
467
<div class="variablelist"><table border="0">
468
<col align="left" valign="top">
471
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.type"></a>type</code></em>;</span></p></td>
472
<td>the <a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> of the gesture</td>
475
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.id"></a>id</code></em>;</span></p></td>
476
<td>identifies the gesture</td>
479
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureRotate.window"></a>window</code></em>;</span></p></td>
480
<td>the <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in which the gesture occurred</td>
483
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureRotate.root"></a>root</code></em>;</span></p></td>
484
<td>the root <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
488
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureRotate.child"></a>child</code></em>;</span></p></td>
489
<td>the child <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
493
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.timestamp"></a>timestamp</code></em>;</span></p></td>
494
<td>the time the gesture event occurred</td>
497
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.fingers"></a>fingers</code></em>;</span></p></td>
498
<td>the number of touches making up the gesture</td>
501
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.focus-x"></a>focus_x</code></em>;</span></p></td>
502
<td>the X coordinate of the focus point of the gesture start</td>
505
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.focus-y"></a>focus_y</code></em>;</span></p></td>
506
<td>the Y coordinate of the focus point of the gesture start</td>
509
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.angle-delta"></a>angle_delta</code></em>;</span></p></td>
510
<td>the change in the rotation angle (in radians)</td>
513
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.angular-velocity"></a>angular_velocity</code></em>;</span></p></td>
514
<td>the rate of change in the rotation angle</td>
517
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.angle"></a>angle</code></em>;</span></p></td>
518
<td>the current rotation angle</td>
521
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.position-x"></a>position_x</code></em>;</span></p></td>
522
<td>the current X coordinate of the centroid poistion of the touches</td>
525
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureRotate.position-y"></a>position_y</code></em>;</span></p></td>
526
<td>the current Y coordinate of the centroid poistion of the touches</td>
529
<td><p><span class="term"><a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> *<em class="structfield"><code><a name="GripEventGestureRotate.input-device"></a>input_device</code></em>;</span></p></td>
530
<td>the <a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> used to make the gesture</td>
536
<div class="refsect2">
537
<a name="GripEventGestureTap"></a><h3>struct GripEventGestureTap</h3>
538
<pre class="programlisting">struct GripEventGestureTap {
539
GripGestureType type;
551
GripInputDevice *input_device;
555
Data associated with a tap gesture.
557
<div class="variablelist"><table border="0">
558
<col align="left" valign="top">
561
<td><p><span class="term"><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> <em class="structfield"><code><a name="GripEventGestureTap.type"></a>type</code></em>;</span></p></td>
562
<td>the <a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> of the gesture</td>
565
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGestureTap.id"></a>id</code></em>;</span></p></td>
566
<td>identifies the gesture</td>
569
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureTap.window"></a>window</code></em>;</span></p></td>
570
<td>the <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in which the gesture occurred</td>
573
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureTap.root"></a>root</code></em>;</span></p></td>
574
<td>the root <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
578
<td><p><span class="term"><a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *<em class="structfield"><code><a name="GripEventGestureTap.child"></a>child</code></em>;</span></p></td>
579
<td>the child <a href="http://library.gnome.org/devel/gdk3/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
583
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GripEventGestureTap.timestamp"></a>timestamp</code></em>;</span></p></td>
584
<td>the time the gesture event occurred</td>
587
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GripEventGestureTap.fingers"></a>fingers</code></em>;</span></p></td>
588
<td>the number of touches making up the gesture</td>
591
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GripEventGestureTap.tap-time"></a>tap_time</code></em>;</span></p></td>
592
<td>the duration of the tap</td>
595
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureTap.focus-x"></a>focus_x</code></em>;</span></p></td>
596
<td>the X coordinate of the focus point of the gesture start</td>
599
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureTap.focus-y"></a>focus_y</code></em>;</span></p></td>
600
<td>the Y coordinate of the focus point of the gesture start</td>
603
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureTap.position-x"></a>position_x</code></em>;</span></p></td>
604
<td>the current X coordinate of the centroid poistion of the touches</td>
607
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code><a name="GripEventGestureTap.position-y"></a>position_y</code></em>;</span></p></td>
608
<td>the current Y coordinate of the centroid poistion of the touches</td>
611
<td><p><span class="term"><a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> *<em class="structfield"><code><a name="GripEventGestureTap.input-device"></a>input_device</code></em>;</span></p></td>
612
<td>the <a class="link" href="libgrip-Input-Devices.html#GripInputDevice"><span class="type">GripInputDevice</span></a> used to make the gesture</td>
618
<div class="refsect2">
619
<a name="grip-gesture-event-new"></a><h3>grip_gesture_event_new ()</h3>
620
<pre class="programlisting"><a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="returnvalue">GripGestureEvent</span></a> * grip_gesture_event_new (<em class="parameter"><code><a class="link" href="libgrip-Gesture-Events.html#GripGestureType"><span class="type">GripGestureType</span></a> gesture_type</code></em>);</pre>
622
Creates a new Grip gesture event.
624
<div class="variablelist"><table border="0">
625
<col align="left" valign="top">
628
<td><p><span class="term"><em class="parameter"><code>gesture_type</code></em> :</span></p></td>
629
<td>the type of the gesture</td>
632
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
633
<td>a new <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a>
640
<div class="refsect2">
641
<a name="grip-gesture-event-free"></a><h3>grip_gesture_event_free ()</h3>
642
<pre class="programlisting"><span class="returnvalue">void</span> grip_gesture_event_free (<em class="parameter"><code><a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a> *event</code></em>);</pre>
644
Frees the resources allocated for a <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a>.
646
<div class="variablelist"><table border="0">
647
<col align="left" valign="top">
649
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
650
<td>a <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a>
656
<div class="refsect2">
657
<a name="grip-gesture-event-copy"></a><h3>grip_gesture_event_copy ()</h3>
658
<pre class="programlisting"><a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="returnvalue">GripGestureEvent</span></a> * grip_gesture_event_copy (<em class="parameter"><code>const <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a> *event</code></em>);</pre>
660
Creates a new <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a> instance using a deep copy of and existing
663
<div class="variablelist"><table border="0">
664
<col align="left" valign="top">
667
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
668
<td>an existing <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a>
672
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
673
<td>a new <a class="link" href="libgrip-Gesture-Events.html#GripGestureEvent"><span class="type">GripGestureEvent</span></a>
683
Generated by GTK-Doc V1.17</div>
b'\\ No newline at end of file'