<refentry id="gdk-X-Window-System-Interaction">
<refmeta>
<refentrytitle>X Window System Interaction</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GDK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>X Window System Interaction</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

#include &lt;gdk/gdk.h&gt;


#define     <link linkend="GDK-ROOT-WINDOW-CAPS">GDK_ROOT_WINDOW</link>                 ()
#define     <link linkend="GDK-ROOT-PARENT-CAPS">GDK_ROOT_PARENT</link>                 ()
#define     <link linkend="GDK-DISPLAY-CAPS">GDK_DISPLAY</link>                     ()
#define     <link linkend="GDK-WINDOW-XDISPLAY-CAPS">GDK_WINDOW_XDISPLAY</link>             (win)
#define     <link linkend="GDK-WINDOW-XID-CAPS">GDK_WINDOW_XID</link>                  (win)
#define     <link linkend="GDK-PIXMAP-XDISPLAY-CAPS">GDK_PIXMAP_XDISPLAY</link>             (win)
#define     <link linkend="GDK-PIXMAP-XID-CAPS">GDK_PIXMAP_XID</link>                  (win)
#define     <link linkend="GDK-DRAWABLE-XDISPLAY-CAPS">GDK_DRAWABLE_XDISPLAY</link>           (win)
#define     <link linkend="GDK-DRAWABLE-XID-CAPS">GDK_DRAWABLE_XID</link>                (win)
#define     <link linkend="GDK-IMAGE-XDISPLAY-CAPS">GDK_IMAGE_XDISPLAY</link>              (image)
#define     <link linkend="GDK-IMAGE-XIMAGE-CAPS">GDK_IMAGE_XIMAGE</link>                (image)
#define     <link linkend="GDK-GC-XDISPLAY-CAPS">GDK_GC_XDISPLAY</link>                 (gc)
#define     <link linkend="GDK-COLORMAP-XDISPLAY-CAPS">GDK_COLORMAP_XDISPLAY</link>           (cmap)
#define     <link linkend="GDK-COLORMAP-XCOLORMAP-CAPS">GDK_COLORMAP_XCOLORMAP</link>          (cmap)
#define     <link linkend="GDK-VISUAL-XVISUAL-CAPS">GDK_VISUAL_XVISUAL</link>              (vis)
#define     <link linkend="GDK-FONT-XDISPLAY-CAPS">GDK_FONT_XDISPLAY</link>               (font)
#define     <link linkend="GDK-FONT-XFONT-CAPS">GDK_FONT_XFONT</link>                  (font)
#define     <link linkend="GDK-CURSOR-XCURSOR-CAPS">GDK_CURSOR_XCURSOR</link>              (cursor)
#define     <link linkend="GDK-CURSOR-XDISPLAY-CAPS">GDK_CURSOR_XDISPLAY</link>             (cursor)
#define     <link linkend="GDK-GC-XGC-CAPS">GDK_GC_XGC</link>                      (gc)
#define     <link linkend="GDK-GC-GET-XGC-CAPS">GDK_GC_GET_XGC</link>                  (gc)
#define     <link linkend="GDK-WINDOW-XWINDOW-CAPS">GDK_WINDOW_XWINDOW</link>
<link linkend="GdkVisual">GdkVisual</link>*  <link linkend="gdkx-visual-get">gdkx_visual_get</link>                 (<link linkend="VisualID">VisualID</link> xvisualid);
<link linkend="GdkColormap">GdkColormap</link>* <link linkend="gdkx-colormap-get">gdkx_colormap_get</link>              (<link linkend="Colormap">Colormap</link> xcolormap);
<link linkend="GdkPixmap">GdkPixmap</link>*  <link linkend="gdk-pixmap-foreign-new">gdk_pixmap_foreign_new</link>          (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);
<link linkend="GdkWindow">GdkWindow</link>*  <link linkend="gdk-window-foreign-new">gdk_window_foreign_new</link>          (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);
<link linkend="gpointer">gpointer</link>    <link linkend="gdk-xid-table-lookup">gdk_xid_table_lookup</link>            (<link linkend="XID-CAPS">XID</link> xid);
<link linkend="GdkWindow">GdkWindow</link>*  <link linkend="gdk-window-lookup">gdk_window_lookup</link>               (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);
<link linkend="GdkPixmap">GdkPixmap</link>*  <link linkend="gdk-pixmap-lookup">gdk_pixmap_lookup</link>               (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);
#define     <link linkend="gdk-font-lookup">gdk_font_lookup</link>                 (xid)
<link linkend="guint32">guint32</link>     <link linkend="gdk-x11-get-server-time">gdk_x11_get_server_time</link>         (<link linkend="GdkWindow">GdkWindow</link> *window);
<link linkend="gboolean">gboolean</link>    <link linkend="gdk-net-wm-supports">gdk_net_wm_supports</link>             (<link linkend="GdkAtom">GdkAtom</link> property);
<link linkend="Colormap">Colormap</link>    <link linkend="gdk-x11-colormap-get-xcolormap">gdk_x11_colormap_get_xcolormap</link>  (<link linkend="GdkColormap">GdkColormap</link> *colormap);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-colormap-get-xdisplay">gdk_x11_colormap_get_xdisplay</link>   (<link linkend="GdkColormap">GdkColormap</link> *colormap);
<link linkend="Cursor">Cursor</link>      <link linkend="gdk-x11-cursor-get-xcursor">gdk_x11_cursor_get_xcursor</link>      (<link linkend="GdkCursor">GdkCursor</link> *cursor);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-cursor-get-xdisplay">gdk_x11_cursor_get_xdisplay</link>     (<link linkend="GdkCursor">GdkCursor</link> *cursor);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-drawable-get-xdisplay">gdk_x11_drawable_get_xdisplay</link>   (<link linkend="GdkDrawable">GdkDrawable</link> *drawable);
<link linkend="XID-CAPS">XID</link>         <link linkend="gdk-x11-drawable-get-xid">gdk_x11_drawable_get_xid</link>        (<link linkend="GdkDrawable">GdkDrawable</link> *drawable);
G_CONST_RETURN char* <link linkend="gdk-x11-font-get-name">gdk_x11_font_get_name</link>  (<link linkend="GdkFont">GdkFont</link> *font);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-font-get-xdisplay">gdk_x11_font_get_xdisplay</link>       (<link linkend="GdkFont">GdkFont</link> *font);
<link linkend="gpointer">gpointer</link>    <link linkend="gdk-x11-font-get-xfont">gdk_x11_font_get_xfont</link>          (<link linkend="GdkFont">GdkFont</link> *font);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-gc-get-xdisplay">gdk_x11_gc_get_xdisplay</link>         (<link linkend="GdkGC">GdkGC</link> *gc);
<link linkend="GC-CAPS">GC</link>          <link linkend="gdk-x11-gc-get-xgc">gdk_x11_gc_get_xgc</link>              (<link linkend="GdkGC">GdkGC</link> *gc);
<link linkend="Window">Window</link>      <link linkend="gdk-x11-get-default-root-xwindow">gdk_x11_get_default_root_xwindow</link>
                                            (void);
