1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>gtkmm: Gdk::Device Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.3 -->
13
<table cellspacing="0" cellpadding="0">
15
<tr style="height: 56px;">
16
<td style="padding-left: 0.5em;">
17
<div id="projectname">gtkmm <span id="projectnumber">2.24.2</span></div>
23
<div id="navrow1" class="tabs">
25
<li><a href="index.html"><span>Main Page</span></a></li>
26
<li><a href="pages.html"><span>Related Pages</span></a></li>
27
<li><a href="modules.html"><span>Modules</span></a></li>
28
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
29
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
32
<div id="navrow2" class="tabs2">
34
<li><a href="annotated.html"><span>Class List</span></a></li>
35
<li><a href="classes.html"><span>Class Index</span></a></li>
36
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
37
<li><a href="functions.html"><span>Class Members</span></a></li>
40
<div id="nav-path" class="navpath">
42
<li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a> </li>
43
<li class="navelem"><a class="el" href="classGdk_1_1Device.html">Device</a> </li>
49
<a href="#pub-methods">Public Member Functions</a> |
50
<a href="#pro-methods">Protected Member Functions</a> |
51
<a href="#related">Related Functions</a> </div>
52
<div class="headertitle">
53
<h1>Gdk::Device Class Reference</h1> </div>
55
<div class="contents">
56
<!-- doxytag: class="Gdk::Device" --><!-- doxytag: inherits="Glib::Object" -->
57
<p>A <a class="el" href="classGdk_1_1Device.html" title="A Gdk::Device instance contains a detailed description of an extended input device.">Gdk::Device</a> instance contains a detailed description of an extended input device. <a href="#_details">More...</a></p>
58
<div class="dynheader">
59
Inheritance diagram for Gdk::Device:</div>
60
<div class="dyncontent">
61
<div class="center"><img src="classGdk_1_1Device__inherit__graph.png" border="0" usemap="#Gdk_1_1Device_inherit__map" alt="Inheritance graph"/></div>
62
<map name="Gdk_1_1Device_inherit__map" id="Gdk_1_1Device_inherit__map">
63
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/></map>
64
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
65
<div class="dynheader">
66
Collaboration diagram for Gdk::Device:</div>
67
<div class="dyncontent">
68
<div class="center"><img src="classGdk_1_1Device__coll__graph.png" border="0" usemap="#Gdk_1_1Device_coll__map" alt="Collaboration graph"/></div>
69
<map name="Gdk_1_1Device_coll__map" id="Gdk_1_1Device_coll__map">
70
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/></map>
71
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
73
<p><a href="classGdk_1_1Device-members.html">List of all members.</a></p>
74
<table class="memberdecls">
75
<tr><td colspan="2"><h2><a name="pub-methods"></a>
76
Public Member Functions</h2></td></tr>
77
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa1d6c1a1ce5d1602f7ec6e55410533bc">~Device</a> ()</td></tr>
78
<tr><td class="memItemLeft" align="right" valign="top">GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aeb0115eb479ffaa6f01314d5b09a84be">gobj</a> ()</td></tr>
79
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aeb0115eb479ffaa6f01314d5b09a84be"></a><br/></td></tr>
80
<tr><td class="memItemLeft" align="right" valign="top">const GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3dcdc49a6707720f128de8377beb227c">gobj</a> () const </td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a3dcdc49a6707720f128de8377beb227c"></a><br/></td></tr>
82
<tr><td class="memItemLeft" align="right" valign="top">GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad72b1db0d0407e69c976829bf1e7c620">gobj_copy</a> ()</td></tr>
83
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ad72b1db0d0407e69c976829bf1e7c620"></a><br/></td></tr>
84
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ab8cf3039809f9092d6732eb5f423c994">set_source</a> (<a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> source)</td></tr>
85
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a515ec77f056db9706a661f47eae1f9f7">set_mode</a> (<a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> mode)</td></tr>
86
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a5d2a9da74b62dee242b4ba2ec2dc34c0">get_key</a> (guint index_, guint& keyval, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& modifiers) const </td></tr>
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">If <em>index</em> has a valid keyval, this function will fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings. <a href="#a5d2a9da74b62dee242b4ba2ec2dc34c0"></a><br/></td></tr>
88
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ac8722bcabab37d383ae6b943e0450b3a">set_key</a> (guint index_, guint keyval, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a> modifiers)</td></tr>
89
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a286833e6f10b358370de9bb12e1a8918">get_axis_use</a> (guint index_) const </td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the axis use for <em>index</em>. <a href="#a286833e6f10b358370de9bb12e1a8918"></a><br/></td></tr>
91
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a550a8adf7e877ce7e0e4ae037a00b0fd">set_axis_use</a> (guint index_, <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> use)</td></tr>
92
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#abfd2a2ba80433a8134a6c17d72026ac1">get_state</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& window, double& axes, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& mask)</td></tr>
93
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the current state of a device. <a href="#abfd2a2ba80433a8134a6c17d72026ac1"></a><br/></td></tr>
94
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a9954bed87cf7ac4719bcd80e3d740903">get_history</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& window, guint32 <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01568.html#gac03aae90e55ed30894f1868b3e9accce">start</a>, guint32 stop, GdkTimeCoord**& events, int& n_events)</td></tr>
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. <a href="#a9954bed87cf7ac4719bcd80e3d740903"></a><br/></td></tr>
96
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a11368d857869b4a88e2d83704022672a">get_axis</a> (double& axes, <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> use, double&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01580.html#ga1c9e781d8d15a3814a601f471797c825">value</a>) const </td></tr>
97
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interprets an array of double as axis values for a given device, and locates the value in the array for a given axis use. <a href="#a11368d857869b4a88e2d83704022672a"></a><br/></td></tr>
98
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a455127cf1e0e98998c040b564e880932">get_name</a> () const </td></tr>
99
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the name of the device. <a href="#a455127cf1e0e98998c040b564e880932"></a><br/></td></tr>
100
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adccad74810fe8576e56ae1295b4437fb">get_source</a> () const </td></tr>
101
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the type of the device. <a href="#adccad74810fe8576e56ae1295b4437fb"></a><br/></td></tr>
102
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad898f2090360b7195e887542ca1e834b">get_mode</a> () const </td></tr>
103
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the mode of the device. <a href="#ad898f2090360b7195e887542ca1e834b"></a><br/></td></tr>
104
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adc29df9a1ab4edc6976d3ca74dd55b9f">get_has_cursor</a> () const </td></tr>
105
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the pointer follows device motion. <a href="#adc29df9a1ab4edc6976d3ca74dd55b9f"></a><br/></td></tr>
106
<tr><td class="memItemLeft" align="right" valign="top">gint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3db6376578da7c2c9e7f4e054f186ea7">get_n_axes</a> () const </td></tr>
107
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of axes of a device. <a href="#a3db6376578da7c2c9e7f4e054f186ea7"></a><br/></td></tr>
108
<tr><td colspan="2"><h2><a name="pro-methods"></a>
109
Protected Member Functions</h2></td></tr>
110
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a7b7cf9284ccf9d2bbc061205446b5f40">Device</a> ()</td></tr>
111
<tr><td colspan="2"><h2><a name="related"></a>
112
Related Functions</h2></td></tr>
113
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
114
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a8a6b8086fe4968ffed6f58f055a238c1">wrap</a> (GdkDevice* object, bool take_copy=false)</td></tr>
115
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a8a6b8086fe4968ffed6f58f055a238c1"></a><br/></td></tr>
117
<hr/><a name="_details"></a><h2>Detailed Description</h2>
118
<div class="textblock"><p>A <a class="el" href="classGdk_1_1Device.html" title="A Gdk::Device instance contains a detailed description of an extended input device.">Gdk::Device</a> instance contains a detailed description of an extended input device. </p>
119
</div><hr/><h2>Constructor & Destructor Documentation</h2>
120
<a class="anchor" id="aa1d6c1a1ce5d1602f7ec6e55410533bc"></a><!-- doxytag: member="Gdk::Device::~Device" ref="aa1d6c1a1ce5d1602f7ec6e55410533bc" args="()" -->
121
<div class="memitem">
122
<div class="memproto">
123
<table class="memname">
125
<td class="memname">virtual Gdk::Device::~Device </td>
127
<td class="paramname"></td><td>)</td>
128
<td><code> [virtual]</code></td>
136
<a class="anchor" id="a7b7cf9284ccf9d2bbc061205446b5f40"></a><!-- doxytag: member="Gdk::Device::Device" ref="a7b7cf9284ccf9d2bbc061205446b5f40" args="()" -->
137
<div class="memitem">
138
<div class="memproto">
139
<table class="memname">
141
<td class="memname">Gdk::Device::Device </td>
143
<td class="paramname"></td><td>)</td>
144
<td><code> [protected]</code></td>
152
<hr/><h2>Member Function Documentation</h2>
153
<a class="anchor" id="a11368d857869b4a88e2d83704022672a"></a><!-- doxytag: member="Gdk::Device::get_axis" ref="a11368d857869b4a88e2d83704022672a" args="(double &axes, AxisUse use, double &value) const " -->
154
<div class="memitem">
155
<div class="memproto">
156
<table class="memname">
158
<td class="memname">bool Gdk::Device::get_axis </td>
160
<td class="paramtype">double & </td>
161
<td class="paramname"><em>axes</em>, </td>
164
<td class="paramkey"></td>
166
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> </td>
167
<td class="paramname"><em>use</em>, </td>
170
<td class="paramkey"></td>
172
<td class="paramtype">double & </td>
173
<td class="paramname"><em>value</em> </td>
178
<td></td><td> const</td>
184
<p>Interprets an array of double as axis values for a given device, and locates the value in the array for a given axis use. </p>
185
<dl><dt><b>Parameters:</b></dt><dd>
186
<table class="params">
187
<tr><td class="paramname">axes</td><td>Pointer to an array of axes. </td></tr>
188
<tr><td class="paramname">use</td><td>The use to look for. </td></tr>
189
<tr><td class="paramname">value</td><td>Location to store the found value. </td></tr>
193
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the given axis use was found, otherwise <code>false</code>. </dd></dl>
197
<a class="anchor" id="a286833e6f10b358370de9bb12e1a8918"></a><!-- doxytag: member="Gdk::Device::get_axis_use" ref="a286833e6f10b358370de9bb12e1a8918" args="(guint index_) const " -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> Gdk::Device::get_axis_use </td>
204
<td class="paramtype">guint </td>
205
<td class="paramname"><em>index_</em></td><td>)</td>
212
<p>Returns the axis use for <em>index</em>. </p>
213
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000003">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
214
<dl><dt><b>Parameters:</b></dt><dd>
215
<table class="params">
216
<tr><td class="paramname">index</td><td>The index of the axis. </td></tr>
220
<dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::AxisUse specifying how the axis is used. </dd></dl>
224
<a class="anchor" id="adc29df9a1ab4edc6976d3ca74dd55b9f"></a><!-- doxytag: member="Gdk::Device::get_has_cursor" ref="adc29df9a1ab4edc6976d3ca74dd55b9f" args="() const " -->
225
<div class="memitem">
226
<div class="memproto">
227
<table class="memname">
229
<td class="memname">bool Gdk::Device::get_has_cursor </td>
231
<td class="paramname"></td><td>)</td>
238
<p>Determines whether the pointer follows device motion. </p>
239
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000007">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
240
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the pointer follows device motion. </dd></dl>
244
<a class="anchor" id="a9954bed87cf7ac4719bcd80e3d740903"></a><!-- doxytag: member="Gdk::Device::get_history" ref="a9954bed87cf7ac4719bcd80e3d740903" args="(const Glib::RefPtr< Window > &window, guint32 start, guint32 stop, GdkTimeCoord **&events, int &n_events)" -->
245
<div class="memitem">
246
<div class="memproto">
247
<table class="memname">
249
<td class="memname">bool Gdk::Device::get_history </td>
251
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& </td>
252
<td class="paramname"><em>window</em>, </td>
255
<td class="paramkey"></td>
257
<td class="paramtype">guint32 </td>
258
<td class="paramname"><em>start</em>, </td>
261
<td class="paramkey"></td>
263
<td class="paramtype">guint32 </td>
264
<td class="paramname"><em>stop</em>, </td>
267
<td class="paramkey"></td>
269
<td class="paramtype">GdkTimeCoord **& </td>
270
<td class="paramname"><em>events</em>, </td>
273
<td class="paramkey"></td>
275
<td class="paramtype">int & </td>
276
<td class="paramname"><em>n_events</em> </td>
287
<p>Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. </p>
288
<p>Some windowing systems do not support motion history, in which case, <code>false</code> will be returned. (This is not distinguishable from the case where motion history is supported and no events were found.) </p>
289
<dl><dt><b>Parameters:</b></dt><dd>
290
<table class="params">
291
<tr><td class="paramname">window</td><td>The window with respect to which which the event coordinates will be reported. </td></tr>
292
<tr><td class="paramname">start</td><td>Starting timestamp for range of events to return. </td></tr>
293
<tr><td class="paramname">stop</td><td>Ending timestamp for the range of events to return. </td></tr>
294
<tr><td class="paramname">events</td><td>Location to store a newly-allocated array of Gdk::TimeCoord, or <code>0</code>. </td></tr>
295
<tr><td class="paramname">n_events</td><td>Location to store the length of <em>events</em>, or <code>0</code>. </td></tr>
299
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the windowing system supports motion history and at least one event was found. </dd></dl>
303
<a class="anchor" id="a5d2a9da74b62dee242b4ba2ec2dc34c0"></a><!-- doxytag: member="Gdk::Device::get_key" ref="a5d2a9da74b62dee242b4ba2ec2dc34c0" args="(guint index_, guint &keyval, ModifierType &modifiers) const " -->
304
<div class="memitem">
305
<div class="memproto">
306
<table class="memname">
308
<td class="memname">void Gdk::Device::get_key </td>
310
<td class="paramtype">guint </td>
311
<td class="paramname"><em>index_</em>, </td>
314
<td class="paramkey"></td>
316
<td class="paramtype">guint & </td>
317
<td class="paramname"><em>keyval</em>, </td>
320
<td class="paramkey"></td>
322
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& </td>
323
<td class="paramname"><em>modifiers</em> </td>
328
<td></td><td> const</td>
334
<p>If <em>index</em> has a valid keyval, this function will fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings. </p>
335
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000002">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
336
<dl><dt><b>Parameters:</b></dt><dd>
337
<table class="params">
338
<tr><td class="paramname">index</td><td>The index of the macro button to get. </td></tr>
339
<tr><td class="paramname">keyval</td><td>Return value for the keyval. </td></tr>
340
<tr><td class="paramname">modifiers</td><td>Return value for modifiers. </td></tr>
347
<a class="anchor" id="ad898f2090360b7195e887542ca1e834b"></a><!-- doxytag: member="Gdk::Device::get_mode" ref="ad898f2090360b7195e887542ca1e834b" args="() const " -->
348
<div class="memitem">
349
<div class="memproto">
350
<table class="memname">
352
<td class="memname"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> Gdk::Device::get_mode </td>
354
<td class="paramname"></td><td>)</td>
361
<p>Determines the mode of the device. </p>
362
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000006">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
363
<dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::InputSource. </dd></dl>
367
<a class="anchor" id="a3db6376578da7c2c9e7f4e054f186ea7"></a><!-- doxytag: member="Gdk::Device::get_n_axes" ref="a3db6376578da7c2c9e7f4e054f186ea7" args="() const " -->
368
<div class="memitem">
369
<div class="memproto">
370
<table class="memname">
372
<td class="memname">gint Gdk::Device::get_n_axes </td>
374
<td class="paramname"></td><td>)</td>
381
<p>Gets the number of axes of a device. </p>
382
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000008">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
383
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of axes of <em>device</em>. </dd></dl>
387
<a class="anchor" id="a455127cf1e0e98998c040b564e880932"></a><!-- doxytag: member="Gdk::Device::get_name" ref="a455127cf1e0e98998c040b564e880932" args="() const " -->
388
<div class="memitem">
389
<div class="memproto">
390
<table class="memname">
392
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gdk::Device::get_name </td>
394
<td class="paramname"></td><td>)</td>
401
<p>Determines the name of the device. </p>
402
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000004">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
403
<dl class="return"><dt><b>Returns:</b></dt><dd>A name. </dd></dl>
407
<a class="anchor" id="adccad74810fe8576e56ae1295b4437fb"></a><!-- doxytag: member="Gdk::Device::get_source" ref="adccad74810fe8576e56ae1295b4437fb" args="() const " -->
408
<div class="memitem">
409
<div class="memproto">
410
<table class="memname">
412
<td class="memname"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> Gdk::Device::get_source </td>
414
<td class="paramname"></td><td>)</td>
421
<p>Determines the type of the device. </p>
422
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000005">Since gtkmm 2.22:</a></b></dt><dd></dd></dl>
423
<dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::InputSource. </dd></dl>
427
<a class="anchor" id="abfd2a2ba80433a8134a6c17d72026ac1"></a><!-- doxytag: member="Gdk::Device::get_state" ref="abfd2a2ba80433a8134a6c17d72026ac1" args="(const Glib::RefPtr< Window > &window, double &axes, ModifierType &mask)" -->
428
<div class="memitem">
429
<div class="memproto">
430
<table class="memname">
432
<td class="memname">void Gdk::Device::get_state </td>
434
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& </td>
435
<td class="paramname"><em>window</em>, </td>
438
<td class="paramkey"></td>
440
<td class="paramtype">double & </td>
441
<td class="paramname"><em>axes</em>, </td>
444
<td class="paramkey"></td>
446
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& </td>
447
<td class="paramname"><em>mask</em> </td>
458
<p>Gets the current state of a device. </p>
459
<dl><dt><b>Parameters:</b></dt><dd>
460
<table class="params">
461
<tr><td class="paramname">window</td><td>A <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen.">Gdk::Window</a>. </td></tr>
462
<tr><td class="paramname">axes</td><td>An array of doubles to store the values of the axes of <em>device</em> in, or <code>0</code>. </td></tr>
463
<tr><td class="paramname">mask</td><td>Location to store the modifiers, or <code>0</code>. </td></tr>
470
<a class="anchor" id="a3dcdc49a6707720f128de8377beb227c"></a><!-- doxytag: member="Gdk::Device::gobj" ref="a3dcdc49a6707720f128de8377beb227c" args="() const " -->
471
<div class="memitem">
472
<div class="memproto">
473
<table class="memname">
475
<td class="memname">const GdkDevice* Gdk::Device::gobj </td>
477
<td class="paramname"></td><td>)</td>
478
<td> const<code> [inline]</code></td>
484
<p>Provides access to the underlying C GObject. </p>
486
<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
490
<a class="anchor" id="aeb0115eb479ffaa6f01314d5b09a84be"></a><!-- doxytag: member="Gdk::Device::gobj" ref="aeb0115eb479ffaa6f01314d5b09a84be" args="()" -->
491
<div class="memitem">
492
<div class="memproto">
493
<table class="memname">
495
<td class="memname">GdkDevice* Gdk::Device::gobj </td>
497
<td class="paramname"></td><td>)</td>
498
<td><code> [inline]</code></td>
504
<p>Provides access to the underlying C GObject. </p>
506
<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
510
<a class="anchor" id="ad72b1db0d0407e69c976829bf1e7c620"></a><!-- doxytag: member="Gdk::Device::gobj_copy" ref="ad72b1db0d0407e69c976829bf1e7c620" args="()" -->
511
<div class="memitem">
512
<div class="memproto">
513
<table class="memname">
515
<td class="memname">GdkDevice* Gdk::Device::gobj_copy </td>
517
<td class="paramname"></td><td>)</td>
524
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
528
<a class="anchor" id="a550a8adf7e877ce7e0e4ae037a00b0fd"></a><!-- doxytag: member="Gdk::Device::set_axis_use" ref="a550a8adf7e877ce7e0e4ae037a00b0fd" args="(guint index_, AxisUse use)" -->
529
<div class="memitem">
530
<div class="memproto">
531
<table class="memname">
533
<td class="memname">void Gdk::Device::set_axis_use </td>
535
<td class="paramtype">guint </td>
536
<td class="paramname"><em>index_</em>, </td>
539
<td class="paramkey"></td>
541
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> </td>
542
<td class="paramname"><em>use</em> </td>
555
<a class="anchor" id="ac8722bcabab37d383ae6b943e0450b3a"></a><!-- doxytag: member="Gdk::Device::set_key" ref="ac8722bcabab37d383ae6b943e0450b3a" args="(guint index_, guint keyval, ModifierType modifiers)" -->
556
<div class="memitem">
557
<div class="memproto">
558
<table class="memname">
560
<td class="memname">void Gdk::Device::set_key </td>
562
<td class="paramtype">guint </td>
563
<td class="paramname"><em>index_</em>, </td>
566
<td class="paramkey"></td>
568
<td class="paramtype">guint </td>
569
<td class="paramname"><em>keyval</em>, </td>
572
<td class="paramkey"></td>
574
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a> </td>
575
<td class="paramname"><em>modifiers</em> </td>
588
<a class="anchor" id="a515ec77f056db9706a661f47eae1f9f7"></a><!-- doxytag: member="Gdk::Device::set_mode" ref="a515ec77f056db9706a661f47eae1f9f7" args="(InputMode mode)" -->
589
<div class="memitem">
590
<div class="memproto">
591
<table class="memname">
593
<td class="memname">bool Gdk::Device::set_mode </td>
595
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> </td>
596
<td class="paramname"><em>mode</em></td><td>)</td>
605
<a class="anchor" id="ab8cf3039809f9092d6732eb5f423c994"></a><!-- doxytag: member="Gdk::Device::set_source" ref="ab8cf3039809f9092d6732eb5f423c994" args="(InputSource source)" -->
606
<div class="memitem">
607
<div class="memproto">
608
<table class="memname">
610
<td class="memname">void Gdk::Device::set_source </td>
612
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> </td>
613
<td class="paramname"><em>source</em></td><td>)</td>
622
<hr/><h2>Friends And Related Function Documentation</h2>
623
<a class="anchor" id="a8a6b8086fe4968ffed6f58f055a238c1"></a><!-- doxytag: member="Gdk::Device::wrap" ref="a8a6b8086fe4968ffed6f58f055a238c1" args="(GdkDevice *object, bool take_copy=false)" -->
624
<div class="memitem">
625
<div class="memproto">
626
<table class="memname">
628
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> > wrap </td>
630
<td class="paramtype">GdkDevice * </td>
631
<td class="paramname"><em>object</em>, </td>
634
<td class="paramkey"></td>
636
<td class="paramtype">bool </td>
637
<td class="paramname"><em>take_copy</em> = <code>false</code> </td>
642
<td></td><td><code> [related]</code></td>
648
<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
649
<dl><dt><b>Parameters:</b></dt><dd>
650
<table class="params">
651
<tr><td class="paramname">object</td><td>The C instance. </td></tr>
652
<tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
656
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
660
<hr/>The documentation for this class was generated from the following file:<ul>
661
<li>gdkmm/device.h</li>
664
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:43 for gtkmm by 
665
<a href="http://www.doxygen.org/index.html">
666
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>