Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 36a4a1ce4320fd74059ccc32828cc5d4 > files > 29

gtkmm3.0-doc-3.14.0-2.mga5.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>gtkmm: Gdk::Device Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">gtkmm
   &#160;<span id="projectnumber">3.14.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a></li><li class="navelem"><a class="el" href="classGdk_1_1Device.html">Device</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="classGdk_1_1Device-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Gdk::Device Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<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="classGdk_1_1Device.html#details">More...</a></p>

<p><code>#include &lt;gdkmm/device.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Gdk::Device:</div>
<div class="dyncontent">
<div class="center"><img src="classGdk_1_1Device__inherit__graph.png" border="0" usemap="#Gdk_1_1Device_inherit__map" alt="Inheritance graph"/></div>
<map name="Gdk_1_1Device_inherit__map" id="Gdk_1_1Device_inherit__map">
<area shape="rect" id="node2" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,155,115,181"/><area shape="rect" id="node3" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,80,131,107"/><area shape="rect" id="node4" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa1d6c1a1ce5d1602f7ec6e55410533bc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa1d6c1a1ce5d1602f7ec6e55410533bc">~Device</a> ()</td></tr>
<tr class="separator:aa1d6c1a1ce5d1602f7ec6e55410533bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb0115eb479ffaa6f01314d5b09a84be"><td class="memItemLeft" align="right" valign="top">GdkDevice*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aeb0115eb479ffaa6f01314d5b09a84be">gobj</a> ()</td></tr>
<tr class="memdesc:aeb0115eb479ffaa6f01314d5b09a84be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#aeb0115eb479ffaa6f01314d5b09a84be">More...</a><br /></td></tr>
<tr class="separator:aeb0115eb479ffaa6f01314d5b09a84be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dcdc49a6707720f128de8377beb227c"><td class="memItemLeft" align="right" valign="top">const GdkDevice*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3dcdc49a6707720f128de8377beb227c">gobj</a> () const </td></tr>
<tr class="memdesc:a3dcdc49a6707720f128de8377beb227c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#a3dcdc49a6707720f128de8377beb227c">More...</a><br /></td></tr>
<tr class="separator:a3dcdc49a6707720f128de8377beb227c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad72b1db0d0407e69c976829bf1e7c620"><td class="memItemLeft" align="right" valign="top">GdkDevice*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad72b1db0d0407e69c976829bf1e7c620">gobj_copy</a> ()</td></tr>
<tr class="memdesc:ad72b1db0d0407e69c976829bf1e7c620"><td class="mdescLeft">&#160;</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">More...</a><br /></td></tr>
<tr class="separator:ad72b1db0d0407e69c976829bf1e7c620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a455127cf1e0e98998c040b564e880932"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a455127cf1e0e98998c040b564e880932">get_name</a> () const </td></tr>
<tr class="memdesc:a455127cf1e0e98998c040b564e880932"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the name of the device.  <a href="#a455127cf1e0e98998c040b564e880932">More...</a><br /></td></tr>
<tr class="separator:a455127cf1e0e98998c040b564e880932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc29df9a1ab4edc6976d3ca74dd55b9f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adc29df9a1ab4edc6976d3ca74dd55b9f">get_has_cursor</a> () const </td></tr>
<tr class="memdesc:adc29df9a1ab4edc6976d3ca74dd55b9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether the pointer follows device motion.  <a href="#adc29df9a1ab4edc6976d3ca74dd55b9f">More...</a><br /></td></tr>
<tr class="separator:adc29df9a1ab4edc6976d3ca74dd55b9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adccad74810fe8576e56ae1295b4437fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adccad74810fe8576e56ae1295b4437fb">get_source</a> () const </td></tr>
<tr class="memdesc:adccad74810fe8576e56ae1295b4437fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the type of the device.  <a href="#adccad74810fe8576e56ae1295b4437fb">More...</a><br /></td></tr>
<tr class="separator:adccad74810fe8576e56ae1295b4437fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad898f2090360b7195e887542ca1e834b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad898f2090360b7195e887542ca1e834b">get_mode</a> () const </td></tr>
<tr class="memdesc:ad898f2090360b7195e887542ca1e834b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the mode of the device.  <a href="#ad898f2090360b7195e887542ca1e834b">More...</a><br /></td></tr>
<tr class="separator:ad898f2090360b7195e887542ca1e834b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a515ec77f056db9706a661f47eae1f9f7"><td class="memItemLeft" align="right" valign="top">bool&#160;</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>
<tr class="memdesc:a515ec77f056db9706a661f47eae1f9f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a the mode of an input device.  <a href="#a515ec77f056db9706a661f47eae1f9f7">More...</a><br /></td></tr>
<tr class="separator:a515ec77f056db9706a661f47eae1f9f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae03c438f4ca0197ef28cbcef5878461f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ae03c438f4ca0197ef28cbcef5878461f">get_n_keys</a> () const </td></tr>
<tr class="memdesc:ae03c438f4ca0197ef28cbcef5878461f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of keys the device currently has.  <a href="#ae03c438f4ca0197ef28cbcef5878461f">More...</a><br /></td></tr>
<tr class="separator:ae03c438f4ca0197ef28cbcef5878461f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2438c73f9b055ea7710ce34abc02a4b4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a2438c73f9b055ea7710ce34abc02a4b4">get_key</a> (guint index_, guint&amp; keyval, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>&amp; modifiers) const </td></tr>
<tr class="memdesc:a2438c73f9b055ea7710ce34abc02a4b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">If <em>index</em> has a valid keyval, this function will return <code>true</code> and fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings.  <a href="#a2438c73f9b055ea7710ce34abc02a4b4">More...</a><br /></td></tr>
<tr class="separator:a2438c73f9b055ea7710ce34abc02a4b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8722bcabab37d383ae6b943e0450b3a"><td class="memItemLeft" align="right" valign="top">void&#160;</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>
<tr class="memdesc:ac8722bcabab37d383ae6b943e0450b3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the X key event to generate when a macro button of a device is pressed.  <a href="#ac8722bcabab37d383ae6b943e0450b3a">More...</a><br /></td></tr>
<tr class="separator:ac8722bcabab37d383ae6b943e0450b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a286833e6f10b358370de9bb12e1a8918"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a286833e6f10b358370de9bb12e1a8918">get_axis_use</a> (guint index_) const </td></tr>
<tr class="memdesc:a286833e6f10b358370de9bb12e1a8918"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the axis use for <em>index</em>.  <a href="#a286833e6f10b358370de9bb12e1a8918">More...</a><br /></td></tr>
<tr class="separator:a286833e6f10b358370de9bb12e1a8918"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a550a8adf7e877ce7e0e4ae037a00b0fd"><td class="memItemLeft" align="right" valign="top">void&#160;</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>
<tr class="memdesc:a550a8adf7e877ce7e0e4ae037a00b0fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies how an axis of a device is used.  <a href="#a550a8adf7e877ce7e0e4ae037a00b0fd">More...</a><br /></td></tr>
<tr class="separator:a550a8adf7e877ce7e0e4ae037a00b0fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfd2a2ba80433a8134a6c17d72026ac1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#abfd2a2ba80433a8134a6c17d72026ac1">get_state</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp; window, double&amp; axes, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>&amp; mask)</td></tr>
<tr class="memdesc:abfd2a2ba80433a8134a6c17d72026ac1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current state of a pointer device relative to <em>window</em>.  <a href="#abfd2a2ba80433a8134a6c17d72026ac1">More...</a><br /></td></tr>
<tr class="separator:abfd2a2ba80433a8134a6c17d72026ac1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bc78c4f3450780e6723416a26f14551"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="classGdk_1_1TimeCoord.html">TimeCoord</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a8bc78c4f3450780e6723416a26f14551">get_history</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp; window, guint32 <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01656.html#ga1bd4227a2c4a6cc74342b797384fbab2">start</a>, guint32 stop) const </td></tr>
<tr class="memdesc:a8bc78c4f3450780e6723416a26f14551"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the motion history for a device.  <a href="#a8bc78c4f3450780e6723416a26f14551">More...</a><br /></td></tr>
<tr class="separator:a8bc78c4f3450780e6723416a26f14551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8d401eaa65f4cc87f464ac23f57fc16"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak" />
&lt; <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#af8d401eaa65f4cc87f464ac23f57fc16">list_slave_devices</a> ()</td></tr>
<tr class="memdesc:af8d401eaa65f4cc87f464ac23f57fc16"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the device if of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the list of slave devices attached to it, otherwise it will return <code>0</code>  <a href="#af8d401eaa65f4cc87f464ac23f57fc16">More...</a><br /></td></tr>
<tr class="separator:af8d401eaa65f4cc87f464ac23f57fc16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83bd30917d8a244868eca57767fc1d9a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a83bd30917d8a244868eca57767fc1d9a">get_n_axes</a> () const </td></tr>
<tr class="memdesc:a83bd30917d8a244868eca57767fc1d9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of axes the device currently has.  <a href="#a83bd30917d8a244868eca57767fc1d9a">More...</a><br /></td></tr>
<tr class="separator:a83bd30917d8a244868eca57767fc1d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45926e03ecaf711b98af4294a6b1edbf"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a45926e03ecaf711b98af4294a6b1edbf">list_axes</a> () const </td></tr>
<tr class="memdesc:a45926e03ecaf711b98af4294a6b1edbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the labels for the axes that the device currently has.  <a href="#a45926e03ecaf711b98af4294a6b1edbf">More...</a><br /></td></tr>
<tr class="separator:a45926e03ecaf711b98af4294a6b1edbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dc6e8aac6e2a4233293553cfca9dfd3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3dc6e8aac6e2a4233293553cfca9dfd3">get_axis_value</a> (double&amp; axes, GdkAtom axis_label, double&amp; value) const </td></tr>
<tr class="memdesc:a3dc6e8aac6e2a4233293553cfca9dfd3"><td class="mdescLeft">&#160;</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 label, as returned by <a class="el" href="classGdk_1_1Device.html#a45926e03ecaf711b98af4294a6b1edbf" title="Returns the labels for the axes that the device currently has. ">list_axes()</a>  <a href="#a3dc6e8aac6e2a4233293553cfca9dfd3">More...</a><br /></td></tr>
<tr class="separator:a3dc6e8aac6e2a4233293553cfca9dfd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11368d857869b4a88e2d83704022672a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a11368d857869b4a88e2d83704022672a">get_axis</a> (double&amp; axes, <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> use, double&amp; value) const </td></tr>
<tr class="memdesc:a11368d857869b4a88e2d83704022672a"><td class="mdescLeft">&#160;</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">More...</a><br /></td></tr>
<tr class="separator:a11368d857869b4a88e2d83704022672a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a8201ff308802ad8b0c7c8d256cebb9"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Display.html">Display</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a2a8201ff308802ad8b0c7c8d256cebb9">get_display</a> ()</td></tr>
<tr class="memdesc:a2a8201ff308802ad8b0c7c8d256cebb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a> to which <em>device</em> pertains.  <a href="#a2a8201ff308802ad8b0c7c8d256cebb9">More...</a><br /></td></tr>
<tr class="separator:a2a8201ff308802ad8b0c7c8d256cebb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e3160bcbe6ba834e866ef6483deb493"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Display.html">Display</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a2e3160bcbe6ba834e866ef6483deb493">get_display</a> () const </td></tr>
<tr class="memdesc:a2e3160bcbe6ba834e866ef6483deb493"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a> to which <em>device</em> pertains.  <a href="#a2e3160bcbe6ba834e866ef6483deb493">More...</a><br /></td></tr>
<tr class="separator:a2e3160bcbe6ba834e866ef6483deb493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6e1b68b8134b122076df4ee6a727ea0"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Device.html">Device</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#af6e1b68b8134b122076df4ee6a727ea0">get_associated_device</a> ()</td></tr>
<tr class="memdesc:af6e1b68b8134b122076df4ee6a727ea0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the associated device to <em>device</em>, if <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the paired pointer or keyboard.  <a href="#af6e1b68b8134b122076df4ee6a727ea0">More...</a><br /></td></tr>
<tr class="separator:af6e1b68b8134b122076df4ee6a727ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb8207b29ab9a0856bad14ee758a16c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Device.html">Device</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a4bb8207b29ab9a0856bad14ee758a16c">get_associated_device</a> () const </td></tr>
<tr class="memdesc:a4bb8207b29ab9a0856bad14ee758a16c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the associated device to <em>device</em>, if <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the paired pointer or keyboard.  <a href="#a4bb8207b29ab9a0856bad14ee758a16c">More...</a><br /></td></tr>
<tr class="separator:a4bb8207b29ab9a0856bad14ee758a16c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21617188111a21775fb456f96f6809f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60f">DeviceType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a21617188111a21775fb456f96f6809f9">get_device_type</a> () const </td></tr>
<tr class="memdesc:a21617188111a21775fb456f96f6809f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the device type for <em>device</em>.  <a href="#a21617188111a21775fb456f96f6809f9">More...</a><br /></td></tr>
<tr class="separator:a21617188111a21775fb456f96f6809f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3336ff0ef66bbe29c640fc48aff86cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gab3918cc69c861b97779ac08dfa48610f">GrabStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb">grab</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp; window, <a class="el" href="group__gdkmmEnums.html#ga6768e1b30c4bb0ffd848823157937454">GrabOwnership</a> grab_ownership, bool owner_events, <a class="el" href="group__gdkmmEnums.html#ga0288c23e93ded8c0326235f1f1120c61">EventMask</a> event_mask, const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Cursor.html">Cursor</a> &gt;&amp; cursor, guint32 time_)</td></tr>
<tr class="memdesc:aa3336ff0ef66bbe29c640fc48aff86cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Grabs the device so that all events coming from this device are passed to this application until the device is ungrabbed with <a class="el" href="classGdk_1_1Device.html#a0868876a231261d4f2b88e338b86ee52" title="Release any grab on device. ">ungrab()</a>, or the window becomes unviewable.  <a href="#aa3336ff0ef66bbe29c640fc48aff86cb">More...</a><br /></td></tr>
<tr class="separator:aa3336ff0ef66bbe29c640fc48aff86cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d2f7bfbec6e1d90f54d6d5fe51c32ab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gab3918cc69c861b97779ac08dfa48610f">GrabStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a2d2f7bfbec6e1d90f54d6d5fe51c32ab">grab</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp; window, <a class="el" href="group__gdkmmEnums.html#ga6768e1b30c4bb0ffd848823157937454">GrabOwnership</a> grab_ownership, bool owner_events, <a class="el" href="group__gdkmmEnums.html#ga0288c23e93ded8c0326235f1f1120c61">EventMask</a> event_mask, guint32 time_)</td></tr>
<tr class="memdesc:a2d2f7bfbec6e1d90f54d6d5fe51c32ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">See the <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a> method which takes more parameters.  <a href="#a2d2f7bfbec6e1d90f54d6d5fe51c32ab">More...</a><br /></td></tr>
<tr class="separator:a2d2f7bfbec6e1d90f54d6d5fe51c32ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0868876a231261d4f2b88e338b86ee52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a0868876a231261d4f2b88e338b86ee52">ungrab</a> (guint32 time_)</td></tr>
<tr class="memdesc:a0868876a231261d4f2b88e338b86ee52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release any grab on <em>device</em>.  <a href="#a0868876a231261d4f2b88e338b86ee52">More...</a><br /></td></tr>
<tr class="separator:a0868876a231261d4f2b88e338b86ee52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b781cfdbf835cd03bd29852cbb65848"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a8b781cfdbf835cd03bd29852cbb65848">warp</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp; screen, int x, int y)</td></tr>
<tr class="memdesc:a8b781cfdbf835cd03bd29852cbb65848"><td class="mdescLeft">&#160;</td><td class="mdescRight">Warps <em>device</em> in <em>display</em> to the point <em>x</em>, <em>y</em> on the screen <em>screen</em>, unless the device is confined to a window by a grab, in which case it will be moved as far as allowed by the grab.  <a href="#a8b781cfdbf835cd03bd29852cbb65848">More...</a><br /></td></tr>
<tr class="separator:a8b781cfdbf835cd03bd29852cbb65848"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6336d188fa0a91a6d0a8024b6a24c419"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a6336d188fa0a91a6d0a8024b6a24c419">get_position</a> (int&amp; x, int&amp; y) const </td></tr>
<tr class="memdesc:a6336d188fa0a91a6d0a8024b6a24c419"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current location of the device.  <a href="#a6336d188fa0a91a6d0a8024b6a24c419">More...</a><br /></td></tr>
<tr class="separator:a6336d188fa0a91a6d0a8024b6a24c419"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5b6877a020285401ce6435d90bd361e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad5b6877a020285401ce6435d90bd361e">get_position</a> (<a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp; screen, int&amp; x, int&amp; y) const </td></tr>
<tr class="memdesc:ad5b6877a020285401ce6435d90bd361e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current location of device.  <a href="#ad5b6877a020285401ce6435d90bd361e">More...</a><br /></td></tr>
<tr class="separator:ad5b6877a020285401ce6435d90bd361e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7cd338ce2224d17960d6c7b29fa4aca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa7cd338ce2224d17960d6c7b29fa4aca">get_position</a> (double&amp; x, double&amp; y) const </td></tr>
<tr class="memdesc:aa7cd338ce2224d17960d6c7b29fa4aca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current location of the device in double precision.  <a href="#aa7cd338ce2224d17960d6c7b29fa4aca">More...</a><br /></td></tr>
<tr class="separator:aa7cd338ce2224d17960d6c7b29fa4aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a542bf81657a1d304b38144348c232eb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a542bf81657a1d304b38144348c232eb9">get_position</a> (<a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp; screen, double&amp; x, double&amp; y) const </td></tr>
<tr class="memdesc:a542bf81657a1d304b38144348c232eb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current location of the device in double precision.  <a href="#a542bf81657a1d304b38144348c232eb9">More...</a><br /></td></tr>
<tr class="separator:a542bf81657a1d304b38144348c232eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af026611e4289932fe4d8857196ed3141"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#af026611e4289932fe4d8857196ed3141">get_window_at_position</a> (int&amp; win_x, int&amp; win_y)</td></tr>
<tr class="memdesc:af026611e4289932fe4d8857196ed3141"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the window underneath <em>device</em>, returning the location of the device in <em>win_x</em> and <em>win_y</em>.  <a href="#af026611e4289932fe4d8857196ed3141">More...</a><br /></td></tr>
<tr class="separator:af026611e4289932fe4d8857196ed3141"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1911346623bf6ed120f0d809be568932"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a1911346623bf6ed120f0d809be568932">get_window_at_position</a> (int&amp; win_x, int&amp; win_y) const </td></tr>
<tr class="memdesc:a1911346623bf6ed120f0d809be568932"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the window underneath <em>device</em>, returning the location of the device in <em>win_x</em> and <em>win_y</em>.  <a href="#a1911346623bf6ed120f0d809be568932">More...</a><br /></td></tr>
<tr class="separator:a1911346623bf6ed120f0d809be568932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6e7d3a57a9e5860904a36ffc5d5bced"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa6e7d3a57a9e5860904a36ffc5d5bced">get_window_at_position</a> ()</td></tr>
<tr class="memdesc:aa6e7d3a57a9e5860904a36ffc5d5bced"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the window underneath the device.  <a href="#aa6e7d3a57a9e5860904a36ffc5d5bced">More...</a><br /></td></tr>
<tr class="separator:aa6e7d3a57a9e5860904a36ffc5d5bced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e36701e4f9b6179800364476b7a4da1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a1e36701e4f9b6179800364476b7a4da1">get_window_at_position</a> () const </td></tr>
<tr class="memdesc:a1e36701e4f9b6179800364476b7a4da1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the window underneath the device.  <a href="#a1e36701e4f9b6179800364476b7a4da1">More...</a><br /></td></tr>
<tr class="separator:a1e36701e4f9b6179800364476b7a4da1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa6c16680db8517d2a8e3feed9c241af"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#afa6c16680db8517d2a8e3feed9c241af">get_last_event_window</a> ()</td></tr>
<tr class="memdesc:afa6c16680db8517d2a8e3feed9c241af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets information about which window the given pointer device is in, based on that have been received so far from the display server.  <a href="#afa6c16680db8517d2a8e3feed9c241af">More...</a><br /></td></tr>
<tr class="separator:afa6c16680db8517d2a8e3feed9c241af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78378933313dc9342dfb295343f86927"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a78378933313dc9342dfb295343f86927">get_last_event_window</a> () const </td></tr>
<tr class="memdesc:a78378933313dc9342dfb295343f86927"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets information about which window the given pointer device is in, based on that have been received so far from the display server.  <a href="#a78378933313dc9342dfb295343f86927">More...</a><br /></td></tr>
<tr class="separator:a78378933313dc9342dfb295343f86927"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aef8b7c4a44789d88a65cd8f9103d581c"><td class="memItemLeft" align="right" valign="top">static GType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aef8b7c4a44789d88a65cd8f9103d581c">get_type</a> ()</td></tr>
<tr class="memdesc:aef8b7c4a44789d88a65cd8f9103d581c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system.  <a href="#aef8b7c4a44789d88a65cd8f9103d581c">More...</a><br /></td></tr>
<tr class="separator:aef8b7c4a44789d88a65cd8f9103d581c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7b7cf9284ccf9d2bbc061205446b5f40"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a7b7cf9284ccf9d2bbc061205446b5f40">Device</a> ()</td></tr>
<tr class="separator:a7b7cf9284ccf9d2bbc061205446b5f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:a8a6b8086fe4968ffed6f58f055a238c1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> &gt;&#160;</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>
<tr class="memdesc:a8a6b8086fe4968ffed6f58f055a238c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#a8a6b8086fe4968ffed6f58f055a238c1">More...</a><br /></td></tr>
<tr class="separator:a8a6b8086fe4968ffed6f58f055a238c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<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>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa1d6c1a1ce5d1602f7ec6e55410533bc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::Device::~Device </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7b7cf9284ccf9d2bbc061205446b5f40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::Device::Device </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af6e1b68b8134b122076df4ee6a727ea0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Device.html">Device</a>&gt; Gdk::Device::get_associated_device </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the associated device to <em>device</em>, if <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the paired pointer or keyboard. </p>
<p>If <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, it will return the master device to which <em>device</em> is attached to.</p>
<p>If <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60faf6841666690eb3d2a06e45a030870120" title="Device is a physical device, currently not attached to any virtual device. ">Gdk::DEVICE_TYPE_FLOATING</a>, <code>0</code> will be returned, as there is no associated device.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000006">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The associated device, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a4bb8207b29ab9a0856bad14ee758a16c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Device.html">Device</a>&gt; Gdk::Device::get_associated_device </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the associated device to <em>device</em>, if <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the paired pointer or keyboard. </p>
<p>If <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, it will return the master device to which <em>device</em> is attached to.</p>
<p>If <em>device</em> is of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60faf6841666690eb3d2a06e45a030870120" title="Device is a physical device, currently not attached to any virtual device. ">Gdk::DEVICE_TYPE_FLOATING</a>, <code>0</code> will be returned, as there is no associated device.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000007">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The associated device, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a11368d857869b4a88e2d83704022672a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gdk::Device::get_axis </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a>&#160;</td>
          <td class="paramname"><em>use</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<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>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">axes</td><td>Pointer to an array of axes. </td></tr>
    <tr><td class="paramname">use</td><td>The use to look for. </td></tr>
    <tr><td class="paramname">value</td><td>Location to store the found value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the given axis use was found, otherwise <code>false</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a286833e6f10b358370de9bb12e1a8918"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> Gdk::Device::get_axis_use </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>index_</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the axis use for <em>index</em>. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000006">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the axis. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7" title="An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator...">Gdk::AxisUse</a> specifying how the axis is used. </dd></dl>