<link linkend="gint">gint</link>        <link linkend="gdk-x11-get-default-screen">gdk_x11_get_default_screen</link>      (void);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-get-default-xdisplay">gdk_x11_get_default_xdisplay</link>    (void);
void        <link linkend="gdk-x11-grab-server">gdk_x11_grab_server</link>             (void);
<link linkend="Display">Display</link>*    <link linkend="gdk-x11-image-get-xdisplay">gdk_x11_image_get_xdisplay</link>      (<link linkend="GdkImage">GdkImage</link> *image);
<link linkend="XImage">XImage</link>*     <link linkend="gdk-x11-image-get-ximage">gdk_x11_image_get_ximage</link>        (<link linkend="GdkImage">GdkImage</link> *image);
void        <link linkend="gdk-x11-ungrab-server">gdk_x11_ungrab_server</link>           (void);
<link linkend="Visual">Visual</link>*     <link linkend="gdk-x11-visual-get-xvisual">gdk_x11_visual_get_xvisual</link>      (<link linkend="GdkVisual">GdkVisual</link> *visual);
<link linkend="Atom">Atom</link>        <link linkend="gdk-x11-atom-to-xatom">gdk_x11_atom_to_xatom</link>           (<link linkend="GdkAtom">GdkAtom</link> atom);
<link linkend="GdkAtom">GdkAtom</link>     <link linkend="gdk-x11-xatom-to-atom">gdk_x11_xatom_to_atom</link>           (<link linkend="Atom">Atom</link> xatom);
<link linkend="Atom">Atom</link>        <link linkend="gdk-x11-get-xatom-by-name">gdk_x11_get_xatom_by_name</link>       (const <link linkend="gchar">gchar</link> *atom_name);
G_CONST_RETURN <link linkend="gchar">gchar</link>* <link linkend="gdk-x11-get-xatom-name">gdk_x11_get_xatom_name</link>
                                            (<link linkend="Atom">Atom</link> xatom);

