<!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::Event 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_1Event.html">Event</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gdk::Event Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gdk::Event" --> <p><a href="classGdk_1_1Event-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#ae03c66bcd189f44073891575592b7677">Event</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#af5f1d2094cb30b218c337c29e0764925">Event</a> (GdkEvent* gobject, bool make_a_copy=true)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a130915030025da8d1653506122c84385">Event</a> (const <a class="el" href="classGdk_1_1Event.html">Event</a>& other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1Event.html">Event</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#abd217b33d80155460a6c5d6339f914bc">operator=</a> (const <a class="el" href="classGdk_1_1Event.html">Event</a>& other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#aff6e2fdbf97ab2bd759b64652a86d8b2">~Event</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#ac46208ba6a7b2f61f486997146728f4c">swap</a> (<a class="el" href="classGdk_1_1Event.html">Event</a>& other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdkEvent* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a21a5ddedef8a375f19412ce2d6c37d90">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a21a5ddedef8a375f19412ce2d6c37d90"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GdkEvent* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a63e34d8c6300a5fe4939e4dc4fcbf440">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a63e34d8c6300a5fe4939e4dc4fcbf440"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdkEvent* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a322551c2b247575997ef1e3bc498751a">gobj_copy</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#a322551c2b247575997ef1e3bc498751a"></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_1Event.html#a7e9830470be83a7206db3a8c5436ef08">put</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is <code>0</code>. <a href="#a7e9830470be83a7206db3a8c5436ef08"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a6d785b16c3532cdcd0794d7d4161c40e">get_time</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the time stamp from <em>event</em>, if there is one; otherwise returns Gdk::CURRENT_TIME. <a href="#a6d785b16c3532cdcd0794d7d4161c40e"></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_1Event.html#adcd60bfd108f761e7f52505eefddf7e7">get_state</a> (<a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& state) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If the event contains a "state" field, puts that field in <em>state</em>. <a href="#adcd60bfd108f761e7f52505eefddf7e7"></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_1Event.html#aa509fcaf5f106ca22379ccea781ceb06">get_coords</a> (double& x_win, double& y_win) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extract the event window relative x/y coordinates from an event. <a href="#aa509fcaf5f106ca22379ccea781ceb06"></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_1Event.html#a08b20bab46fdea9b34b7e7c612110c69">get_root_coords</a> (double& x_root, double& y_root) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extract the root window relative x/y coordinates from an event. <a href="#a08b20bab46fdea9b34b7e7c612110c69"></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_1Event.html#a647640a87ff5976a4ad442d86e7799cc">get_axis</a> (<a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> axis_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">Extract the axis value for a particular axis use from an event structure. <a href="#a647640a87ff5976a4ad442d86e7799cc"></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_1Event.html#a2fc30fd4d95b4bf9f8f8a7f731fbba08">set_screen</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Screen.html">Screen</a> >& screen)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the screen for <em>event</em> to <em>screen</em>. <a href="#a2fc30fd4d95b4bf9f8f8a7f731fbba08"></a><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_1Screen.html">Screen</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a1a0386cc3586fc098ddb5feabc37226e">get_screen</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the screen for the event. <a href="#a1a0386cc3586fc098ddb5feabc37226e"></a><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>< const <a class="el" href="classGdk_1_1Screen.html">Screen</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#aea9ca52d43535409b3ee18ac6c18830e">get_screen</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the screen for the event. <a href="#aea9ca52d43535409b3ee18ac6c18830e"></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_1Event.html#a47dcee1faab7a5c7b84561de153008c2">send_client_message</a> (<a class="el" href="namespaceGdk.html#abc645cff9ee57146245d4a5b4da7abac">NativeWindow</a> winid)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sends an X ClientMessage event to a given window (which must be on the default <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object's purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To man...">Gdk::Display</a>.) This could be used for communicating between different applications, though the amount of data is limited to 20 bytes. <a href="#a47dcee1faab7a5c7b84561de153008c2"></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_1Event.html#a0c11543ac2e244bcc98ffe5011732902">send_client_message</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Display.html">Display</a> >& display, <a class="el" href="namespaceGdk.html#abc645cff9ee57146245d4a5b4da7abac">NativeWindow</a> winid)</td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGdk_1_1Event.html">Event</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#aeac82b61cdde5e8e6477f1835a5095de">get</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks all open displays for a <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> to process,to be processed on, fetching events from the windowing system if necessary. <a href="#aeac82b61cdde5e8e6477f1835a5095de"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGdk_1_1Event.html">Event</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#ab3a63d0588191feb265efb712c46f411">peek</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If there is an event waiting in the event queue of some open display, returns a copy of it. <a href="#ab3a63d0588191feb265efb712c46f411"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGdk_1_1Event.html">Event</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a9a282af82acec6d3b6d233503cb85691">get_graphics_expose</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)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Waits for a GraphicsExpose or NoExpose event from the X server. <a href="#a9a282af82acec6d3b6d233503cb85691"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#ad3844a1151ae6549af4ac19f7abd41dd">events_pending</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks if any events are ready to be processed for any display. <a href="#ad3844a1151ae6549af4ac19f7abd41dd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#aca840aa197d7ea9ea36c7e0061300607">set_show_events</a> (bool show_events)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether a trace of received events is output. <a href="#aca840aa197d7ea9ea36c7e0061300607"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#ac4498a06c7bdf8804f91af934e5d2b7a">get_show_events</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets whether event debugging output is enabled. <a href="#ac4498a06c7bdf8804f91af934e5d2b7a"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdkEvent* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a297866c4cc91dbe6cacb3236361301a9">gobject_</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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a5d74f5c6134933e244ca0bf21cdc4d91">swap</a> (<a class="el" href="classGdk_1_1Event.html">Event</a>& lhs, <a class="el" href="classGdk_1_1Event.html">Event</a>& rhs)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Event.html#a90bf6ff26dda59432c3ac822dde33098">wrap</a> (GdkEvent* 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="#a90bf6ff26dda59432c3ac822dde33098"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae03c66bcd189f44073891575592b7677"></a><!-- doxytag: member="Gdk::Event::Event" ref="ae03c66bcd189f44073891575592b7677" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gdk::Event::Event </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="af5f1d2094cb30b218c337c29e0764925"></a><!-- doxytag: member="Gdk::Event::Event" ref="af5f1d2094cb30b218c337c29e0764925" args="(GdkEvent *gobject, bool make_a_copy=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gdk::Event::Event </td> <td>(</td> <td class="paramtype">GdkEvent * </td> <td class="paramname"><em>gobject</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>make_a_copy</em> = <code>true</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a130915030025da8d1653506122c84385"></a><!-- doxytag: member="Gdk::Event::Event" ref="a130915030025da8d1653506122c84385" args="(const Event &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gdk::Event::Event </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1Event.html">Event</a>& </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aff6e2fdbf97ab2bd759b64652a86d8b2"></a><!-- doxytag: member="Gdk::Event::~Event" ref="aff6e2fdbf97ab2bd759b64652a86d8b2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gdk::Event::~Event </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ad3844a1151ae6549af4ac19f7abd41dd"></a><!-- doxytag: member="Gdk::Event::events_pending" ref="ad3844a1151ae6549af4ac19f7abd41dd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool Gdk::Event::events_pending </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Checks if any events are ready to be processed for any display. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if any events are pending. </dd></dl> </div> </div> <a class="anchor" id="aeac82b61cdde5e8e6477f1835a5095de"></a><!-- doxytag: member="Gdk::Event::get" ref="aeac82b61cdde5e8e6477f1835a5095de" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classGdk_1_1Event.html">Event</a> Gdk::Event::get </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Checks all open displays for a <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> to process,to be processed on, fetching events from the windowing system if necessary. </p> <p>See <a class="el" href="classGdk_1_1Display.html#a71ef8186ac0ebce17ab869eb77f5e9e7" title="Gets the next Gdk::Event to be processed for display, fetching events from the windowing system if ne...">Gdk::Display::get_event()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The next <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> to be processed, or <code>0</code> if no events are pending. The returned <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> should be freed with free(). </dd></dl> </div> </div> <a class="anchor" id="a647640a87ff5976a4ad442d86e7799cc"></a><!-- doxytag: member="Gdk::Event::get_axis" ref="a647640a87ff5976a4ad442d86e7799cc" args="(AxisUse axis_use, double &value) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::get_axis </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaa3ef1fe9ccf3e0e884578dba5a63feb7">AxisUse</a> </td> <td class="paramname"><em>axis_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>Extract the axis value for a particular axis use from an event structure. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">axis_use</td><td>The axis use to look for. </td></tr> <tr><td class="paramname">value</td><td>Location to store the value found. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the specified axis was found, otherwise <code>false</code>. </dd></dl> </div> </div> <a class="anchor" id="aa509fcaf5f106ca22379ccea781ceb06"></a><!-- doxytag: member="Gdk::Event::get_coords" ref="aa509fcaf5f106ca22379ccea781ceb06" args="(double &x_win, double &y_win) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::get_coords </td> <td>(</td> <td class="paramtype">double & </td> <td class="paramname"><em>x_win</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double & </td> <td class="paramname"><em>y_win</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extract the event window relative x/y coordinates from an event. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">x_win</td><td>Location to put event window x coordinate. </td></tr> <tr><td class="paramname">y_win</td><td>Location to put event window y coordinate. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the event delivered event window coordinates. </dd></dl> </div> </div> <a class="anchor" id="a9a282af82acec6d3b6d233503cb85691"></a><!-- doxytag: member="Gdk::Event::get_graphics_expose" ref="a9a282af82acec6d3b6d233503cb85691" args="(const Glib::RefPtr< Window > &window)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classGdk_1_1Event.html">Event</a> Gdk::Event::get_graphics_expose </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><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Waits for a GraphicsExpose or NoExpose event from the X server. </p> <p>This is used in the Gtk::Text and Gtk::CList widgets in GTK+ to make sure any GraphicsExpose events are handled before the widget is scrolled.</p> <p>Deprecated: 2.18: </p> <dl><dt><b>Parameters:</b></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> to wait for the events for. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A Gdk::EventExpose if a GraphicsExpose was received, or <code>0</code> if a NoExpose event was received. </dd></dl> </div> </div> <a class="anchor" id="a08b20bab46fdea9b34b7e7c612110c69"></a><!-- doxytag: member="Gdk::Event::get_root_coords" ref="a08b20bab46fdea9b34b7e7c612110c69" args="(double &x_root, double &y_root) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::get_root_coords </td> <td>(</td> <td class="paramtype">double & </td> <td class="paramname"><em>x_root</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double & </td> <td class="paramname"><em>y_root</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extract the root window relative x/y coordinates from an event. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">x_root</td><td>Location to put root window x coordinate. </td></tr> <tr><td class="paramname">y_root</td><td>Location to put root window y coordinate. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the event delivered root window coordinates. </dd></dl> </div> </div> <a class="anchor" id="a1a0386cc3586fc098ddb5feabc37226e"></a><!-- doxytag: member="Gdk::Event::get_screen" ref="a1a0386cc3586fc098ddb5feabc37226e" args="()" --> <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_1Screen.html">Screen</a>> Gdk::Event::get_screen </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the screen for the event. </p> <p>The screen is typically the screen for <code>event->any.window</code>, but for events such as mouse events, it is the screen where the pointer was when the event occurs - that is, the screen which has the root window to which <code>event->motion.x_root</code> and <code>event->motion.y_root</code> are relative.</p> <dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000052">Since gtkmm 2.2:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The screen for the event. </dd></dl> </div> </div> <a class="anchor" id="aea9ca52d43535409b3ee18ac6c18830e"></a><!-- doxytag: member="Gdk::Event::get_screen" ref="aea9ca52d43535409b3ee18ac6c18830e" 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_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Screen.html">Screen</a>> Gdk::Event::get_screen </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the screen for the event. </p> <p>The screen is typically the screen for <code>event->any.window</code>, but for events such as mouse events, it is the screen where the pointer was when the event occurs - that is, the screen which has the root window to which <code>event->motion.x_root</code> and <code>event->motion.y_root</code> are relative.</p> <dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000053">Since gtkmm 2.2:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The screen for the event. </dd></dl> </div> </div> <a class="anchor" id="ac4498a06c7bdf8804f91af934e5d2b7a"></a><!-- doxytag: member="Gdk::Event::get_show_events" ref="ac4498a06c7bdf8804f91af934e5d2b7a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool Gdk::Event::get_show_events </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets whether event debugging output is enabled. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if event debugging output is enabled. </dd></dl> </div> </div> <a class="anchor" id="adcd60bfd108f761e7f52505eefddf7e7"></a><!-- doxytag: member="Gdk::Event::get_state" ref="adcd60bfd108f761e7f52505eefddf7e7" args="(ModifierType &state) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::get_state </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga734c2979005c87dbe51223a0128cdd97">ModifierType</a>& </td> <td class="paramname"><em>state</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>If the event contains a "state" field, puts that field in <em>state</em>. </p> <p>Otherwise stores an empty state (0). Returns <code>true</code> if there was a state field in the event. <em>event</em> may be <code>0</code>, in which case it's treated as if the event had no state field. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">state</td><td>Return location for state. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if there was a state field in the event. </dd></dl> </div> </div> <a class="anchor" id="a6d785b16c3532cdcd0794d7d4161c40e"></a><!-- doxytag: member="Gdk::Event::get_time" ref="a6d785b16c3532cdcd0794d7d4161c40e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint32 Gdk::Event::get_time </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the time stamp from <em>event</em>, if there is one; otherwise returns Gdk::CURRENT_TIME. </p> <p>If <em>event</em> is <code>0</code>, returns Gdk::CURRENT_TIME. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>Time stamp field from <em>event</em>. </dd></dl> </div> </div> <a class="anchor" id="a63e34d8c6300a5fe4939e4dc4fcbf440"></a><!-- doxytag: member="Gdk::Event::gobj" ref="a63e34d8c6300a5fe4939e4dc4fcbf440" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GdkEvent* Gdk::Event::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 instance. </p> </div> </div> <a class="anchor" id="a21a5ddedef8a375f19412ce2d6c37d90"></a><!-- doxytag: member="Gdk::Event::gobj" ref="a21a5ddedef8a375f19412ce2d6c37d90" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdkEvent* Gdk::Event::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 instance. </p> </div> </div> <a class="anchor" id="a322551c2b247575997ef1e3bc498751a"></a><!-- doxytag: member="Gdk::Event::gobj_copy" ref="a322551c2b247575997ef1e3bc498751a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdkEvent* Gdk::Event::gobj_copy </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. </p> </div> </div> <a class="anchor" id="abd217b33d80155460a6c5d6339f914bc"></a><!-- doxytag: member="Gdk::Event::operator=" ref="abd217b33d80155460a6c5d6339f914bc" args="(const Event &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGdk_1_1Event.html">Event</a>& Gdk::Event::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1Event.html">Event</a>& </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ab3a63d0588191feb265efb712c46f411"></a><!-- doxytag: member="Gdk::Event::peek" ref="ab3a63d0588191feb265efb712c46f411" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classGdk_1_1Event.html">Event</a> Gdk::Event::peek </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>If there is an event waiting in the event queue of some open display, returns a copy of it. </p> <p>See <a class="el" href="classGdk_1_1Display.html#a3b7ad20b7a23a50c3b5b48482deac281" title="Gets a copy of the first Gdk::Event in the display's event queue, without removing the event from...">Gdk::Display::peek_event()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A copy of the first <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> on some event queue, or <code>0</code> if no events are in any queues. The returned <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> should be freed with free(). </dd></dl> </div> </div> <a class="anchor" id="a7e9830470be83a7206db3a8c5436ef08"></a><!-- doxytag: member="Gdk::Event::put" ref="a7e9830470be83a7206db3a8c5436ef08" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gdk::Event::put </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is <code>0</code>. </p> <p>See <a class="el" href="classGdk_1_1Display.html#afaca03c9f4b869fdd127c298869f948b" title="Appends a copy of the given event onto the front of the event queue for display.">Gdk::Display::put_event()</a>. </p> </div> </div> <a class="anchor" id="a47dcee1faab7a5c7b84561de153008c2"></a><!-- doxytag: member="Gdk::Event::send_client_message" ref="a47dcee1faab7a5c7b84561de153008c2" args="(NativeWindow winid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::send_client_message </td> <td>(</td> <td class="paramtype"><a class="el" href="namespaceGdk.html#abc645cff9ee57146245d4a5b4da7abac">NativeWindow</a> </td> <td class="paramname"><em>winid</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sends an X ClientMessage event to a given window (which must be on the default <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object's purpose is two fold: To grab/ungrab keyboard focus and mouse pointer To man...">Gdk::Display</a>.) This could be used for communicating between different applications, though the amount of data is limited to 20 bytes. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">winid</td><td>The window to send the X ClientMessage event to. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Non-zero on success. </dd></dl> </div> </div> <a class="anchor" id="a0c11543ac2e244bcc98ffe5011732902"></a><!-- doxytag: member="Gdk::Event::send_client_message" ref="a0c11543ac2e244bcc98ffe5011732902" args="(const Glib::RefPtr< Display > &display, NativeWindow winid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::Event::send_client_message </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_1Display.html">Display</a> >& </td> <td class="paramname"><em>display</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceGdk.html#abc645cff9ee57146245d4a5b4da7abac">NativeWindow</a> </td> <td class="paramname"><em>winid</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a2fc30fd4d95b4bf9f8f8a7f731fbba08"></a><!-- doxytag: member="Gdk::Event::set_screen" ref="a2fc30fd4d95b4bf9f8f8a7f731fbba08" args="(const Glib::RefPtr< Screen > &screen)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gdk::Event::set_screen </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_1Screen.html">Screen</a> >& </td> <td class="paramname"><em>screen</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the screen for <em>event</em> to <em>screen</em>. </p> <p>The event must have been allocated by GTK+, for instance, by <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01181.html#ga96dfad10d760ddb38d90f2dd68649a8b">copy()</a>.</p> <dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000051">Since gtkmm 2.2:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">screen</td><td>A <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation of a physical sc...">Gdk::Screen</a>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aca840aa197d7ea9ea36c7e0061300607"></a><!-- doxytag: member="Gdk::Event::set_show_events" ref="aca840aa197d7ea9ea36c7e0061300607" args="(bool show_events)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void Gdk::Event::set_show_events </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>show_events</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether a trace of received events is output. </p> <p>Note that GTK+ must be compiled with debugging (that is, configured using the <option>--enable-debug</option> option) to use this option. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">show_events</td><td><code>true</code> to output event debugging information. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ac46208ba6a7b2f61f486997146728f4c"></a><!-- doxytag: member="Gdk::Event::swap" ref="ac46208ba6a7b2f61f486997146728f4c" args="(Event &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gdk::Event::swap </td> <td>(</td> <td class="paramtype"><a class="el" href="classGdk_1_1Event.html">Event</a>& </td> <td class="paramname"><em>other</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="a5d74f5c6134933e244ca0bf21cdc4d91"></a><!-- doxytag: member="Gdk::Event::swap" ref="a5d74f5c6134933e244ca0bf21cdc4d91" args="(Event &lhs, Event &rhs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void swap </td> <td>(</td> <td class="paramtype"><a class="el" href="classGdk_1_1Event.html">Event</a>& </td> <td class="paramname"><em>lhs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGdk_1_1Event.html">Event</a>& </td> <td class="paramname"><em>rhs</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">lhs</td><td>The left-hand side </td></tr> <tr><td class="paramname">rhs</td><td>The right-hand side </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a90bf6ff26dda59432c3ac822dde33098"></a><!-- doxytag: member="Gdk::Event::wrap" ref="a90bf6ff26dda59432c3ac822dde33098" args="(GdkEvent *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> wrap </td> <td>(</td> <td class="paramtype">GdkEvent * </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/><h2>Member Data Documentation</h2> <a class="anchor" id="a297866c4cc91dbe6cacb3236361301a9"></a><!-- doxytag: member="Gdk::Event::gobject_" ref="a297866c4cc91dbe6cacb3236361301a9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdkEvent* <a class="el" href="classGdk_1_1Event.html#a297866c4cc91dbe6cacb3236361301a9">Gdk::Event::gobject_</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gdkmm/event.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>