</div>
</div>
<a class="anchor" id="a3dc6e8aac6e2a4233293553cfca9dfd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gdk::Device::get_axis_value </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkAtom&#160;</td>
          <td class="paramname"><em>axis_label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Interprets an array of double as axis values for a given device, and locates the value in the array for a given axis label, as returned by <a class="el" href="classGdk_1_1Device.html#a45926e03ecaf711b98af4294a6b1edbf" title="Returns the labels for the axes that the device currently has. ">list_axes()</a> </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000003">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">axes</td><td>Pointer to an array of axes. </td></tr>
    <tr><td class="paramname">axis_label</td><td>Gdk::Atom with the axis label. </td></tr>
    <tr><td class="paramname">value</td><td>Location to store the found value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the given axis use was found, otherwise <code>false</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a21617188111a21775fb456f96f6809f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60f">DeviceType</a> Gdk::Device::get_device_type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the device type for <em>device</em>. </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000008">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60f">Gdk::DeviceType</a> for <em>device</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a8201ff308802ad8b0c7c8d256cebb9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Display</a>&gt; Gdk::Device::get_display </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a> to which <em>device</em> pertains. </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000004">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a>. This memory is owned by GTK+, and must not be freed or unreffed. </dd></dl>

</div>
</div>
<a class="anchor" id="a2e3160bcbe6ba834e866ef6483deb493"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Display.html">Display</a>&gt; Gdk::Device::get_display </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a> to which <em>device</em> pertains. </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000005">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To manage ...">Gdk::Display</a>. This memory is owned by GTK+, and must not be freed or unreffed. </dd></dl>