</synopsis>
</refsynopsisdiv>





<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GDK-ROOT-WINDOW-CAPS">GDK_ROOT_WINDOW()</title>
<programlisting>#define     GDK_ROOT_WINDOW()</programlisting>
<para>
Obtains the Xlib window id of the root window of the current screen. 
</para></refsect2>
<refsect2>
<title><anchor id="GDK-ROOT-PARENT-CAPS">GDK_ROOT_PARENT()</title>
<programlisting>#define     GDK_ROOT_PARENT()</programlisting>
<para>
Obtains the Xlib window id of the root window of the default screen.
</para></refsect2>
<refsect2>
<title><anchor id="GDK-DISPLAY-CAPS">GDK_DISPLAY()</title>
<programlisting>#define GDK_DISPLAY()                 gdk_display
</programlisting>
<para>
The current display.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-WINDOW-XDISPLAY-CAPS">GDK_WINDOW_XDISPLAY()</title>
<programlisting>#define     GDK_WINDOW_XDISPLAY(win)</programlisting>
<para>
Returns the display of a <link linkend="GdkWindow">GdkWindow</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkWindow">GdkWindow</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-WINDOW-XID-CAPS">GDK_WINDOW_XID()</title>
<programlisting>#define     GDK_WINDOW_XID(win)</programlisting>
<para>
Returns the X window belonging to a <link linkend="GdkWindow">GdkWindow</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkWindow">GdkWindow</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the Xlib <type>Window</type> of <parameter>win</parameter>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-PIXMAP-XDISPLAY-CAPS">GDK_PIXMAP_XDISPLAY()</title>
<programlisting>#define     GDK_PIXMAP_XDISPLAY(win)</programlisting>
<para>
Returns the display of a <link linkend="GdkPixmap">GdkPixmap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkPixmap">GdkPixmap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-PIXMAP-XID-CAPS">GDK_PIXMAP_XID()</title>
<programlisting>#define     GDK_PIXMAP_XID(win)</programlisting>
<para>
Returns the X pixmap belonging to a <link linkend="GdkPixmap">GdkPixmap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkPixmap">GdkPixmap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the Xlib <type>XPixmap</type> of <parameter>win</parameter>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-DRAWABLE-XDISPLAY-CAPS">GDK_DRAWABLE_XDISPLAY()</title>
<programlisting>#define     GDK_DRAWABLE_XDISPLAY(win)</programlisting>
<para>
Returns the display of a <link linkend="GdkDrawable">GdkDrawable</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkDrawable">GdkDrawable</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-DRAWABLE-XID-CAPS">GDK_DRAWABLE_XID()</title>
<programlisting>#define     GDK_DRAWABLE_XID(win)</programlisting>
<para>
Returns the X resource (window or pixmap) belonging to a <link linkend="GdkDrawable">GdkDrawable</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>win</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkDrawable">GdkDrawable</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the ID of <parameter>win</parameter>'s X resource.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-IMAGE-XDISPLAY-CAPS">GDK_IMAGE_XDISPLAY()</title>
<programlisting>#define GDK_IMAGE_XDISPLAY(image)     (gdk_x11_image_get_xdisplay (image))
</programlisting>
<para>
Returns the display of a <link linkend="GdkImage">GdkImage</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>image</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkImage">GdkImage</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-IMAGE-XIMAGE-CAPS">GDK_IMAGE_XIMAGE()</title>
<programlisting>#define GDK_IMAGE_XIMAGE(image)       (gdk_x11_image_get_ximage (image))
</programlisting>
<para>
Returns the X image belonging to a <link linkend="GdkImage">GdkImage</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>image</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkImage">GdkImage</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an <type>XImage*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-GC-XDISPLAY-CAPS">GDK_GC_XDISPLAY()</title>
<programlisting>#define     GDK_GC_XDISPLAY(gc)</programlisting>
<para>
Returns the display of a <link linkend="GdkGC">GdkGC</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gc</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkGC">GdkGC</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-COLORMAP-XDISPLAY-CAPS">GDK_COLORMAP_XDISPLAY()</title>
<programlisting>#define GDK_COLORMAP_XDISPLAY(cmap)   (gdk_x11_colormap_get_xdisplay (cmap))
</programlisting>
<para>
Returns the display of a <link linkend="GdkColormap">GdkColormap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cmap</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkColormap">GdkColormap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-COLORMAP-XCOLORMAP-CAPS">GDK_COLORMAP_XCOLORMAP()</title>
<programlisting>#define GDK_COLORMAP_XCOLORMAP(cmap)  (gdk_x11_colormap_get_xcolormap (cmap))
</programlisting>
<para>
Returns the X colormap belonging to a <link linkend="GdkColormap">GdkColormap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cmap</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkColormap">GdkColormap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Colormap</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-VISUAL-XVISUAL-CAPS">GDK_VISUAL_XVISUAL()</title>
<programlisting>#define     GDK_VISUAL_XVISUAL(vis)</programlisting>
<para>
Returns the X visual belonging to a <link linkend="GdkVisual">GdkVisual</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>vis</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkVisual">GdkVisual</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Visual*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-FONT-XDISPLAY-CAPS">GDK_FONT_XDISPLAY()</title>
<programlisting>#define GDK_FONT_XDISPLAY(font)       (gdk_x11_font_get_xdisplay (font))
</programlisting>
<warning>
<para>
<literal>GDK_FONT_XDISPLAY</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the display of a <link linkend="GdkFont">GdkFont</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkFont">GdkFont</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-FONT-XFONT-CAPS">GDK_FONT_XFONT()</title>
<programlisting>#define GDK_FONT_XFONT(font)          (gdk_x11_font_get_xfont (font))
</programlisting>
<warning>
<para>
<literal>GDK_FONT_XFONT</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the X font belonging to a <link linkend="GdkFont">GdkFont</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkFont">GdkFont</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>XFontStruct*</type> or an <type>XFontSet</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-CURSOR-XCURSOR-CAPS">GDK_CURSOR_XCURSOR()</title>
<programlisting>#define GDK_CURSOR_XCURSOR(cursor)    (gdk_x11_cursor_get_xcursor (cursor))
</programlisting>
<para>
Returns the X cursor belonging to a <link linkend="GdkCursor">GdkCursor</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cursor</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkCursor">GdkCursor</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Cursor</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-CURSOR-XDISPLAY-CAPS">GDK_CURSOR_XDISPLAY()</title>
<programlisting>#define GDK_CURSOR_XDISPLAY(cursor)   (gdk_x11_cursor_get_xdisplay (cursor))
</programlisting>
<para>
Returns the display of a <link linkend="GdkCursor">GdkCursor</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cursor</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkCursor">GdkCursor</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-GC-XGC-CAPS">GDK_GC_XGC()</title>
<programlisting>#define     GDK_GC_XGC(gc)</programlisting>
<para>
Returns the X GC of a <link linkend="GdkGC">GdkGC</link>.
</para>
<note><para>
Note that the clip origin, clip region and tile/stipple origin fields of the
returned GC may not be in sync with <parameter>gc</parameter>. If you need that, 
use <link linkend="GDK-GC-GET-XGC-CAPS">GDK_GC_GET_XGC</link>().  
</para></note><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gc</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkGC">GdkGC</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>GC</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-GC-GET-XGC-CAPS">GDK_GC_GET_XGC()</title>
<programlisting>#define GDK_GC_GET_XGC(gc)   (GDK_GC_X11(gc)-&gt;dirty_mask ? _gdk_x11_gc_flush (gc) : ((GdkGCX11 *)(gc))-&gt;xgc)
</programlisting>
<para>
Returns the X GC of a <link linkend="GdkGC">GdkGC</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gc</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkGC">GdkGC</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>GC</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GDK-WINDOW-XWINDOW-CAPS">GDK_WINDOW_XWINDOW</title>
<programlisting>#define     GDK_WINDOW_XWINDOW</programlisting>
<para>
Another name for <link linkend="GDK-DRAWABLE-XID-CAPS">GDK_DRAWABLE_XID</link>(). 
</para></refsect2>
<refsect2>
<title><anchor id="gdkx-visual-get">gdkx_visual_get ()</title>
<programlisting><link linkend="GdkVisual">GdkVisual</link>*  gdkx_visual_get                 (<link linkend="VisualID">VisualID</link> xvisualid);</programlisting>
<para>
Returns a <link linkend="GdkVisual">GdkVisual</link> corresponding to a X visual.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xvisualid</parameter>&nbsp;:</entry>
<entry>a X visual id.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the <link linkend="GdkVisual">GdkVisual</link>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdkx-colormap-get">gdkx_colormap_get ()</title>
<programlisting><link linkend="GdkColormap">GdkColormap</link>* gdkx_colormap_get              (<link linkend="Colormap">Colormap</link> xcolormap);</programlisting>
<para>
Returns a <link linkend="GdkColormap">GdkColormap</link> corresponding to a X colormap.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xcolormap</parameter>&nbsp;:</entry>
<entry>a X colormap.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the <link linkend="GdkColormap">GdkColormap</link>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-pixmap-foreign-new">gdk_pixmap_foreign_new ()</title>
<programlisting><link linkend="GdkPixmap">GdkPixmap</link>*  gdk_pixmap_foreign_new          (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);</programlisting>
<para>
Wraps a native window in a <link linkend="GdkPixmap">GdkPixmap</link>.
This may fail if the pixmap has been destroyed.
</para>
<para>
For example in the X backend, a native pixmap handle is an Xlib
<type>XID</type>.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>anid</parameter>&nbsp;:</entry>
<entry> a native pixmap handle.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the newly-created <link linkend="GdkPixmap">GdkPixmap</link> wrapper for the 
   native pixmap or <literal>NULL</literal> if the pixmap has been destroyed.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-window-foreign-new">gdk_window_foreign_new ()</title>
