<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Gdk::Display class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gdk::Display Class Reference</h1>Inheritance diagram for Gdk::Display:<p><center><img src="classGdk_1_1Display__inherit__graph.png" border="0" usemap="#Gdk_1_1Display__inherit__map" alt="Inheritance graph"></center> <map name="Gdk_1_1Display__inherit__map"> <area href="classGlib_1_1Object.html" shape="rect" coords="21,86,101,105" alt=""> <area href="classGlib_1_1ObjectBase.html" shape="rect" coords="7,17,116,36" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGdk_1_1Display-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a0">~Display</a> ()</td></tr> <tr><td nowrap align=right valign=top>GdkDisplay* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a1">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GdkDisplay* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a2">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top>GdkDisplay* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a3">gobj_copy</a> ()</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a4">get_name</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the name of the display.</em> <a href="#a4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a5">get_n_screens</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the number of screen managed by the <em>display</em> .</em> <a href="#a5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a6">get_screen</a> (int screen_num)</td></tr> <tr><td> </td><td><font size=-1><em>Returns a screen object for one of the screens of the display.</em> <a href="#a6"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a7">get_default_screen</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Get the default <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> for <em>display</em> .</em> <a href="#a7"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a8">pointer_ungrab</a> (guint32 time_)</td></tr> <tr><td> </td><td><font size=-1><em>Release any pointer grab.</em> <a href="#a8"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a9">keyboard_ungrab</a> (guint32 time_)</td></tr> <tr><td> </td><td><font size=-1><em>Release any keyboard grab.</em> <a href="#a9"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a10">pointer_is_grabbed</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Test if the pointer is grabbed.</em> <a href="#a10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a11">beep</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Emits a short beep on <em>display.</em> </em> <a href="#a11"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a12">sync</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Flushes any requests queued for the windowing system and waits until all requests have been handled.</em> <a href="#a12"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a13">close</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Closes the connection windowing system for the given display, and cleans up associated resources.</em> <a href="#a13"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<br> <a class="el" href="classGdk_1_1Device.html">Device</a> > > </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a14">list_devices</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns the list of available input devices attached to <em>display</em> .</em> <a href="#a14"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>GdkEvent* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a15">get_event</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Gets the next <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> to be processed for <em>display</em> , fetching events from the windowing system if necessary.</em> <a href="#a15"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>GdkEvent* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a16">peek_event</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Gets a copy of the first <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> in the <em>display</em> 's event queue, without removing the event from the queue.</em> <a href="#a16"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a17">put_event</a> (GdkEvent* event)</td></tr> <tr><td> </td><td><font size=-1><em>Appends a copy of the given event onto the front of the event queue for <em>display</em> .</em> <a href="#a17"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a18">add_client_message_filter</a> (GdkAtom message_type, GdkFilterFunc func, gpointer data)</td></tr> <tr><td> </td><td><font size=-1><em>Adds a filter to be called when X ClientMessage events are received.</em> <a href="#a18"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a19">set_double_click_time</a> (guint msec)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the double click time (two clicks within this time interval count as a double click and result in a Gdk::2BUTTON_PRESS event).</em> <a href="#a19"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Device.html">Device</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a20">get_core_pointer</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns the core pointer device for the given display.</em> <a href="#a20"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Device.html">Device</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a21">get_core_pointer</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Returns the core pointer device for the given display.</em> <a href="#a21"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a22">get_pointer</a> (<a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>>& screen, int& x, int& y, <a class="el" href="group__gdkmmEnums.html#a92">ModifierType</a>& mask)</td></tr> <tr><td> </td><td><font size=-1><em>Gets the current location of the pointer and the current modifier mask for a given display.</em> <a href="#a22"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a23">get_pointer</a> (int& x, int& y, <a class="el" href="group__gdkmmEnums.html#a92">ModifierType</a>& mask)</td></tr> <tr><td> </td><td><font size=-1><em>Gets the current location of the pointer and the current modifier mask for a given display.</em> <a href="#a23"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a24">get_window_at_pointer</a> (int& win_x, int& win_y)</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the window underneath the mouse pointer, returning the location of that window in <em>win_x</em> , <em>win_y</em> for <em>screen</em> .</em> <a href="#a24"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Window.html">Window</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a25">get_window_at_pointer</a> (int& win_x, int& win_y) const</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the window underneath the mouse pointer, returning the location of that window in <em>win_x</em> , <em>win_y</em> for <em>screen</em> .</em> <a href="#a25"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a26">get_window_at_pointer</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the window underneath the mouse pointer.</em> <a href="#a26"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Window.html">Window</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a27">get_window_at_pointer</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the window underneath the mouse pointer.</em> <a href="#a27"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>GdkDisplayPointerHooks* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a28">set_pointer_hooks</a> (const GdkDisplayPointerHooks* new_hooks)</td></tr> <tr><td> </td><td><font size=-1><em>This function allows for hooking into the operation of getting the current location of the pointer on a particular display.</em> <a href="#a28"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>guint32 </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a29">get_drag_protocol</a> (guint32 xid, GdkDragProtocol& protocol)</td></tr> <tr><td> </td><td><font size=-1><em>Finds out the DND protocol supported by a window.</em> <a href="#a29"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>GdkKeymap* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a30">get_keymap</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GdkKeymap* </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a31">get_keymap</a> () const</td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a32">set_selection_owner</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>>& owner, GdkAtom selection, guint32 time_, bool send_event)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a33">get_selection_owner</a> (GdkAtom selection)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a34">selection_send_notify</a> (guint32 requestor, GdkAtom selection, GdkAtom target, GdkAtom property, guint32 time_)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a35">lookup_pixmap</a> (GdkNativeWindow anid)</td></tr> <tr><td> </td><td><font size=-1><em>Looks up the <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> that wraps the given native pixmap handle.</em> <a href="#a35"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a>> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a36">lookup_pixmap</a> (GdkNativeWindow anid) const</td></tr> <tr><td> </td><td><font size=-1><em>Looks up the <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> that wraps the given native pixmap handle.</em> <a href="#a36"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>< void,<br> bool > </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#a37">signal_closed</a> ()</td></tr> <tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#d0">open</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& display_name)</td></tr> <tr><td> </td><td><font size=-1><em>Opens a display.</em> <a href="#d0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#d1">get_default</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Gets the default Gdk::Display.</em> <a href="#d1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#d2">open_default_libgtk_only</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Opens the default display specified by command line arguments or environment variables, sets it as the default display, and returns it.</em> <a href="#d2"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#b0">Display</a> ()</td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#b1">on_closed</a> (bool is_error)</td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Gdk::Display> </td><td valign=bottom><a class="el" href="classGdk_1_1Display.html#k0">wrap</a> (GdkDisplay* object, bool take_copy=false)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gdk::Display::~Display"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual Gdk::Display::~Display </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="b0" doxytag="Gdk::Display::Display"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gdk::Display::Display </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a18" doxytag="Gdk::Display::add_client_message_filter"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::add_client_message_filter </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkAtom </td> <td class="mdname" nowrap> <em>message_type</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkFilterFunc </td> <td class="mdname" nowrap> <em>func</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>gpointer </td> <td class="mdname" nowrap> <em>data</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Adds a filter to be called when X ClientMessage events are received. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>message_type</em> </td><td>The type of ClientMessage events to receive. This will be checked against the <em>message_type</em> field of the XClientMessage event struct. </td></tr> <tr><td valign=top><em>func</em> </td><td>The function to call to process the event. </td></tr> <tr><td valign=top><em>data</em> </td><td>User data to pass to <em>func</em> . </td></tr> </table> </dl> </td> </tr> </table> <a name="a11" doxytag="Gdk::Display::beep"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::beep </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Emits a short beep on <em>display.</em> <p> Since: 2.2 </td> </tr> </table> <a name="a13" doxytag="Gdk::Display::close"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::close </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Closes the connection windowing system for the given display, and cleans up associated resources. <p> Since: 2.2 </td> </tr> </table> <a name="a21" doxytag="Gdk::Display::get_core_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Device.html">Device</a>> Gdk::Display::get_core_pointer </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the core pointer device for the given display. <p> <dl compact><dt><b>Returns:</b></dt><dd>The core pointer device; this is owned by the display and should not be freed.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a20" doxytag="Gdk::Display::get_core_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Device.html">Device</a>> Gdk::Display::get_core_pointer </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the core pointer device for the given display. <p> <dl compact><dt><b>Returns:</b></dt><dd>The core pointer device; this is owned by the display and should not be freed.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="d1" doxytag="Gdk::Display::get_default"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> Gdk::Display::get_default </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the default Gdk::Display. <p> This is a convenience function for: <p> gdk_display_manager_get_default_display (manager_get()) <p> <dl compact><dt><b>Returns:</b></dt><dd>A Gdk::Display, or <code>0</code> if there is no default display.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a7" doxytag="Gdk::Display::get_default_screen"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> Gdk::Display::get_default_screen </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get the default <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> for <em>display</em> . <p> <dl compact><dt><b>Returns:</b></dt><dd>The default <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> object for <em>display</em> </dd></dl> Since: 2.2. </td> </tr> </table> <a name="a29" doxytag="Gdk::Display::get_drag_protocol"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> guint32 Gdk::Display::get_drag_protocol </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">guint32 </td> <td class="mdname" nowrap> <em>xid</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkDragProtocol& </td> <td class="mdname" nowrap> <em>protocol</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Finds out the DND protocol supported by a window. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display</em> </td><td>The Gdk::Display where the destination window resides. </td></tr> <tr><td valign=top><em>xid</em> </td><td>The X id of the destination window. </td></tr> <tr><td valign=top><em>protocol</em> </td><td>Location where the supported DND protocol is returned. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The X id of the window where the drop should happen. This may be <em>xid</em> or the X id of a proxy window, or None if <em>xid</em> doesn't support Drag and Drop. </dd></dl> </td> </tr> </table> <a name="a15" doxytag="Gdk::Display::get_event"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkEvent* Gdk::Display::get_event </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the next <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> to be processed for <em>display</em> , fetching events from the windowing system if necessary. <p> <dl compact><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 gdk_event_free().</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a31" doxytag="Gdk::Display::get_keymap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GdkKeymap* Gdk::Display::get_keymap </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display</em> </td><td>The Gdk::Display. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The Gdk::Keymap attached to <em>display</em> . the Gdk::Keymap attached to <em>display</em> .</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a30" doxytag="Gdk::Display::get_keymap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkKeymap* Gdk::Display::get_keymap </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display</em> </td><td>The Gdk::Display. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The Gdk::Keymap attached to <em>display</em> . the Gdk::Keymap attached to <em>display</em> .</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a5" doxytag="Gdk::Display::get_n_screens"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Gdk::Display::get_n_screens </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the number of screen managed by the <em>display</em> . <p> <dl compact><dt><b>Returns:</b></dt><dd>Number of screens.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a4" doxytag="Gdk::Display::get_name"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gdk::Display::get_name </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the name of the display. <p> <dl compact><dt><b>Returns:</b></dt><dd>A string representing the display name. This string is owned by GDK and should not be modified or freed.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a23" doxytag="Gdk::Display::get_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::get_pointer </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">int& </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int& </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__gdkmmEnums.html#a92">ModifierType</a>& </td> <td class="mdname" nowrap> <em>mask</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the current location of the pointer and the current modifier mask for a given display. <p> : location to store root window X coordinate of pointer. : location to store root window Y coordinate of pointer. : location to store current modifier mask </td> </tr> </table> <a name="a22" doxytag="Gdk::Display::get_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::get_pointer </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>>& </td> <td class="mdname" nowrap> <em>screen</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int& </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int& </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__gdkmmEnums.html#a92">ModifierType</a>& </td> <td class="mdname" nowrap> <em>mask</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the current location of the pointer and the current modifier mask for a given display. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>screen</em> </td><td>location to store the screen that the cursor is on, or NULL. : location to store root window X coordinate of pointer. : location to store root window Y coordinate of pointer. : location to store current modifier mask </td></tr> </table> </dl> </td> </tr> </table> <a name="a6" doxytag="Gdk::Display::get_screen"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> Gdk::Display::get_screen </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>screen_num</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns a screen object for one of the screens of the display. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>screen_num</em> </td><td>The screen number. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> object</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a33" doxytag="Gdk::Display::get_selection_owner"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> Gdk::Display::get_selection_owner </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkAtom </td> <td class="mdname1" valign="top" nowrap> <em>selection</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a27" doxytag="Gdk::Display::get_window_at_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Window.html">Window</a>> Gdk::Display::get_window_at_pointer </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the window underneath the mouse pointer. <p> Returns a null RefPtr if the window under the mouse pointer is not known to GDK (for example, belongs to another application). </td> </tr> </table> <a name="a26" doxytag="Gdk::Display::get_window_at_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> Gdk::Display::get_window_at_pointer </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the window underneath the mouse pointer. <p> Returns a null RefPtr if the window under the mouse pointer is not known to GDK (for example, belongs to another application). </td> </tr> </table> <a name="a25" doxytag="Gdk::Display::get_window_at_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Window.html">Window</a>> Gdk::Display::get_window_at_pointer </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">int& </td> <td class="mdname" nowrap> <em>win_x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int& </td> <td class="mdname" nowrap> <em>win_y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the window underneath the mouse pointer, returning the location of that window in <em>win_x</em> , <em>win_y</em> for <em>screen</em> . <p> Returns <code>0</code> if the window under the mouse pointer is not known to GDK (for example, belongs to another application). <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>win_x</em> </td><td>Return location for origin of the window under the pointer. </td></tr> <tr><td valign=top><em>win_y</em> </td><td>Return location for origin of the window under the pointer. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The window under the mouse pointer, or <code>0</code></dd></dl> Since: 2.2. </td> </tr> </table> <a name="a24" doxytag="Gdk::Display::get_window_at_pointer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>> Gdk::Display::get_window_at_pointer </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">int& </td> <td class="mdname" nowrap> <em>win_x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int& </td> <td class="mdname" nowrap> <em>win_y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the window underneath the mouse pointer, returning the location of that window in <em>win_x</em> , <em>win_y</em> for <em>screen</em> . <p> Returns <code>0</code> if the window under the mouse pointer is not known to GDK (for example, belongs to another application). <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>win_x</em> </td><td>Return location for origin of the window under the pointer. </td></tr> <tr><td valign=top><em>win_y</em> </td><td>Return location for origin of the window under the pointer. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The window under the mouse pointer, or <code>0</code></dd></dl> Since: 2.2. </td> </tr> </table> <a name="a2" doxytag="Gdk::Display::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GdkDisplay* Gdk::Display::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a3">Glib::ObjectBase</a>. </td> </tr> </table> <a name="a1" doxytag="Gdk::Display::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkDisplay* Gdk::Display::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a2">Glib::ObjectBase</a>. </td> </tr> </table> <a name="a3" doxytag="Gdk::Display::gobj_copy"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkDisplay* Gdk::Display::gobj_copy </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a9" doxytag="Gdk::Display::keyboard_ungrab"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::keyboard_ungrab </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">guint32 </td> <td class="mdname1" valign="top" nowrap> <em>time_</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Release any keyboard grab. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>time_</em> </td><td>A timestap (e.g Gdk::CURRENT_TIME). </td></tr> </table> </dl> </td> </tr> </table> <a name="a14" doxytag="Gdk::Display::list_devices"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a><<a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Device.html">Device</a>>> Gdk::Display::list_devices </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the list of available input devices attached to <em>display</em> . <p> The list is statically allocated and should not be freed. <dl compact><dt><b>Returns:</b></dt><dd>A list of <a class="el" href="classGdk_1_1Device.html">Gdk::Device</a></dd></dl> Since: 2.2. </td> </tr> </table> <a name="a36" doxytag="Gdk::Display::lookup_pixmap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a>> Gdk::Display::lookup_pixmap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkNativeWindow </td> <td class="mdname1" valign="top" nowrap> <em>anid</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Looks up the <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> that wraps the given native pixmap handle. <p> For example in the X backend, a native pixmap handle is an Xlib <type>XID</type>. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display</em> </td><td>The Gdk::Display associated with <em>anid</em> . </td></tr> <tr><td valign=top><em>anid</em> </td><td>A native pixmap handle. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> wrapper for the native pixmap, or <code>0</code> if there is none.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a35" doxytag="Gdk::Display::lookup_pixmap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a>> Gdk::Display::lookup_pixmap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkNativeWindow </td> <td class="mdname1" valign="top" nowrap> <em>anid</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Looks up the <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> that wraps the given native pixmap handle. <p> For example in the X backend, a native pixmap handle is an Xlib <type>XID</type>. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display</em> </td><td>The Gdk::Display associated with <em>anid</em> . </td></tr> <tr><td valign=top><em>anid</em> </td><td>A native pixmap handle. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Pixmap.html">Gdk::Pixmap</a> wrapper for the native pixmap, or <code>0</code> if there is none.</dd></dl> Since: 2.2. </td> </tr> </table> <a name="b1" doxytag="Gdk::Display::on_closed"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void Gdk::Display::on_closed </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>is_error</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="d0" doxytag="Gdk::Display::open"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> Gdk::Display::open </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>display_name</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Opens a display. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>display_name</em> </td><td>The name of the display to open. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>A Gdk::Display, or <code>0</code> if the display could not be opened. </dd></dl> </td> </tr> </table> <a name="d2" doxytag="Gdk::Display::open_default_libgtk_only"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Display> Gdk::Display::open_default_libgtk_only </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Opens the default display specified by command line arguments or environment variables, sets it as the default display, and returns it. <p> gdk_parse_args must have been called first. If the default display has previously been set, simply returns that. An internal function that should not be used by applications. <dl compact><dt><b>Returns:</b></dt><dd>The default display, if it could be opened, otherwise <code>0</code>. </dd></dl> </td> </tr> </table> <a name="a16" doxytag="Gdk::Display::peek_event"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkEvent* Gdk::Display::peek_event </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets a copy of the first <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> in the <em>display</em> 's event queue, without removing the event from the queue. <p> (Note that this function will not get more events from the windowing system. It only checks the events that have already been moved to the GDK event queue.) <dl compact><dt><b>Returns:</b></dt><dd>A copy of the first <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> on the event queue, or <code>0</code> if no events are in the queue. The returned <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a> should be freed with gdk_event_free().</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a10" doxytag="Gdk::Display::pointer_is_grabbed"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gdk::Display::pointer_is_grabbed </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Test if the pointer is grabbed. <p> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if an active X pointer grab is in effect</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a8" doxytag="Gdk::Display::pointer_ungrab"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::pointer_ungrab </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">guint32 </td> <td class="mdname1" valign="top" nowrap> <em>time_</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Release any pointer grab. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>time_</em> </td><td>A timestap (e.g. GDK_CURRENT_TIME). </td></tr> </table> </dl> </td> </tr> </table> <a name="a17" doxytag="Gdk::Display::put_event"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::put_event </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkEvent* </td> <td class="mdname1" valign="top" nowrap> <em>event</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Appends a copy of the given event onto the front of the event queue for <em>display</em> . <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>event</em> </td><td>A <a class="el" href="classGdk_1_1Event.html">Gdk::Event</a>. </td></tr> </table> </dl> </td> </tr> </table> <a name="a34" doxytag="Gdk::Display::selection_send_notify"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::selection_send_notify </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">guint32 </td> <td class="mdname" nowrap> <em>requestor</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkAtom </td> <td class="mdname" nowrap> <em>selection</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkAtom </td> <td class="mdname" nowrap> <em>target</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkAtom </td> <td class="mdname" nowrap> <em>property</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>guint32 </td> <td class="mdname" nowrap> <em>time_</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a19" doxytag="Gdk::Display::set_double_click_time"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::set_double_click_time </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">guint </td> <td class="mdname1" valign="top" nowrap> <em>msec</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the double click time (two clicks within this time interval count as a double click and result in a Gdk::2BUTTON_PRESS event). <p> Applications should NOT set this, it is a global user-configured setting. <p> Since: 2.2 <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>msec</em> </td><td>Double click time in milliseconds (thousandths of a second). </td></tr> </table> </dl> </td> </tr> </table> <a name="a28" doxytag="Gdk::Display::set_pointer_hooks"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GdkDisplayPointerHooks* Gdk::Display::set_pointer_hooks </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const GdkDisplayPointerHooks* </td> <td class="mdname1" valign="top" nowrap> <em>new_hooks</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> This function allows for hooking into the operation of getting the current location of the pointer on a particular display. <p> This is only useful for such low-level tools as an event recorder. Applications should never have any reason to use this facility. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>new_hooks</em> </td><td>A table of pointers to functions for getting quantities related to the current pointer position, or <code>0</code> to restore the default table. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>The previous pointer hook table</dd></dl> Since: 2.2. </td> </tr> </table> <a name="a32" doxytag="Gdk::Display::set_selection_owner"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gdk::Display::set_selection_owner </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Window.html">Window</a>>& </td> <td class="mdname" nowrap> <em>owner</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GdkAtom </td> <td class="mdname" nowrap> <em>selection</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>guint32 </td> <td class="mdname" nowrap> <em>time_</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>send_event</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a37" doxytag="Gdk::Display::signal_closed"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a><void,bool> Gdk::Display::signal_closed </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Prototype:</b></dt><dd><code>void closed(bool is_error)</code> </dd></dl> </td> </tr> </table> <a name="a12" doxytag="Gdk::Display::sync"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gdk::Display::sync </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Flushes any requests queued for the windowing system and waits until all requests have been handled. <p> This is often used for making sure that the display is synchronized with the current state of the program. Calling <a class="el" href="classGdk_1_1Display.html#a12">sync()</a> before gdk_error_trap_pop() makes sure that any errors generated from earlier requests are handled before the error trap is removed. <p> This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing. <p> Since: 2.2 </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gdk::Display::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Gdk::Display> wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GdkDisplay* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="display_8h.html">display.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>