</div>
</div>
<a class="anchor" id="adc29df9a1ab4edc6976d3ca74dd55b9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gdk::Device::get_has_cursor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines whether the pointer follows device motion. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000002">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the pointer follows device motion. </dd></dl>

</div>
</div>
<a class="anchor" id="a8bc78c4f3450780e6723416a26f14551"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt;<a class="el" href="classGdk_1_1TimeCoord.html">TimeCoord</a>&gt; Gdk::Device::get_history </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"><em>stop</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the motion history for a device. </p>
<p>Given a starting and ending timestamp, this will return all events in the motion history for the device in the given range of time. Some windowing systems do not support motion history, in which case, false will be returned. (This is not distinguishable from the case where motion history is supported and no events were found.)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">window</td><td>The window with respect to which which the event coordinates will be reported. </td></tr>
    <tr><td class="paramname">start</td><td>Starting timestamp for range of events to return. </td></tr>
    <tr><td class="paramname">stop</td><td>Ending timestamp for the range of events to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A vector of <a class="el" href="classGdk_1_1TimeCoord.html" title="A Gdk::TimeCoord instance contains a single event of motion history. ">TimeCoord</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a2438c73f9b055ea7710ce34abc02a4b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gdk::Device::get_key </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>index_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint &amp;&#160;</td>
          <td class="paramname"><em>keyval</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>&amp;&#160;</td>
          <td class="paramname"><em>modifiers</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If <em>index</em> has a valid keyval, this function will return <code>true</code> and fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000005">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the macro button to get. </td></tr>
    <tr><td class="paramname">keyval</td><td>Return value for the keyval. </td></tr>
    <tr><td class="paramname">modifiers</td><td>Return value for modifiers. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if keyval is set for <em>index</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="afa6c16680db8517d2a8e3feed9c241af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_last_event_window </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets information about which window the given pointer device is in, based on that have been received so far from the display server. </p>