<programlisting><link linkend="GdkWindow">GdkWindow</link>*  gdk_window_foreign_new          (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);</programlisting>
<para>
Wraps a native window in a <link linkend="GdkWindow">GdkWindow</link>.
This may fail if the window has been destroyed.
</para>
<para>
For example in the X backend, a native window handle is an Xlib
<type>XID</type>.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>anid</parameter>&nbsp;:</entry>
<entry> a native window handle.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the newly-created <link linkend="GdkWindow">GdkWindow</link> wrapper for the 
   native window or <literal>NULL</literal> if the window has been destroyed.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-xid-table-lookup">gdk_xid_table_lookup ()</title>
<programlisting><link linkend="gpointer">gpointer</link>    gdk_xid_table_lookup            (<link linkend="XID-CAPS">XID</link> xid);</programlisting>
<para>
Returns the Gdk object associated with the given X id.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xid</parameter>&nbsp;:</entry>
<entry>an X id.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the associated Gdk object, which may be a <link linkend="GdkPixmap">GdkPixmap</link>,
a <link linkend="GdkWindow">GdkWindow</link> or a <link linkend="GdkFont">GdkFont</link>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-window-lookup">gdk_window_lookup ()</title>
<programlisting><link linkend="GdkWindow">GdkWindow</link>*  gdk_window_lookup               (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);</programlisting>
<para>
Looks up the <link linkend="GdkWindow">GdkWindow</link> that wraps the given native window handle. 
</para>
<para>
For example in the X backend, a native window handle is an Xlib
<type>XID</type>.</para>
<para>
Obtains the <link linkend="GdkWindow">GdkWindow</link> for the given Xlib window ID, or <literal>NULL</literal> if no <link linkend="GdkWindow">GdkWindow</link> has
been created for <parameter>xid</parameter>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>anid</parameter>&nbsp;:</entry>
<entry> a native window handle.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the <link linkend="GdkWindow">GdkWindow</link> wrapper for the native window, 
   or <literal>NULL</literal> if there is none.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-pixmap-lookup">gdk_pixmap_lookup ()</title>
