<!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"/> <title>gtkmm: Gdk::Device Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gdk::Device Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gdk::Device" --><!-- doxytag: inherits="Glib::Object" --> <p>A <a class="el" href="classGdk_1_1Device.html" title="A Gdk::Device instance contains a detailed description of an extended input device.">Gdk::Device</a> instance contains a detailed description of an extended input device. <a href="#_details">More...</a></p> <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="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gdk::Device:</div> <div class="dyncontent"> <div class="center"><img src="classGdk_1_1Device__coll__graph.png" border="0" usemap="#Gdk_1_1Device_coll__map" alt="Collaboration graph"/></div> <map name="Gdk_1_1Device_coll__map" id="Gdk_1_1Device_coll__map"> <area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGdk_1_1Device-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aa1d6c1a1ce5d1602f7ec6e55410533bc">~Device</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#aeb0115eb479ffaa6f01314d5b09a84be">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aeb0115eb479ffaa6f01314d5b09a84be"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3dcdc49a6707720f128de8377beb227c">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a3dcdc49a6707720f128de8377beb227c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdkDevice* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad72b1db0d0407e69c976829bf1e7c620">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ad72b1db0d0407e69c976829bf1e7c620"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ab8cf3039809f9092d6732eb5f423c994">set_source</a> (<a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> source)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a515ec77f056db9706a661f47eae1f9f7">set_mode</a> (<a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> mode)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a5d2a9da74b62dee242b4ba2ec2dc34c0">get_key</a> (guint index_, guint& keyval, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& modifiers) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If <em>index</em> has a valid keyval, this function will fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings. <a href="#a5d2a9da74b62dee242b4ba2ec2dc34c0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ac8722bcabab37d383ae6b943e0450b3a">set_key</a> (guint index_, guint keyval, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a> modifiers)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a286833e6f10b358370de9bb12e1a8918">get_axis_use</a> (guint index_) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the axis use for <em>index</em>. <a href="#a286833e6f10b358370de9bb12e1a8918"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a550a8adf7e877ce7e0e4ae037a00b0fd">set_axis_use</a> (guint index_, <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> use)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#abfd2a2ba80433a8134a6c17d72026ac1">get_state</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& window, double& axes, <a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& mask)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the current state of a device. <a href="#abfd2a2ba80433a8134a6c17d72026ac1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a9954bed87cf7ac4719bcd80e3d740903">get_history</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& window, guint32 <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01176.html#gac03aae90e55ed30894f1868b3e9accce">start</a>, guint32 stop, GdkTimeCoord**& events, int& n_events)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. <a href="#a9954bed87cf7ac4719bcd80e3d740903"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a11368d857869b4a88e2d83704022672a">get_axis</a> (double& axes, <a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> use, double&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01191.html#ga1c9e781d8d15a3814a601f471797c825">value</a>) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Interprets an array of double as axis values for a given device, and locates the value in the array for a given axis use. <a href="#a11368d857869b4a88e2d83704022672a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a455127cf1e0e98998c040b564e880932">get_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the name of the device. <a href="#a455127cf1e0e98998c040b564e880932"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adccad74810fe8576e56ae1295b4437fb">get_source</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the type of the device. <a href="#adccad74810fe8576e56ae1295b4437fb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#gaf6d613ed046401b6386ba8f7bfb273c0">InputMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#ad898f2090360b7195e887542ca1e834b">get_mode</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines the mode of the device. <a href="#ad898f2090360b7195e887542ca1e834b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#adc29df9a1ab4edc6976d3ca74dd55b9f">get_has_cursor</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the pointer follows device motion. <a href="#adc29df9a1ab4edc6976d3ca74dd55b9f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">gint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a3db6376578da7c2c9e7f4e054f186ea7">get_n_axes</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of axes of a device. <a href="#a3db6376578da7c2c9e7f4e054f186ea7"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a7b7cf9284ccf9d2bbc061205446b5f40">Device</a> ()</td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Device.html#a8a6b8086fe4968ffed6f58f055a238c1">wrap</a> (GdkDevice* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a8a6b8086fe4968ffed6f58f055a238c1"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>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><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aa1d6c1a1ce5d1602f7ec6e55410533bc"></a><!-- doxytag: member="Gdk::Device::~Device" ref="aa1d6c1a1ce5d1602f7ec6e55410533bc" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gdk::Device::~Device </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a7b7cf9284ccf9d2bbc061205446b5f40"></a><!-- doxytag: member="Gdk::Device::Device" ref="a7b7cf9284ccf9d2bbc061205446b5f40" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gdk::Device::Device </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a11368d857869b4a88e2d83704022672a"></a><!-- doxytag: member="Gdk::Device::get_axis" ref="a11368d857869b4a88e2d83704022672a" args="(double &axes, AxisUse use, double &value) const " --> <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 & </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> </td> <td class="paramname"><em>use</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double & </td> <td class="paramname"><em>value</em> </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><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Gdk::Device::get_axis_use" ref="a286833e6f10b358370de9bb12e1a8918" args="(guint index_) const " --> <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 </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_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000003">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">index</td><td>The index of the axis. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::AxisUse specifying how the axis is used. </dd></dl> </div> </div> <a class="anchor" id="adc29df9a1ab4edc6976d3ca74dd55b9f"></a><!-- doxytag: member="Gdk::Device::get_has_cursor" ref="adc29df9a1ab4edc6976d3ca74dd55b9f" args="() const " --> <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_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000007">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the pointer follows device motion. </dd></dl> </div> </div> <a class="anchor" id="a9954bed87cf7ac4719bcd80e3d740903"></a><!-- doxytag: member="Gdk::Device::get_history" ref="a9954bed87cf7ac4719bcd80e3d740903" args="(const Glib::RefPtr< Window > &window, guint32 start, guint32 stop, GdkTimeCoord **&events, int &n_events)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Device::get_history </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& </td> <td class="paramname"><em>window</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint32 </td> <td class="paramname"><em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint32 </td> <td class="paramname"><em>stop</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">GdkTimeCoord **& </td> <td class="paramname"><em>events</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int & </td> <td class="paramname"><em>n_events</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. </p> <p>Some windowing systems do not support motion history, in which case, <code>false</code> will be returned. (This is not distinguishable from the case where motion history is supported and no events were found.) </p> <dl><dt><b>Parameters:</b></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> <tr><td class="paramname">events</td><td>Location to store a newly-allocated array of Gdk::TimeCoord, or <code>0</code>. </td></tr> <tr><td class="paramname">n_events</td><td>Location to store the length of <em>events</em>, or <code>0</code>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the windowing system supports motion history and at least one event was found. </dd></dl> </div> </div> <a class="anchor" id="a5d2a9da74b62dee242b4ba2ec2dc34c0"></a><!-- doxytag: member="Gdk::Device::get_key" ref="a5d2a9da74b62dee242b4ba2ec2dc34c0" args="(guint index_, guint &keyval, ModifierType &modifiers) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gdk::Device::get_key </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>index_</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint & </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>& </td> <td class="paramname"><em>modifiers</em> </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 fill in <em>keyval</em> and <em>modifiers</em> with the keyval settings. </p> <dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000002">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></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> </div> </div> <a class="anchor" id="ad898f2090360b7195e887542ca1e834b"></a><!-- doxytag: member="Gdk::Device::get_mode" ref="ad898f2090360b7195e887542ca1e834b" args="() const " --> <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_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000006">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::InputSource. </dd></dl> </div> </div> <a class="anchor" id="a3db6376578da7c2c9e7f4e054f186ea7"></a><!-- doxytag: member="Gdk::Device::get_n_axes" ref="a3db6376578da7c2c9e7f4e054f186ea7" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gint Gdk::Device::get_n_axes </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the number of axes of a device. </p> <dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000008">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The number of axes of <em>device</em>. </dd></dl> </div> </div> <a class="anchor" id="a455127cf1e0e98998c040b564e880932"></a><!-- doxytag: member="Gdk::Device::get_name" ref="a455127cf1e0e98998c040b564e880932" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/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_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000004">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A name. </dd></dl> </div> </div> <a class="anchor" id="adccad74810fe8576e56ae1295b4437fb"></a><!-- doxytag: member="Gdk::Device::get_source" ref="adccad74810fe8576e56ae1295b4437fb" args="() const " --> <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_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000005">Since gtkmm 2.22:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::InputSource. </dd></dl> </div> </div> <a class="anchor" id="abfd2a2ba80433a8134a6c17d72026ac1"></a><!-- doxytag: member="Gdk::Device::get_state" ref="abfd2a2ba80433a8134a6c17d72026ac1" args="(const Glib::RefPtr< Window > &window, double &axes, ModifierType &mask)" --> <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="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Window.html">Window</a> >& </td> <td class="paramname"><em>window</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double & </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>& </td> <td class="paramname"><em>mask</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the current state of a device. </p> <dl><dt><b>Parameters:</b></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="a3dcdc49a6707720f128de8377beb227c"></a><!-- doxytag: member="Gdk::Device::gobj" ref="a3dcdc49a6707720f128de8377beb227c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GdkDevice* Gdk::Device::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p> </div> </div> <a class="anchor" id="aeb0115eb479ffaa6f01314d5b09a84be"></a><!-- doxytag: member="Gdk::Device::gobj" ref="aeb0115eb479ffaa6f01314d5b09a84be" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdkDevice* Gdk::Device::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p> </div> </div> <a class="anchor" id="ad72b1db0d0407e69c976829bf1e7c620"></a><!-- doxytag: member="Gdk::Device::gobj_copy" ref="ad72b1db0d0407e69c976829bf1e7c620" args="()" --> <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="a550a8adf7e877ce7e0e4ae037a00b0fd"></a><!-- doxytag: member="Gdk::Device::set_axis_use" ref="a550a8adf7e877ce7e0e4ae037a00b0fd" args="(guint index_, AxisUse use)" --> <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 </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> </td> <td class="paramname"><em>use</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac8722bcabab37d383ae6b943e0450b3a"></a><!-- doxytag: member="Gdk::Device::set_key" ref="ac8722bcabab37d383ae6b943e0450b3a" args="(guint index_, guint keyval, ModifierType modifiers)" --> <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 </td> <td class="paramname"><em>index_</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </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> </td> <td class="paramname"><em>modifiers</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a515ec77f056db9706a661f47eae1f9f7"></a><!-- doxytag: member="Gdk::Device::set_mode" ref="a515ec77f056db9706a661f47eae1f9f7" args="(InputMode mode)" --> <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> </td> <td class="paramname"><em>mode</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ab8cf3039809f9092d6732eb5f423c994"></a><!-- doxytag: member="Gdk::Device::set_source" ref="ab8cf3039809f9092d6732eb5f423c994" args="(InputSource source)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gdk::Device::set_source </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa2b575499ce34e8b79386b2db0c3c95c">InputSource</a> </td> <td class="paramname"><em>source</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a8a6b8086fe4968ffed6f58f055a238c1"></a><!-- doxytag: member="Gdk::Device::wrap" ref="a8a6b8086fe4968ffed6f58f055a238c1" args="(GdkDevice *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a> > wrap </td> <td>(</td> <td class="paramtype">GdkDevice * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gdkmm/device.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>