<p>If another application has a pointer grab, or this application has a grab with owner_events = <code>false</code>, <code>0</code> may be returned even if the pointer is physically over one of this application's windows.</p>
<dl class="since_3_12"><dt><b><a class="el" href="since_3_12.html#_since_3_12000001">Since gtkmm 3.12:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The last window the device. </dd></dl>

</div>
</div>
<a class="anchor" id="a78378933313dc9342dfb295343f86927"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_last_event_window </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets information about which window the given pointer device is in, based on that have been received so far from the display server. </p>
<p>If another application has a pointer grab, or this application has a grab with owner_events = <code>false</code>, <code>0</code> may be returned even if the pointer is physically over one of this application's windows.</p>
<dl class="since_3_12"><dt><b><a class="el" href="since_3_12.html#_since_3_12000002">Since gtkmm 3.12:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The last window the device. </dd></dl>

</div>
</div>
<a class="anchor" id="ad898f2090360b7195e887542ca1e834b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> Gdk::Device::get_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the mode of the device. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000004">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c" title="An enumeration describing the type of an input device in general terms. ">Gdk::InputSource</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a83bd30917d8a244868eca57767fc1d9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gdk::Device::get_n_axes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the number of axes the device currently has. </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000002">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of axes. </dd></dl>

</div>
</div>
<a class="anchor" id="ae03c438f4ca0197ef28cbcef5878461f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gdk::Device::get_n_keys </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the number of keys the device currently has. </p>
<dl class="since_2_24"><dt><b><a class="el" href="since_2_24.html#_since_2_24000001">Since gtkmm 2.24:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of keys. </dd></dl>