<programlisting><link linkend="GdkPixmap">GdkPixmap</link>*  gdk_pixmap_lookup               (<link linkend="GdkNativeWindow">GdkNativeWindow</link> anid);</programlisting>
<para>
Looks up the <link linkend="GdkPixmap">GdkPixmap</link> that wraps the given native pixmap handle.
</para>
<para>
For example in the X backend, a native pixmap handle is an Xlib
<type>XID</type>.</para>
<para>
Obtains the <link linkend="GdkPixmap">GdkPixmap</link> for the given Xlib pixmap ID, or <literal>NULL</literal> if no <link linkend="GdkPixmap">GdkPixmap</link> has
been created for <parameter>xid</parameter>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>anid</parameter>&nbsp;:</entry>
<entry> a native pixmap handle.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the <link linkend="GdkWindow">GdkWindow</link> wrapper for the native window,
   or <literal>NULL</literal> if there is none.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-font-lookup">gdk_font_lookup()</title>
<programlisting>#define gdk_font_lookup(xid)	   ((GdkFont*) gdk_xid_table_lookup (xid))
</programlisting>
<warning>
<para>
<literal>gdk_font_lookup</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Obtains the <link linkend="GdkFont">GdkFont</link> for the given Xlib pixmap ID, or <literal>NULL</literal> if no <link linkend="GdkPixmap">GdkPixmap</link> has
been created for <parameter>xid</parameter>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xid</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-server-time">gdk_x11_get_server_time ()</title>
<programlisting><link linkend="guint32">guint32</link>     gdk_x11_get_server_time         (<link linkend="GdkWindow">GdkWindow</link> *window);</programlisting>
<para>
Routine to get the current X server time stamp.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>window</parameter>&nbsp;:</entry>
<entry> a <link linkend="GdkWindow">GdkWindow</link>, used for communication with the server.
         The window must have GDK_PROPERTY_CHANGE_MASK in its
         events mask or a hang will result.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the time stamp.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-net-wm-supports">gdk_net_wm_supports ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    gdk_net_wm_supports             (<link linkend="GdkAtom">GdkAtom</link> property);</programlisting>
