/usr/share/gtk-doc/html/pygtk/class-gdkdevice.html is in python-gtk2-doc 2.24.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.Device</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="class-gdkcursor.html" title="gtk.gdk.Cursor"><link rel="next" href="class-gdkdisplay.html" title="gtk.gdk.Display"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.gdk.Device</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkcursor.html">Prev</a> </td><th width="60%" align="center">The gtk.gdk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gdkdisplay.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.gdk.Device"><a name="class-gdkdevice"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Device</h2><p>gtk.gdk.Device — an object for supporting input devices</p></div><div class="refsect1" title="Synopsis"><a name="id3044636"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Device</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--set-source" title="gtk.gdk.Device.set_source">set_source</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--set-mode" title="gtk.gdk.Device.set_mode">set_mode</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mode</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--set-key" title="gtk.gdk.Device.set_key">set_key</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--set-axis-use" title="gtk.gdk.Device.set_axis_use">set_axis_use</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--get-state" title="gtk.gdk.Device.get_state">get_state</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--get-history" title="gtk.gdk.Device.get_history">get_history</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>start</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stop</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#method-gdkdevice--get-axis" title="gtk.gdk.Device.get_axis">get_axis</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>axes</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#function-gdk--devices-list" title="gtk.gdk.devices_list">gtk.gdk.devices_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkdevice.html#function-gdk--device-get-core-pointer" title="gtk.gdk.device_get_core_pointer">gtk.gdk.device_get_core_pointer</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id2893657"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gdkdevice.html" title="gtk.gdk.Device">gtk.gdk.Device</a>
</pre></div><div class="refsect1" title="Attributes"><a name="id2905759"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"axes"</td><td valign="top">Read</td><td valign="top">a tuple containing axes information. Each axes is
described by a tuple containing: use information (one of:
<code class="literal">gtk.gdk.AXIS_IGNORE</code>, <code class="literal">gtk.gdk.AXIS_X</code>,
<code class="literal">gtk.gdk.AXIS_Y</code>, <code class="literal">gtk.gdk.AXIS_PRESSURE</code>,
<code class="literal">gtk.gdk.AXIS_XTILT</code>,
<code class="literal">gtk.gdk.AXIS_YTILT</code>,
<code class="literal">gtk.gdk.AXIS_WHEEL</code>,
<code class="literal">gtk.gdk.AXIS_LAST</code>), the minimum and maximum axes
values.</td></tr><tr valign="top"><td valign="top">"has_cursor"</td><td valign="top">Read</td><td valign="top">if <code class="literal">True</code> the pointer follows device
motion.</td></tr><tr valign="top"><td valign="top">"keys"</td><td valign="top">Read</td><td valign="top">a tuple describing the mapped macro buttons. Each macro
button is described by a tuple containing: a key value output when the macro
button is pressed and a set of modifiers output with the key value.</td></tr><tr valign="top"><td valign="top">"mode"</td><td valign="top">Read</td><td valign="top">the mode of this device - one of:
<code class="literal">gtk.gdk.MODE_DISABLED</code>,
<code class="literal">gtk.gdk.MODE_SCREEN</code>,
<code class="literal">gtk.gdk.MODE_WINDOW</code></td></tr><tr valign="top"><td valign="top">"name"</td><td valign="top">Read</td><td valign="top">the name of this device.</td></tr><tr valign="top"><td valign="top">"num_axes"</td><td valign="top">Read</td><td valign="top">the length of the <code class="literal">axes</code>
tuple.</td></tr><tr valign="top"><td valign="top">"num_keys"</td><td valign="top">Read</td><td valign="top">the length of the <code class="literal">keys</code> tuple</td></tr><tr valign="top"><td valign="top">"source"</td><td valign="top">Read</td><td valign="top">the type of this device - one of:
<code class="literal">gtk.gdk.SOURCE_MOUSE</code>,
<code class="literal">gtk.gdk.SOURCE_PEN</code>,
<code class="literal">gtk.gdk.SOURCE_ERASER</code>,
<code class="literal">gtk.gdk.SOURCE_CURSOR</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="id3012203"></a><h2>Description</h2><p>In addition to the normal keyboard and mouse input devices,
<code class="literal">PyGTK</code> also contains support for extended input devices.
In particular, this support is targeted at graphics tablets. Graphics
tablets typically return sub-pixel positioning information and possibly
information about the pressure and tilt of the stylus. Under X, the support
for extended devices is done through the XInput extension. Because handling
extended input devices may involve considerable overhead, they need to be
turned on for each <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
individually using <a class="link" href="class-gdkwindow.html#method-gdkwindow--input-set-extension-events" title="gtk.gdk.Window.input_set_extension_events"><code class="methodname">gtk.gdk.Window.input_set_extension_events</code>()</a>.
(Or, more typically, for <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> objects,
using the <a class="link" href="class-gtkwidget.html#method-gtkwidget--set-extension-events" title="gtk.Widget.set_extension_events"><code class="methodname">gtk.Widget.set_extension_events</code>()</a>
method). As an additional complication, depending on the support from the
windowing system, its possible that a normal mouse cursor will not be
displayed for a particular extension device. If an application does not want
to deal with displaying a cursor itself, it can ask only to get extension
events from devices that will display a cursor, by passing the
<code class="literal">gtk.gdk.EXTENSION_EVENTS_CURSOR</code> value to the <a class="link" href="class-gdkwindow.html#method-gdkwindow--input-set-extension-events" title="gtk.gdk.Window.input_set_extension_events"><code class="methodname">gtk.gdk.Window.input_set_extension_events</code>()</a>
method. Otherwise, the application must retrieve the device information
using the <a class="link" href="class-gdkdevice.html#function-gdk--devices-list" title="gtk.gdk.devices_list"><code class="methodname">gtk.gdk.devices_list</code>()</a>
function, check the has_cursor field, and, if it is
<code class="literal">False</code>, draw a cursor itself when it receives motion
events. </p><p>Each pointing device is assigned a unique integer ID; events from
a particular device can be identified by the <em class="parameter"><code>deviceid</code></em>
attribute in the event structure. The events generated by pointer devices
have also been extended to contain <em class="parameter"><code>pressure</code></em>,
<em class="parameter"><code>xtilt</code></em> and <em class="parameter"><code>ytilt</code></em> attributes
which contain the extended information reported as additional valuators from
the device. The <em class="parameter"><code>pressure</code></em> attribute ranges from 0.0 to
1.0, while the tilt attributes range from -1.0 to 1.0. (With -1.0
representing the maximum tilt to the left or up, and 1.0 representing the
maximum tilt to the right or down.) One additional attribute in each event
is the <em class="parameter"><code>source</code></em> attribute, which contains an
enumeration value describing the type of device; this currently can be one
of <code class="literal">gtk.gdk.SOURCE_MOUSE</code>,
<code class="literal">gtk.gdk.SOURCE_PEN</code>,
<code class="literal">gtk.gdk.SOURCE_ERASER</code>, or
<code class="literal">gtk.gdk.SOURCE_CURSOR</code>. This attribute is present to allow
simple applications to (for instance) delete when they detect eraser devices
without having to keep track of complicated per-device settings.</p><p>Various aspects of each device may be configured. The easiest way
of creating a GUI to allow the user to configure such a device is to use the
<a class="link" href="class-gtkinputdialog.html" title="gtk.InputDialog"><code class="classname">gtk.InputDialog</code></a>
widget in <code class="literal">PyGTK</code>. However, even when using this widget,
application writers will need to directly query and set the configuration
parameters in order to save the state between invocations of the
application. The configuration of devices is queried using the <a class="link" href="class-gdkdevice.html#function-gdk--devices-list" title="gtk.gdk.devices_list"><code class="methodname">gtk.gdk.devices_list</code>()</a>
function. Each device must be activated using the <a class="link" href="class-gdkdevice.html#method-gdkdevice--set-mode" title="gtk.gdk.Device.set_mode"><code class="methodname">set_mode</code>()</a>
method, which also controls whether the device's range is mapped to the
entire screen or to a single window. The mapping of the valuators of the
device onto the predefined valuator types is set using the <a class="link" href="class-gdkdevice.html#method-gdkdevice--set-axis-use" title="gtk.gdk.Device.set_axis_use"><code class="methodname">set_axis_use</code>()</a>
method. And the source type for each device can be set with the <a class="link" href="class-gdkdevice.html#method-gdkdevice--set-source" title="gtk.gdk.Device.set_source"><code class="methodname">set_source</code>()</a>
method.</p><p>Devices may also have associated keys or macro buttons. Such keys
can be globally set to map into normal X keyboard events. The mapping is set
using the <a class="link" href="class-gdkdevice.html#method-gdkdevice--set-key" title="gtk.gdk.Device.set_key"><code class="methodname">set_key</code>()</a>
method. The interfaces in this section will most likely be considerably
modified in the future to accommodate devices that may have different sets of
additional valuators than the pressure xtilt and ytilt.</p></div><div class="refsect1" title="Methods"><a name="id2963869"></a><h2>Methods</h2><div class="refsect2" title="gtk.gdk.Device.set_source"><a name="method-gdkdevice--set-source"></a><h3>gtk.gdk.Device.set_source</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_source</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>source</code></strong> :</span></p></td><td>the source type of the
device</td></tr></tbody></table><p>The <code class="methodname">set_source</code>() method sets the source
type for the input device to the value specified by
<em class="parameter"><code>source</code></em>. The value of <em class="parameter"><code>source</code></em>
must be one of:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.gdk.SOURCE_MOUSE</code></span></p></td><td>the device is a mouse. (This will be reported for the
core pointer, even if it is something else, such as a trackball.)</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.SOURCE_PEN</code></span></p></td><td>the device is a stylus of a graphics tablet or similar
device.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.SOURCE_ERASER</code></span></p></td><td>the device is an eraser. Typically, this would be the
other end of a stylus on a graphics tablet.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.SOURCE_CURSOR</code></span></p></td><td>the device is a graphics tablet "puck" or similar
device.</td></tr></tbody></table><p></p></div><div class="refsect2" title="gtk.gdk.Device.set_mode"><a name="method-gdkdevice--set-mode"></a><h3>gtk.gdk.Device.set_mode</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_mode</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mode</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>mode</code></strong> :</span></p></td><td>the input mode</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the mode was
successfully changed.</td></tr></tbody></table><p>The <code class="methodname">set_mode</code>() method sets the input
device mode to the value specified by <em class="parameter"><code>mode</code></em>. The value
of <em class="parameter"><code>mode</code></em> must be one of:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.gdk.MODE_DISABLED</code></span></p></td><td>the device is disabled and will not report any
events.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.MODE_SCREEN</code></span></p></td><td>the device is enabled. The device's coordinate space
maps to the entire screen.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.MODE_WINDOW</code></span></p></td><td>the device is enabled. The device's coordinate space is
mapped to a single window. The manner in which this window is chosen is
undefined, but it will typically be the same way in which the focus window
for key events is determined.</td></tr></tbody></table><p></p></div><div class="refsect2" title="gtk.gdk.Device.set_key"><a name="method-gdkdevice--set-key"></a><h3>gtk.gdk.Device.set_key</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_key</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>index</code></strong> :</span></p></td><td>the index of the macro button to
set.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>keyval</code></strong> :</span></p></td><td>the key value to generate.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>modifiers</code></strong> :</span></p></td><td>the modifiers to set.</td></tr></tbody></table><p>The <code class="methodname">set_key</code>() method sets the key event
to generate when a macro button of a device is pressed. The macro button is
specified by <em class="parameter"><code>index</code></em>. The key value and modifiers
generated are specified by <em class="parameter"><code>keyval</code></em> and
<em class="parameter"><code>modifiers</code></em> respectively.</p></div><div class="refsect2" title="gtk.gdk.Device.set_axis_use"><a name="method-gdkdevice--set-axis-use"></a><h3>gtk.gdk.Device.set_axis_use</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_axis_use</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>index</code></strong> :</span></p></td><td>the index of the axis.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>use</code></strong> :</span></p></td><td>how the axis is used.</td></tr></tbody></table><p>The <code class="methodname">set_axis_use</code>() method sets the axis
(specified by <em class="parameter"><code>index</code></em>) of the input device to be used
in the fashion specified by <em class="parameter"><code>use</code></em>. The value of
<em class="parameter"><code>use</code></em> must be one of:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_IGNORE</code></span></p></td><td>the axis is ignored.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_X</code></span></p></td><td>the axis is used as the x axis.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_Y</code></span></p></td><td>the axis is used as the y axis.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_PRESSURE</code></span></p></td><td>the axis is used for pressure information.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_XTILT</code></span></p></td><td>the axis is used for x tilt information.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_YTILT</code></span></p></td><td>the axis is used for y tilt information.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_WHEEL</code></span></p></td><td>the axis is used for wheel information.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.AXIS_LAST</code></span></p></td><td>a constant equal to the numerically highest axis
value.</td></tr></tbody></table><p></p></div><div class="refsect2" title="gtk.gdk.Device.get_state"><a name="method-gdkdevice--get-state"></a><h3>gtk.gdk.Device.get_state</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_state</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing: a tuple containing the axes
data; and, the modifiers in effect.</td></tr></tbody></table><p>The <code class="methodname">get_state</code>() method returns a tuple
containing:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">a tuple containing the axes data</li><li class="listitem">the bitmask containing the set of key modifiers in
effect</li></ul></div><p>The state information is relative to the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
specified by <em class="parameter"><code>window</code></em>.</p></div><div class="refsect2" title="gtk.gdk.Device.get_history"><a name="method-gdkdevice--get-history"></a><h3>gtk.gdk.Device.get_history</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_history</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>start</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stop</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>start</code></strong> :</span></p></td><td>the earliest event time
limit</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>stop</code></strong> :</span></p></td><td>the latest event time
limit</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing event tuples each with axes
data and a timestamp</td></tr></tbody></table><p>The <code class="methodname">get_history</code>() method returns a
tuple containing the motion history for the device with respect to the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
specified by window between the time limits specified by
<em class="parameter"><code>start</code></em> and <em class="parameter"><code>stop</code></em>. The motion
history is a tuple containing event motion tuples that each contain a
timestamp for the event and a tuple with the axes data for the event.</p></div><div class="refsect2" title="gtk.gdk.Device.get_axis"><a name="method-gdkdevice--get-axis"></a><h3>gtk.gdk.Device.get_axis</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_axis</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>axes</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>axes</code></strong> :</span></p></td><td>a sequence of axes values</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>use</code></strong> :</span></p></td><td>the axis use to match</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the axis value from <em class="parameter"><code>axes</code></em>
that matches the use type or <code class="literal">None</code> if there is no
match.</td></tr></tbody></table><p>The <code class="methodname">get_axis</code>() method returns the value
in <em class="parameter"><code>axes</code></em> whose axis matches the specified
<em class="parameter"><code>use</code></em>.</p></div></div><div class="refsect1" title="Functions"><a name="id2896708"></a><h2>Functions</h2><div class="refsect2" title="gtk.gdk.devices_list"><a name="function-gdk--devices-list"></a><h3>gtk.gdk.devices_list</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.gdk.devices_list</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list containing the <a class="link" href="class-gdkdevice.html" title="gtk.gdk.Device"><code class="classname">gtk.gdk.Device</code></a>
objects for the default display</td></tr></tbody></table><p>The <code class="function">gtk.gdk.devices_list</code>() function returns
a list containing the <a class="link" href="class-gdkdevice.html" title="gtk.gdk.Device"><code class="classname">gtk.gdk.Device</code></a>
objects fro the default display.</p></div><div class="refsect2" title="gtk.gdk.device_get_core_pointer"><a name="function-gdk--device-get-core-pointer"></a><h3>gtk.gdk.device_get_core_pointer</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.gdk.device_get_core_pointer</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the </td></tr></tbody></table><p>The <code class="function">gtk.gdk.device_get_core_pointer</code>()
function returns the device that is used as the core pointer.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gdkcursor.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gdk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gdkdisplay.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.gdk.Cursor </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.gdk.Display</td></tr></table></div></body></html>
|