</div>
</div>
<a class="anchor" id="a455127cf1e0e98998c040b564e880932"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> Gdk::Device::get_name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the name of the device. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000001">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A name. </dd></dl>

</div>
</div>
<a class="anchor" id="a6336d188fa0a91a6d0a8024b6a24c419"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::get_position </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current location of the device. </p>
<p>As a slave device coordinates are those of its master pointer, this function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>This will contain the root window X coordinate of the device. </td></tr>
    <tr><td class="paramname">y</td><td>This will contain the root window X coordinate of the device. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad5b6877a020285401ce6435d90bd361e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::get_position </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current location of device. </p>
<p>As a slave device coordinates are those of its master pointer, this function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">screen</td><td>This will contain the screen that the device is on. </td></tr>
    <tr><td class="paramname">x</td><td>This will contain the root window X coordinate of the device. </td></tr>
    <tr><td class="paramname">y</td><td>This will contain the root window X coordinate of the device. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa7cd338ce2224d17960d6c7b29fa4aca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::get_position </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current location of the device in double precision. </p>
<p>As a slave device coordinates are those of its master pointer, this function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>This will contain the root window X coordinate of the device. </td></tr>
    <tr><td class="paramname">y</td><td>This will contain the root window X coordinate of the device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="since_3_10"><dt><b><a class="el" href="since_3_10.html#_since_3_10000004">Since gtkmm 3.10:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a542bf81657a1d304b38144348c232eb9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::get_position </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current location of the device in double precision. </p>