<para>
This function is specific to the X11 backend of GDK, and indicates
whether the window manager supports a certain hint from the
Extended Window Manager Hints Specification. You can find this
specification on http://www.freedesktop.org.
</para>
<para>
When using this function, keep in mind that the window manager
can change over time; so you shouldn't use this function in
a way that impacts persistent application state. A common bug
is that your application can start up before the window manager
does when the user logs in, and before the window manager starts
<link linkend="gdk-net-wm-supports">gdk_net_wm_supports</link>() will return <literal>FALSE</literal> for every property.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>property</parameter>&nbsp;:</entry>
<entry> a property atom
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> <literal>TRUE</literal> if the window manager supports <parameter>property</parameter>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-colormap-get-xcolormap">gdk_x11_colormap_get_xcolormap ()</title>
<programlisting><link linkend="Colormap">Colormap</link>    gdk_x11_colormap_get_xcolormap  (<link linkend="GdkColormap">GdkColormap</link> *colormap);</programlisting>
<para>
Returns the X colormap belonging to a <link linkend="GdkColormap">GdkColormap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>colormap</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkColormap">GdkColormap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Colormap</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-colormap-get-xdisplay">gdk_x11_colormap_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_colormap_get_xdisplay   (<link linkend="GdkColormap">GdkColormap</link> *colormap);</programlisting>
<para>
Returns the display of a <link linkend="GdkColormap">GdkColormap</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>colormap</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkColormap">GdkColormap</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-cursor-get-xcursor">gdk_x11_cursor_get_xcursor ()</title>
<programlisting><link linkend="Cursor">Cursor</link>      gdk_x11_cursor_get_xcursor      (<link linkend="GdkCursor">GdkCursor</link> *cursor);</programlisting>
<para>
Returns the X cursor belonging to a <link linkend="GdkCursor">GdkCursor</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cursor</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkCursor">GdkCursor</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-cursor-get-xdisplay">gdk_x11_cursor_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_cursor_get_xdisplay     (<link linkend="GdkCursor">GdkCursor</link> *cursor);</programlisting>
<para>
Returns the display of a <link linkend="GdkCursor">GdkCursor</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>cursor</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkCursor">GdkCursor</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-drawable-get-xdisplay">gdk_x11_drawable_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_drawable_get_xdisplay   (<link linkend="GdkDrawable">GdkDrawable</link> *drawable);</programlisting>
<para>
Returns the display of a <link linkend="GdkDrawable">GdkDrawable</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>drawable</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkDrawable">GdkDrawable</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-drawable-get-xid">gdk_x11_drawable_get_xid ()</title>
<programlisting><link linkend="XID-CAPS">XID</link>         gdk_x11_drawable_get_xid        (<link linkend="GdkDrawable">GdkDrawable</link> *drawable);</programlisting>
<para>
Returns the X resource (window or pixmap) belonging to a <link linkend="GdkDrawable">GdkDrawable</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>drawable</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkDrawable">GdkDrawable</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the ID of <parameter>win</parameter>'s X resource.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-font-get-name">gdk_x11_font_get_name ()</title>
<programlisting>G_CONST_RETURN char* gdk_x11_font_get_name  (<link linkend="GdkFont">GdkFont</link> *font);</programlisting>
<warning>
<para>
<literal>gdk_x11_font_get_name</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Return the X Logical Font Description (for font->type == GDK_FONT_FONT)
or comma separated list of XLFDs (for font->type == GDK_FONT_FONTSET)
that was used to load the font. If the same font was loaded
via multiple names, which name is returned is undefined.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry> a <link linkend="GdkFont">GdkFont</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the name of the font. This string is owned
  by GDK and must not be modified or freed.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-font-get-xdisplay">gdk_x11_font_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_font_get_xdisplay       (<link linkend="GdkFont">GdkFont</link> *font);</programlisting>