<p>As a slave device coordinates are those of its master pointer, this function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">screen</td><td>This will contain the screen that the device is on. </td></tr>
    <tr><td class="paramname">x</td><td>This will contain the root window X coordinate of the device. </td></tr>
    <tr><td class="paramname">y</td><td>This will contain the root window X coordinate of the device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="since_3_10"><dt><b><a class="el" href="since_3_10.html#_since_3_10000005">Since gtkmm 3.10:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="adccad74810fe8576e56ae1295b4437fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> Gdk::Device::get_source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the type of the device. </p>
<dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000003">Since gtkmm 2.20:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c" title="An enumeration describing the type of an input device in general terms. ">Gdk::InputSource</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="abfd2a2ba80433a8134a6c17d72026ac1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::get_state </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>&amp;&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current state of a pointer device relative to <em>window</em>. </p>
<p>As a slave device’s coordinates are those of its master pointer, this function may not be called on devices of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <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>
    <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>
    <tr><td class="paramname">mask</td><td>Location to store the modifiers, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aef8b7c4a44789d88a65cd8f9103d581c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static GType Gdk::Device::get_type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the GType for this class, for use with the underlying GObject type system. </p>

</div>
</div>
<a class="anchor" id="af026611e4289932fe4d8857196ed3141"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_window_at_position </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>win_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>win_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the window underneath <em>device</em>, returning the location of the device in <em>win_x</em> and <em>win_y</em>. </p>
<p>Returns <code>0</code> if the window tree under <em>device</em> is not known to GDK (for example, belongs to another application).</p>
<p>As a slave device coordinates are those of its master pointer, This function may not be called on devices of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, unless there is an ongoing grab on them, see <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000012">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">win_x</td><td>Return location for the X coordinate of the device location, relative to the window origin, or <code>0</code>. </td></tr>
    <tr><td class="paramname">win_y</td><td>Return location for the Y coordinate of the device location, relative to the window origin, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen. ">Gdk::Window</a> under the device position, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a1911346623bf6ed120f0d809be568932"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_window_at_position </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>win_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>win_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the window underneath <em>device</em>, returning the location of the device in <em>win_x</em> and <em>win_y</em>. </p>
<p>Returns <code>0</code> if the window tree under <em>device</em> is not known to GDK (for example, belongs to another application).</p>
<p>As a slave device coordinates are those of its master pointer, This function may not be called on devices of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, unless there is an ongoing grab on them, see <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000013">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">win_x</td><td>Return location for the X coordinate of the device location, relative to the window origin, or <code>0</code>. </td></tr>
    <tr><td class="paramname">win_y</td><td>Return location for the Y coordinate of the device location, relative to the window origin, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen. ">Gdk::Window</a> under the device position, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="aa6e7d3a57a9e5860904a36ffc5d5bced"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_window_at_position </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the window underneath the device. </p>
<p>Returns an empty RefPtr if the window tree under the device is not known to GDK (for example, belongs to another application).</p>
<p>As a slave device coordinates are those of its master pointer, This function may not be called on devices of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000014">Since gtkmm 3.0:</a></b></dt><dd><dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen. ">Gdk::Window</a> under the device position. </dd></dl>
</dd></dl>

</div>
</div>
<a class="anchor" id="a1e36701e4f9b6179800364476b7a4da1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Window.html">Window</a>&gt; Gdk::Device::get_window_at_position </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the window underneath the device. </p>
<p>Returns an empty RefPtr if the window tree under the device is not known to GDK (for example, belongs to another application).</p>
<p>As a slave device coordinates are those of its master pointer, This function may not be called on devices of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa3dccf77ee1936f889085308e06e81cdb" title="Device is a slave (or physical) device. ">Gdk::DEVICE_TYPE_SLAVE</a>, unless there is an ongoing grab on them. See <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a>.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000015">Since gtkmm 3.0:</a></b></dt><dd><dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen. ">Gdk::Window</a> under the device position. </dd></dl>
</dd></dl>

</div>
</div>
<a class="anchor" id="aeb0115eb479ffaa6f01314d5b09a84be"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GdkDevice* Gdk::Device::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

</div>
</div>
<a class="anchor" id="a3dcdc49a6707720f128de8377beb227c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const GdkDevice* Gdk::Device::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

</div>
</div>
<a class="anchor" id="ad72b1db0d0407e69c976829bf1e7c620"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkDevice* Gdk::Device::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="aa3336ff0ef66bbe29c640fc48aff86cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#gab3918cc69c861b97779ac08dfa48610f">GrabStatus</a> Gdk::Device::grab </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga6768e1b30c4bb0ffd848823157937454">GrabOwnership</a>&#160;</td>
          <td class="paramname"><em>grab_ownership</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>owner_events</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga0288c23e93ded8c0326235f1f1120c61">EventMask</a>&#160;</td>
          <td class="paramname"><em>event_mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Cursor.html">Cursor</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>cursor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"><em>time_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Grabs the device so that all events coming from this device are passed to this application until the device is ungrabbed with <a class="el" href="classGdk_1_1Device.html#a0868876a231261d4f2b88e338b86ee52" title="Release any grab on device. ">ungrab()</a>, or the window becomes unviewable. </p>
<p>This overrides any previous grab on the device by this client.</p>
<p><a class="el" href="classGdk_1_1Device.html" title="A Gdk::Device instance contains a detailed description of an extended input device. ">Device</a> grabs are used for operations which need complete control over the given device events (either pointer or keyboard). For example in GTK+ this is used for Drag and Drop operations, popup menus and such.</p>
<p>Note that if the event mask of an X window has selected both button press and button release events, then a button press event will cause an automatic pointer grab until the button is released. X does this automatically since most applications expect to receive button press and release events in pairs. It is equivalent to a pointer grab on the window with <em>owner_events</em> set to <code>true</code>.</p>
<p>If you set up anything at the time you take the grab that needs to be cleaned up when the grab ends, you should handle the Gdk::EventGrabBroken events that are emitted when the grab ends unvoluntarily.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000009">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">window</td><td>The <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen. ">Gdk::Window</a> which will own the grab (the grab window). </td></tr>
    <tr><td class="paramname">grab_ownership</td><td>Specifies the grab ownership. </td></tr>
    <tr><td class="paramname">owner_events</td><td>If <code>false</code> then all device events are reported with respect to <em>window</em> and are only reported if selected by <em>event_mask</em>. If <code>true</code> then pointer events for this application are reported as normal, but pointer events outside this application are reported with respect to <em>window</em> and only if selected by <em>event_mask</em>. In either mode, unreported events are discarded. </td></tr>
    <tr><td class="paramname">event_mask</td><td>Specifies the event mask, which is used in accordance with <em>owner_events</em>. </td></tr>
    <tr><td class="paramname">cursor</td><td>The cursor to display while the grab is active if the device is a pointer. If this is <code>0</code> then the normal cursors are used for <em>window</em> and its descendants, and the cursor for <em>window</em> is used elsewhere. </td></tr>
    <tr><td class="paramname">time</td><td>The timestamp of the event which led to this pointer grab. This usually comes from the <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> struct, though Gdk::CURRENT_TIME can be used if the time isn’t known. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="namespaceGdk.html#gab3918cc69c861b97779ac08dfa48610fabd6ebda01b2ed297c760ca9f1e0d4e0a" title="The resource was successfully grabbed. ">Gdk::GRAB_SUCCESS</a> if the grab was successful. </dd></dl>