<warning>
<para>
<literal>gdk_x11_font_get_xdisplay</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the display of a <link linkend="GdkFont">GdkFont</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkFont">GdkFont</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-font-get-xfont">gdk_x11_font_get_xfont ()</title>
<programlisting><link linkend="gpointer">gpointer</link>    gdk_x11_font_get_xfont          (<link linkend="GdkFont">GdkFont</link> *font);</programlisting>
<warning>
<para>
<literal>gdk_x11_font_get_xfont</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the X font belonging to a <link linkend="GdkFont">GdkFont</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkFont">GdkFont</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>XFontStruct*</type> or an <type>XFontSet</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-gc-get-xdisplay">gdk_x11_gc_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_gc_get_xdisplay         (<link linkend="GdkGC">GdkGC</link> *gc);</programlisting>
<para>
Returns the display of a <link linkend="GdkGC">GdkGC</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gc</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkGC">GdkGC</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-gc-get-xgc">gdk_x11_gc_get_xgc ()</title>
<programlisting><link linkend="GC-CAPS">GC</link>          gdk_x11_gc_get_xgc              (<link linkend="GdkGC">GdkGC</link> *gc);</programlisting>
<para>
Returns the X GC of a <link linkend="GdkGC">GdkGC</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gc</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkGC">GdkGC</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>GC</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-default-root-xwindow">gdk_x11_get_default_root_xwindow ()</title>
<programlisting><link linkend="Window">Window</link>      gdk_x11_get_default_root_xwindow
                                            (void);</programlisting>
<para>
Gets the root window of the default screen 
(see <link linkend="gdk-x11-get-default-screen">gdk_x11_get_default_screen</link>()).  
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Window</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-default-screen">gdk_x11_get_default_screen ()</title>
<programlisting><link linkend="gint">gint</link>        gdk_x11_get_default_screen      (void);</programlisting>
<para>
Gets the default GTK+ screen number.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> returns the screen number specified by
  the --display command line option on the DISPLAY environment
  variable <link linkend="gdk-init">gdk_init</link>() calls <link linkend="XOpenDisplay">XOpenDisplay</link>().
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-default-xdisplay">gdk_x11_get_default_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_get_default_xdisplay    (void);</programlisting>
<para>
Gets the default GTK+ display.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the Xlib <type>Display*</type> for the display
  specified in the <option>--display</option> command line option 
  or the <envar>DISPLAY</envar> environment variable.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-grab-server">gdk_x11_grab_server ()</title>