</div>
</div>
<a class="anchor" id="a2d2f7bfbec6e1d90f54d6d5fe51c32ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#gab3918cc69c861b97779ac08dfa48610f">GrabStatus</a> Gdk::Device::grab </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Window.html">Window</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga6768e1b30c4bb0ffd848823157937454">GrabOwnership</a>&#160;</td>
          <td class="paramname"><em>grab_ownership</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>owner_events</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga0288c23e93ded8c0326235f1f1120c61">EventMask</a>&#160;</td>
          <td class="paramname"><em>event_mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"><em>time_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>See the <a class="el" href="classGdk_1_1Device.html#aa3336ff0ef66bbe29c640fc48aff86cb" title="Grabs the device so that all events coming from this device are passed to this application until the ...">grab()</a> method which takes more parameters. </p>

</div>
</div>
<a class="anchor" id="a45926e03ecaf711b98af4294a6b1edbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&gt; Gdk::Device::list_axes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the labels for the axes that the device currently has. </p>
<dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000002">Since gtkmm 3.4:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="af8d401eaa65f4cc87f464ac23f57fc16"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt;<a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Device.html">Gdk::Device</a>&gt; &gt; Gdk::Device::list_slave_devices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If the device if of type <a class="el" href="namespaceGdk.html#af1e2cfdc40b5dbbd362c17de2431e60fa742b11a286bbbb3b5a87b0de29ee0050" title="Device is a master (or virtual) device. ">Gdk::DEVICE_TYPE_MASTER</a>, it will return the list of slave devices attached to it, otherwise it will return <code>0</code> </p>
<dl class="section return"><dt>Returns</dt><dd>The list of slave devices, or <code>0</code>. The list must be freed with Glib::list_free(), the contents of the list are owned by GTK+ and should not be freed. </dd></dl>

</div>
</div>
<a class="anchor" id="a550a8adf7e877ce7e0e4ae037a00b0fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::set_axis_use </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>index_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a>&#160;</td>
          <td class="paramname"><em>use</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specifies how an axis of a device is used. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the axis. </td></tr>
    <tr><td class="paramname">use</td><td>Specifies how the axis is used. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac8722bcabab37d383ae6b943e0450b3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::set_key </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>index_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>keyval</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>&#160;</td>
          <td class="paramname"><em>modifiers</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specifies the X key event to generate when a macro button of a device is pressed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the macro button to set. </td></tr>
    <tr><td class="paramname">keyval</td><td>The keyval to generate. </td></tr>
    <tr><td class="paramname">modifiers</td><td>The modifiers to set. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a515ec77f056db9706a661f47eae1f9f7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gdk::Device::set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a the mode of an input device. </p>
<p>The mode controls if the device is active and whether the device’s range is mapped to the entire screen or to a single window.</p>
<dl class="section note"><dt>Note</dt><dd>This is only meaningful for floating devices, master devices (and slaves connected to these) drive the pointer cursor, which is not limited by the input mode.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>The input mode. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the mode was successfully changed. </dd></dl>

</div>
</div>
<a class="anchor" id="a0868876a231261d4f2b88e338b86ee52"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::ungrab </td>
          <td>(</td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"><em>time_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Release any grab on <em>device</em>. </p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000010">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">time</td><td>A timestap (e.g. Gdk::CURRENT_TIME). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8b781cfdbf835cd03bd29852cbb65848"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Device::warp </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Warps <em>device</em> in <em>display</em> to the point <em>x</em>, <em>y</em> on the screen <em>screen</em>, unless the device is confined to a window by a grab, in which case it will be moved as far as allowed by the grab. </p>
<p>Warping the pointer creates events as if the user had moved the mouse instantaneously to the destination.</p>
<p>Note that the pointer should normally be under the control of the user. This function was added to cover some rare use cases like keyboard navigation support for the color picker in the <a class="el" href="classGtk_1_1ColorSelectionDialog.html" title="This dialog allows the user to select a color. ">Gtk::ColorSelectionDialog</a>.</p>
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000011">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">screen</td><td>The screen to warp <em>device</em> to. </td></tr>
    <tr><td class="paramname">x</td><td>The X coordinate of the destination. </td></tr>
    <tr><td class="paramname">y</td><td>The Y coordinate of the destination. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a8a6b8086fe4968ffed6f58f055a238c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdkDevice *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <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>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Sep 23 2014 12:59:11 for gtkmm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>