<programlisting>void        gdk_x11_grab_server             (void);</programlisting>
<para>
Call <function><link linkend="XGrabServer">XGrabServer</link>()</function> on the default display. 
To ungrab the server again, use <link linkend="gdk-x11-ungrab-server">gdk_x11_ungrab_server</link>(). 
</para>
<para>
<link linkend="gdk-x11-grab-server">gdk_x11_grab_server</link>()/<link linkend="gdk-x11-ungrab-server">gdk_x11_ungrab_server</link>() calls can be nested.
</para></refsect2>
<refsect2>
<title><anchor id="gdk-x11-image-get-xdisplay">gdk_x11_image_get_xdisplay ()</title>
<programlisting><link linkend="Display">Display</link>*    gdk_x11_image_get_xdisplay      (<link linkend="GdkImage">GdkImage</link> *image);</programlisting>
<para>
Returns the display of a <link linkend="GdkImage">GdkImage</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>image</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Display*</type>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-image-get-ximage">gdk_x11_image_get_ximage ()</title>
<programlisting><link linkend="XImage">XImage</link>*     gdk_x11_image_get_ximage        (<link linkend="GdkImage">GdkImage</link> *image);</programlisting>
<para>
Returns the X image belonging to a <link linkend="GdkImage">GdkImage</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>image</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkImage">GdkImage</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an <type>XImage*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-ungrab-server">gdk_x11_ungrab_server ()</title>
<programlisting>void        gdk_x11_ungrab_server           (void);</programlisting>
<para>
Ungrab the default display after it has been grabbed with 
<link linkend="gdk-x11-grab-server">gdk_x11_grab_server</link>(). 
</para></refsect2>
<refsect2>
<title><anchor id="gdk-x11-visual-get-xvisual">gdk_x11_visual_get_xvisual ()</title>
<programlisting><link linkend="Visual">Visual</link>*     gdk_x11_visual_get_xvisual      (<link linkend="GdkVisual">GdkVisual</link> *visual);</programlisting>
<para>
Returns the X visual belonging to a <link linkend="GdkVisual">GdkVisual</link>.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>visual</parameter>&nbsp;:</entry>
<entry>a <link linkend="GdkVisual">GdkVisual</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>an Xlib <type>Visual*</type>.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-atom-to-xatom">gdk_x11_atom_to_xatom ()</title>
<programlisting><link linkend="Atom">Atom</link>        gdk_x11_atom_to_xatom           (<link linkend="GdkAtom">GdkAtom</link> atom);</programlisting>
<para>
Converts from a <link linkend="GdkAtom">GdkAtom</link> to the X atom for the default GDK display
with the same string value.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>atom</parameter>&nbsp;:</entry>
<entry> A <link linkend="GdkAtom">GdkAtom</link> 
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the X atom corresponding to <parameter>atom</parameter>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-xatom-to-atom">gdk_x11_xatom_to_atom ()</title>
<programlisting><link linkend="GdkAtom">GdkAtom</link>     gdk_x11_xatom_to_atom           (<link linkend="Atom">Atom</link> xatom);</programlisting>
<para>
Converts from an X atom for the default display to the corresponding
<link linkend="GdkAtom">GdkAtom</link>.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xatom</parameter>&nbsp;:</entry>
<entry> an X atom for the default GDK display
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the corresponding <link linkend="GdkAtom">GdkAtom</link>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-xatom-by-name">gdk_x11_get_xatom_by_name ()</title>
<programlisting><link linkend="Atom">Atom</link>        gdk_x11_get_xatom_by_name       (const <link linkend="gchar">gchar</link> *atom_name);</programlisting>
<para>
Returns the X atom for GDK's default display corresponding to <parameter>atom_name</parameter>.
This function caches the result, so if called repeatedly it is much
faster than <function><link linkend="XInternAtom">XInternAtom</link>()</function>, which is a round trip to 
the server each time.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>atom_name</parameter>&nbsp;:</entry>
<entry> a string
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> a X atom for GDK's default display.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-x11-get-xatom-name">gdk_x11_get_xatom_name ()</title>
<programlisting>G_CONST_RETURN <link linkend="gchar">gchar</link>* gdk_x11_get_xatom_name
                                            (<link linkend="Atom">Atom</link> xatom);</programlisting>
<para>
Returns the name of an X atom for GDK's default display. This
function is meant mainly for debugging, so for convenience, unlike
<function><link linkend="XAtomName">XAtomName</link>()</function> and <link linkend="gdk-atom-name">gdk_atom_name</link>(), the result 
doesn't need to be freed. Also, this function will never return <literal>NULL</literal>, 
even if <parameter>xatom</parameter> is invalid.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>xatom</parameter>&nbsp;:</entry>
<entry> an X atom for GDK's default display
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> name of the X atom; this string is owned by GTK+,
  so it shouldn't be modifed or freed. 
</entry></row>
</tbody></tgroup></informaltable></refsect2>

</refsect1>




</refentry>
