Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>X Window System Interaction: GDK 2 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GDK 2 Reference Manual">
<link rel="up" href="reference.html" title="API Reference">
<link rel="prev" href="gdk2-Cairo-Interaction.html" title="Cairo Interaction">
<link rel="next" href="gdk2-Application-launching.html" title="Application launching">
<meta name="generator" content="GTK-Doc V1.26.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#gdk2-X-Window-System-Interaction.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gdk2-Cairo-Interaction.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gdk2-Application-launching.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gdk2-X-Window-System-Interaction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gdk2-X-Window-System-Interaction.top_of_page"></a>X Window System Interaction</span></h2>
<p>X Window System Interaction</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-ROOT-WINDOW:CAPS" title="GDK_ROOT_WINDOW">GDK_ROOT_WINDOW</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-ROOT-PARENT:CAPS" title="GDK_ROOT_PARENT">GDK_ROOT_PARENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-DISPLAY:CAPS" title="GDK_DISPLAY">GDK_DISPLAY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-WINDOW-XDISPLAY:CAPS" title="GDK_WINDOW_XDISPLAY()">GDK_WINDOW_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-WINDOW-XID:CAPS" title="GDK_WINDOW_XID()">GDK_WINDOW_XID</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-PIXMAP-XDISPLAY:CAPS" title="GDK_PIXMAP_XDISPLAY()">GDK_PIXMAP_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-PIXMAP-XID:CAPS" title="GDK_PIXMAP_XID()">GDK_PIXMAP_XID</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-DISPLAY-XDISPLAY:CAPS" title="GDK_DISPLAY_XDISPLAY()">GDK_DISPLAY_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-DRAWABLE-XDISPLAY:CAPS" title="GDK_DRAWABLE_XDISPLAY()">GDK_DRAWABLE_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-DRAWABLE-XID:CAPS" title="GDK_DRAWABLE_XID()">GDK_DRAWABLE_XID</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-IMAGE-XDISPLAY:CAPS" title="GDK_IMAGE_XDISPLAY()">GDK_IMAGE_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-IMAGE-XIMAGE:CAPS" title="GDK_IMAGE_XIMAGE()">GDK_IMAGE_XIMAGE</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-GC-XDISPLAY:CAPS" title="GDK_GC_XDISPLAY()">GDK_GC_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-COLORMAP-XDISPLAY:CAPS" title="GDK_COLORMAP_XDISPLAY()">GDK_COLORMAP_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-COLORMAP-XCOLORMAP:CAPS" title="GDK_COLORMAP_XCOLORMAP()">GDK_COLORMAP_XCOLORMAP</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-SCREEN-XDISPLAY:CAPS" title="GDK_SCREEN_XDISPLAY()">GDK_SCREEN_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-SCREEN-XNUMBER:CAPS" title="GDK_SCREEN_XNUMBER()">GDK_SCREEN_XNUMBER</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-SCREEN-XSCREEN:CAPS" title="GDK_SCREEN_XSCREEN()">GDK_SCREEN_XSCREEN</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-VISUAL-XVISUAL:CAPS" title="GDK_VISUAL_XVISUAL()">GDK_VISUAL_XVISUAL</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-FONT-XDISPLAY:CAPS" title="GDK_FONT_XDISPLAY()">GDK_FONT_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-FONT-XFONT:CAPS" title="GDK_FONT_XFONT()">GDK_FONT_XFONT</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-CURSOR-XCURSOR:CAPS" title="GDK_CURSOR_XCURSOR()">GDK_CURSOR_XCURSOR</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-CURSOR-XDISPLAY:CAPS" title="GDK_CURSOR_XDISPLAY()">GDK_CURSOR_XDISPLAY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-GC-XGC:CAPS" title="GDK_GC_XGC()">GDK_GC_XGC</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-GC-GET-XGC:CAPS" title="GDK_GC_GET_XGC()">GDK_GC_GET_XGC</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdkx-visual-get" title="gdkx_visual_get ()">gdkx_visual_get</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdkx-colormap-get" title="gdkx_colormap_get ()">gdkx_colormap_get</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-foreign-new" title="gdk_pixmap_foreign_new ()">gdk_pixmap_foreign_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-display" title="gdk_pixmap_foreign_new_for_display ()">gdk_pixmap_foreign_new_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-screen" title="gdk_pixmap_foreign_new_for_screen ()">gdk_pixmap_foreign_new_for_screen</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-window-foreign-new" title="gdk_window_foreign_new ()">gdk_window_foreign_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-window-foreign-new-for-display" title="gdk_window_foreign_new_for_display ()">gdk_window_foreign_new_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-xid-table-lookup" title="gdk_xid_table_lookup ()">gdk_xid_table_lookup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-xid-table-lookup-for-display" title="gdk_xid_table_lookup_for_display ()">gdk_xid_table_lookup_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-window-lookup" title="gdk_window_lookup ()">gdk_window_lookup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-window-lookup-for-display" title="gdk_window_lookup_for_display ()">gdk_window_lookup_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-lookup" title="gdk_pixmap_lookup ()">gdk_pixmap_lookup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-lookup-for-display" title="gdk_pixmap_lookup_for_display ()">gdk_pixmap_lookup_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-font-lookup" title="gdk_font_lookup()">gdk_font_lookup</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-font-lookup-for-display" title="gdk_font_lookup_for_display()">gdk_font_lookup_for_display</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-lookup-xdisplay" title="gdk_x11_lookup_xdisplay ()">gdk_x11_lookup_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-server-time" title="gdk_x11_get_server_time ()">gdk_x11_get_server_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-net-wm-supports" title="gdk_net_wm_supports ()">gdk_net_wm_supports</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()">gdk_x11_screen_supports_net_wm_hint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-get-window-manager-name" title="gdk_x11_screen_get_window_manager_name ()">gdk_x11_screen_get_window_manager_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">XID</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-get-monitor-output" title="gdk_x11_screen_get_monitor_output ()">gdk_x11_screen_get_monitor_output</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-lookup-visual" title="gdk_x11_screen_lookup_visual ()">gdk_x11_screen_lookup_visual</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-set-user-time" title="gdk_x11_window_set_user_time ()">gdk_x11_window_set_user_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-move-to-current-desktop" title="gdk_x11_window_move_to_current_desktop ()">gdk_x11_window_move_to_current_desktop</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-get-user-time" title="gdk_x11_display_get_user_time ()">gdk_x11_display_get_user_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()">gdk_x11_colormap_foreign_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Colormap</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-colormap-get-xcolormap" title="gdk_x11_colormap_get_xcolormap ()">gdk_x11_colormap_get_xcolormap</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-colormap-get-xdisplay" title="gdk_x11_colormap_get_xdisplay ()">gdk_x11_colormap_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Cursor</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-cursor-get-xcursor" title="gdk_x11_cursor_get_xcursor ()">gdk_x11_cursor_get_xcursor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-cursor-get-xdisplay" title="gdk_x11_cursor_get_xdisplay ()">gdk_x11_cursor_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-broadcast-startup-message" title="gdk_x11_display_broadcast_startup_message ()">gdk_x11_display_broadcast_startup_message</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-get-startup-notification-id" title="gdk_x11_display_get_startup_notification_id ()">gdk_x11_display_get_startup_notification_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-get-xdisplay" title="gdk_x11_display_get_xdisplay ()">gdk_x11_display_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()">gdk_x11_display_grab</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()">gdk_x11_display_ungrab</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-set-cursor-theme" title="gdk_x11_display_set_cursor_theme ()">gdk_x11_display_set_cursor_theme</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-register-standard-event-type" title="gdk_x11_register_standard_event_type ()">gdk_x11_register_standard_event_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-drawable-get-xdisplay" title="gdk_x11_drawable_get_xdisplay ()">gdk_x11_drawable_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">XID</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-drawable-get-xid" title="gdk_x11_drawable_get_xid ()">gdk_x11_drawable_get_xid</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-font-get-name" title="gdk_x11_font_get_name ()">gdk_x11_font_get_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-font-get-xdisplay" title="gdk_x11_font_get_xdisplay ()">gdk_x11_font_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-font-get-xfont" title="gdk_x11_font_get_xfont ()">gdk_x11_font_get_xfont</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-gc-get-xdisplay" title="gdk_x11_gc_get_xdisplay ()">gdk_x11_gc_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GC</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-gc-get-xgc" title="gdk_x11_gc_get_xgc ()">gdk_x11_gc_get_xgc</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Window</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-default-root-xwindow" title="gdk_x11_get_default_root_xwindow ()">gdk_x11_get_default_root_xwindow</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-default-screen" title="gdk_x11_get_default_screen ()">gdk_x11_get_default_screen</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-default-xdisplay" title="gdk_x11_get_default_xdisplay ()">gdk_x11_get_default_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-grab-server" title="gdk_x11_grab_server ()">gdk_x11_grab_server</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Display</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-image-get-xdisplay" title="gdk_x11_image_get_xdisplay ()">gdk_x11_image_get_xdisplay</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">XImage</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-image-get-ximage" title="gdk_x11_image_get_ximage ()">gdk_x11_image_get_ximage</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-get-screen-number" title="gdk_x11_screen_get_screen_number ()">gdk_x11_screen_get_screen_number</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Screen</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-get-xscreen" title="gdk_x11_screen_get_xscreen ()">gdk_x11_screen_get_xscreen</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()">gdk_x11_ungrab_server</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Visual</span> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-visual-get-xvisual" title="gdk_x11_visual_get_xvisual ()">gdk_x11_visual_get_xvisual</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Atom</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-atom-to-xatom" title="gdk_x11_atom_to_xatom ()">gdk_x11_atom_to_xatom</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Atom</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-atom-to-xatom-for-display" title="gdk_x11_atom_to_xatom_for_display ()">gdk_x11_atom_to_xatom_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-xatom-to-atom" title="gdk_x11_xatom_to_atom ()">gdk_x11_xatom_to_atom</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-xatom-to-atom-for-display" title="gdk_x11_xatom_to_atom_for_display ()">gdk_x11_xatom_to_atom_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Atom</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-xatom-by-name" title="gdk_x11_get_xatom_by_name ()">gdk_x11_get_xatom_by_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">Atom</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-xatom-by-name-for-display" title="gdk_x11_get_xatom_by_name_for_display ()">gdk_x11_get_xatom_by_name_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-xatom-name" title="gdk_x11_get_xatom_name ()">gdk_x11_get_xatom_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-xatom-name-for-display" title="gdk_x11_get_xatom_name_for_display ()">gdk_x11_get_xatom_name_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-set-sm-client-id" title="gdk_x11_set_sm_client_id ()">gdk_x11_set_sm_client_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-foreign-new-for-display" title="gdk_x11_window_foreign_new_for_display ()">gdk_x11_window_foreign_new_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
</td>
<td class="function_name">
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()">gdk_x11_window_lookup_for_display</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gdk2-X-Window-System-Interaction.html#GDK-WINDOW-XWINDOW:CAPS" title="GDK_WINDOW_XWINDOW">GDK_WINDOW_XWINDOW</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gdk/gdkx.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="GDK-ROOT-WINDOW:CAPS"></a><h3>GDK_ROOT_WINDOW</h3>
<pre class="programlisting">#define GDK_ROOT_WINDOW()             (gdk_x11_get_default_root_xwindow ())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-ROOT-PARENT:CAPS"></a><h3>GDK_ROOT_PARENT</h3>
<pre class="programlisting">#define GDK_ROOT_PARENT()             (gdk_get_default_root_window ())
</pre>
<div class="warning"><p><code class="literal">GDK_ROOT_PARENT</code> is deprecated and should not be used in newly-written code.</p></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DISPLAY:CAPS"></a><h3>GDK_DISPLAY</h3>
<pre class="programlisting">#define GDK_DISPLAY()                 gdk_display
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-WINDOW-XDISPLAY:CAPS"></a><h3>GDK_WINDOW_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_WINDOW_XDISPLAY(win)      (GDK_SCREEN_X11 (GDK_WINDOW_SCREEN (win))-&gt;xdisplay)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-WINDOW-XID:CAPS"></a><h3>GDK_WINDOW_XID()</h3>
<pre class="programlisting">#define GDK_WINDOW_XID(win)           (GDK_DRAWABLE_IMPL_X11(((GdkWindowObject *)win)-&gt;impl)-&gt;xid)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-PIXMAP-XDISPLAY:CAPS"></a><h3>GDK_PIXMAP_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_PIXMAP_XDISPLAY(pix)      (GDK_SCREEN_X11 (GDK_PIXMAP_SCREEN (pix))-&gt;xdisplay)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-PIXMAP-XID:CAPS"></a><h3>GDK_PIXMAP_XID()</h3>
<pre class="programlisting">#define GDK_PIXMAP_XID(pix)           (GDK_DRAWABLE_IMPL_X11(((GdkPixmapObject *)pix)-&gt;impl)-&gt;xid)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DISPLAY-XDISPLAY:CAPS"></a><h3>GDK_DISPLAY_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_DISPLAY_XDISPLAY(display) (GDK_DISPLAY_X11(display)-&gt;xdisplay)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DRAWABLE-XDISPLAY:CAPS"></a><h3>GDK_DRAWABLE_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_DRAWABLE_XDISPLAY(win)    (GDK_IS_WINDOW (win) ? GDK_WINDOW_XDISPLAY (win) : GDK_PIXMAP_XDISPLAY (win))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DRAWABLE-XID:CAPS"></a><h3>GDK_DRAWABLE_XID()</h3>
<pre class="programlisting">#define GDK_DRAWABLE_XID(win)         (GDK_IS_WINDOW (win) ? GDK_WINDOW_XID (win) : GDK_PIXMAP_XID (win))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-IMAGE-XDISPLAY:CAPS"></a><h3>GDK_IMAGE_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_IMAGE_XDISPLAY(image)     (gdk_x11_image_get_xdisplay (image))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-IMAGE-XIMAGE:CAPS"></a><h3>GDK_IMAGE_XIMAGE()</h3>
<pre class="programlisting">#define GDK_IMAGE_XIMAGE(image)       (gdk_x11_image_get_ximage (image))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-XDISPLAY:CAPS"></a><h3>GDK_GC_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_GC_XDISPLAY(gc)           (GDK_SCREEN_XDISPLAY(GDK_GC_X11(gc)-&gt;screen))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-COLORMAP-XDISPLAY:CAPS"></a><h3>GDK_COLORMAP_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_COLORMAP_XDISPLAY(cmap)   (gdk_x11_colormap_get_xdisplay (cmap))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-COLORMAP-XCOLORMAP:CAPS"></a><h3>GDK_COLORMAP_XCOLORMAP()</h3>
<pre class="programlisting">#define GDK_COLORMAP_XCOLORMAP(cmap)  (gdk_x11_colormap_get_xcolormap (cmap))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XDISPLAY:CAPS"></a><h3>GDK_SCREEN_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_SCREEN_XDISPLAY(screen)   (GDK_SCREEN_X11 (screen)-&gt;xdisplay)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XNUMBER:CAPS"></a><h3>GDK_SCREEN_XNUMBER()</h3>
<pre class="programlisting">#define GDK_SCREEN_XNUMBER(screen)    (GDK_SCREEN_X11 (screen)-&gt;screen_num) 
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XSCREEN:CAPS"></a><h3>GDK_SCREEN_XSCREEN()</h3>
<pre class="programlisting">#define GDK_SCREEN_XSCREEN(screen)    (GDK_SCREEN_X11 (screen)-&gt;xscreen)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-VISUAL-XVISUAL:CAPS"></a><h3>GDK_VISUAL_XVISUAL()</h3>
<pre class="programlisting">#define GDK_VISUAL_XVISUAL(vis)       (((GdkVisualPrivate *) vis)-&gt;xvisual)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-FONT-XDISPLAY:CAPS"></a><h3>GDK_FONT_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_FONT_XDISPLAY(font)       (gdk_x11_font_get_xdisplay (font))
</pre>
<div class="warning"><p><code class="literal">GDK_FONT_XDISPLAY</code> is deprecated and should not be used in newly-written code.</p></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-FONT-XFONT:CAPS"></a><h3>GDK_FONT_XFONT()</h3>
<pre class="programlisting">#define GDK_FONT_XFONT(font)          (gdk_x11_font_get_xfont (font))
</pre>
<div class="warning"><p><code class="literal">GDK_FONT_XFONT</code> is deprecated and should not be used in newly-written code.</p></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-CURSOR-XCURSOR:CAPS"></a><h3>GDK_CURSOR_XCURSOR()</h3>
<pre class="programlisting">#define GDK_CURSOR_XCURSOR(cursor)    (gdk_x11_cursor_get_xcursor (cursor))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-CURSOR-XDISPLAY:CAPS"></a><h3>GDK_CURSOR_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_CURSOR_XDISPLAY(cursor)   (gdk_x11_cursor_get_xdisplay (cursor))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-XGC:CAPS"></a><h3>GDK_GC_XGC()</h3>
<pre class="programlisting">#define GDK_GC_XGC(gc)		      (GDK_GC_X11(gc)-&gt;xgc)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-GET-XGC:CAPS"></a><h3>GDK_GC_GET_XGC()</h3>
<pre class="programlisting">#define GDK_GC_GET_XGC(gc)	      (GDK_GC_X11(gc)-&gt;dirty_mask ? _gdk_x11_gc_flush (gc) : ((GdkGCX11 *)(gc))-&gt;xgc)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="gdkx-visual-get"></a><h3>gdkx_visual_get ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *
gdkx_visual_get (<em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdkx_visual_get</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-lookup-visual" title="gdk_x11_screen_lookup_visual ()"><code class="function">gdk_x11_screen_lookup_visual()</code></a> instead</p>
</div>
<p>Returns a <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> corresponding to a X visual.</p>
<div class="refsect3">
<a name="gdkx-visual-get.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xvisualid</p></td>
<td class="parameter_description"><p>a X visual id.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdkx-visual-get.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdkx-colormap-get"></a><h3>gdkx_colormap_get ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *
gdkx_colormap_get (<em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);</pre>
<div class="warning"><p><code class="literal">gdkx_colormap_get</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Returns a <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> corresponding to a X colormap;
this function only works if the colormap is already
known to GTK+ (a colormap created by GTK+ or the default
colormap for the screen), since GTK+ </p>
<p>Always use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()"><code class="function">gdk_x11_colormap_foreign_new()</code></a> instead.</p>
<div class="refsect3">
<a name="gdkx-colormap-get.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xcolormap</p></td>
<td class="parameter_description"><p>the XID of a colormap for the default screen.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdkx-colormap-get.returns"></a><h4>Returns</h4>
<p> the existing <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object if it was
already known to GTK+, otherwise warns and return
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new"></a><h3>gdk_pixmap_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
gdk_pixmap_foreign_new (<em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>Wraps a native window for the default display in a <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.</p>
<p>For example in the X backend, a native pixmap handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-pixmap-foreign-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native pixmap handle.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-pixmap-foreign-new.returns"></a><h4>Returns</h4>
<p> the newly-created <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new-for-display"></a><h3>gdk_pixmap_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
gdk_pixmap_foreign_new_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                    <em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>Wraps a native pixmap in a <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.</p>
<p>For example in the X backend, a native pixmap handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-pixmap-foreign-new-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>The <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where <em class="parameter"><code>anid</code></em>
is located.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native pixmap handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-pixmap-foreign-new-for-display.returns"></a><h4>Returns</h4>
<p> the newly-created <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new-for-screen"></a><h3>gdk_pixmap_foreign_new_for_screen ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
gdk_pixmap_foreign_new_for_screen (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                   <em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>,
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> depth</code></em>);</pre>
<p>Wraps a native pixmap in a <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.</p>
<p>For example in the X backend, a native pixmap handle is an Xlib</p>
<span class="type">XID</span>.
<p>This function is an alternative to <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-display" title="gdk_pixmap_foreign_new_for_display ()"><code class="function">gdk_pixmap_foreign_new_for_display()</code></a>
for cases where the dimensions of the pixmap are known. For the X
backend, this avoids a roundtrip to the server.</p>
<div class="refsect3">
<a name="gdk-pixmap-foreign-new-for-screen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native pixmap handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>the width of the pixmap identified by <em class="parameter"><code>anid</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>the height of the pixmap identified by <em class="parameter"><code>anid</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>depth</p></td>
<td class="parameter_description"><p>the depth of the pixmap identified by <em class="parameter"><code>anid</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-pixmap-foreign-new-for-screen.returns"></a><h4>Returns</h4>
<p> the newly-created <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-foreign-new"></a><h3>gdk_window_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_window_foreign_new (<em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning"><p><code class="literal">gdk_window_foreign_new</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Wraps a native window for the default display in a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
This may fail if the window has been destroyed.</p>
<p>For example in the X backend, a native window handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-window-foreign-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native window handle.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-window-foreign-new.returns"></a><h4>Returns</h4>
<p> the newly-created <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the
native window or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-foreign-new-for-display"></a><h3>gdk_window_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_window_foreign_new_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                    <em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_window_foreign_new_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-foreign-new-for-display" title="gdk_x11_window_foreign_new_for_display ()"><code class="function">gdk_x11_window_foreign_new_for_display()</code></a> or
    equivalent backend-specific API instead</p>
</div>
<p>Wraps a native window in a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing 
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is returned.</p>
<p>For example in the X backend, a native window handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-window-foreign-new-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where the window handle comes from.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native window handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-window-foreign-new-for-display.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed. The wrapper will be
newly created, if one doesn't exist already.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-xid-table-lookup"></a><h3>gdk_xid_table_lookup ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
gdk_xid_table_lookup (<em class="parameter"><code><span class="type">XID</span> xid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_xid_table_lookup</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>This function will be removed in GTK+ 3.0. GTK+
    only stores windows in its X id table nowadays, so use
    <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead.</p>
</div>
<p>Returns the Gdk object associated with the given X id for the default
display.</p>
<div class="refsect3">
<a name="gdk-xid-table-lookup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xid</p></td>
<td class="parameter_description"><p>an X id.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-xid-table-lookup.returns"></a><h4>Returns</h4>
<p> the associated Gdk object, which may be a <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>,
a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no object is associated
with the X id.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-xid-table-lookup-for-display"></a><h3>gdk_xid_table_lookup_for_display ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
gdk_xid_table_lookup_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                  <em class="parameter"><code><span class="type">XID</span> xid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_xid_table_lookup_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>This function will be removed in GTK+ 3.0. GTK+
    only stores windows in its X id table nowadays, so use
    <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead.</p>
</div>
<p>Returns the GDK object associated with the given X id.</p>
<div class="refsect3">
<a name="gdk-xid-table-lookup-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xid</p></td>
<td class="parameter_description"><p>an X id.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-xid-table-lookup-for-display.returns"></a><h4>Returns</h4>
<p> the associated Gdk object, which may be a <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>,
a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no object is associated
with the X id.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-lookup"></a><h3>gdk_window_lookup ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_window_lookup (<em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_window_lookup</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> or equivalent
   backend-specific functionality instead</p>
</div>
<p>Looks up the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle. </p>
<p>For example in the X backend, a native window handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-window-lookup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native window handle.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-window-lookup.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-lookup-for-display"></a><h3>gdk_window_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_window_lookup_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                               <em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_window_lookup_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead</p>
</div>
<p>Looks up the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle.</p>
<p>For example in the X backend, a native window handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-window-lookup-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to the window handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native window handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-window-lookup-for-display.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-lookup"></a><h3>gdk_pixmap_lookup ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
gdk_pixmap_lookup (<em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>Looks up the <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> that wraps the given native pixmap handle.</p>
<p>For example in the X backend, a native pixmap handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-pixmap-lookup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native pixmap handle.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-pixmap-lookup.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the native pixmap,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-lookup-for-display"></a><h3>gdk_pixmap_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *
gdk_pixmap_lookup_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                               <em class="parameter"><code><a class="link" href="gdk2-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>Looks up the <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> that wraps the given native pixmap handle.</p>
<p>For example in the X backend, a native pixmap handle is an Xlib</p>
<span class="type">XID</span>.
<div class="refsect3">
<a name="gdk-pixmap-lookup-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> associated with <em class="parameter"><code>anid</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>anid</p></td>
<td class="parameter_description"><p>a native pixmap handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-pixmap-lookup-for-display.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the native pixmap,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-font-lookup"></a><h3>gdk_font_lookup()</h3>
<pre class="programlisting">#define gdk_font_lookup(xid)	   ((GdkFont*) gdk_xid_table_lookup (xid))
</pre>
<div class="warning"><p><code class="literal">gdk_font_lookup</code> is deprecated and should not be used in newly-written code.</p></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-font-lookup-for-display"></a><h3>gdk_font_lookup_for_display()</h3>
<pre class="programlisting">#define gdk_font_lookup_for_display(display, xid) ((GdkFont*) gdk_xid_table_lookup_for_display (display, ((xid)|XID_FONT_BIT)))
</pre>
<div class="warning"><p><code class="literal">gdk_font_lookup_for_display</code> is deprecated and should not be used in newly-written code.</p></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-lookup-xdisplay"></a><h3>gdk_x11_lookup_xdisplay ()</h3>
<pre class="programlisting"><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *
gdk_x11_lookup_xdisplay (<em class="parameter"><code><span class="type">Display</span> *xdisplay</code></em>);</pre>
<p>Find the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to <em class="parameter"><code>display</code></em>
, if any exists.</p>
<div class="refsect3">
<a name="gdk-x11-lookup-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xdisplay</p></td>
<td class="parameter_description"><p>a pointer to an X Display</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-lookup-xdisplay.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>, if found, otherwise <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-server-time"></a><h3>gdk_x11_get_server_time ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>
gdk_x11_get_server_time (<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>Routine to get the current X server time stamp.</p>
<div class="refsect3">
<a name="gdk-x11-get-server-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>, used for communication with the server.
The window must have GDK_PROPERTY_CHANGE_MASK in its
events mask or a hang will result.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-get-server-time.returns"></a><h4>Returns</h4>
<p> the time stamp.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-net-wm-supports"></a><h3>gdk_net_wm_supports ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gdk_net_wm_supports (<em class="parameter"><code><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_net_wm_supports</code> has been deprecated since version 2.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> instead</p>
</div>
<p>This function is specific to the X11 backend of GDK, and indicates
whether the window manager for the default screen supports a certain
hint from the Extended Window Manager Hints Specification. See
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> for complete details.</p>
<div class="refsect3">
<a name="gdk-net-wm-supports.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>property</p></td>
<td class="parameter_description"><p>a property atom.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-net-wm-supports.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window manager supports <em class="parameter"><code>property</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-supports-net-wm-hint"></a><h3>gdk_x11_screen_supports_net_wm_hint ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gdk_x11_screen_supports_net_wm_hint (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                     <em class="parameter"><code><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);</pre>
<p>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 </p>
<a class="ulink" href="http://www.freedesktop.org" target="_top">http://www.freedesktop.org</a>.
<p>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
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> will return <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for every property.
You can monitor the window_manager_changed signal on <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> to detect
a window manager change.</p>
<div class="refsect3">
<a name="gdk-x11-screen-supports-net-wm-hint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>the relevant <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property</p></td>
<td class="parameter_description"><p>a property atom.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-screen-supports-net-wm-hint.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window manager supports <em class="parameter"><code>property</code></em>
</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-window-manager-name"></a><h3>gdk_x11_screen_get_window_manager_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
gdk_x11_screen_get_window_manager_name
                               (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>Returns the name of the window manager for <em class="parameter"><code>screen</code></em>
.</p>
<div class="refsect3">
<a name="gdk-x11-screen-get-window-manager-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> </p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-screen-get-window-manager-name.returns"></a><h4>Returns</h4>
<p> the name of the window manager screen <em class="parameter"><code>screen</code></em>
, or
"unknown" if the window manager is unknown. The string is owned by GDK
and should not be freed.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-monitor-output"></a><h3>gdk_x11_screen_get_monitor_output ()</h3>
<pre class="programlisting"><span class="returnvalue">XID</span>
gdk_x11_screen_get_monitor_output (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> monitor_num</code></em>);</pre>
<p>Gets the XID of the specified output/monitor.
If the X server does not support version 1.2 of the RANDR
extension, 0 is returned.</p>
<div class="refsect3">
<a name="gdk-x11-screen-get-monitor-output.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>monitor_num</p></td>
<td class="parameter_description"><p>number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-screen-get-monitor-output.returns"></a><h4>Returns</h4>
<p> the XID of the monitor</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-14.html#api-index-2.14">2.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-lookup-visual"></a><h3>gdk_x11_screen_lookup_visual ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *
gdk_x11_screen_lookup_visual (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                              <em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);</pre>
<p>Looks up the <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> for a particular screen and X Visual ID.</p>
<div class="refsect3">
<a name="gdk-x11-screen-lookup-visual.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xvisualid</p></td>
<td class="parameter_description"><p>an X Visual ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-screen-lookup-visual.returns"></a><h4>Returns</h4>
<p>the <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> (owned by the screen
object), or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the visual ID wasn't found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-set-user-time"></a><h3>gdk_x11_window_set_user_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_window_set_user_time (<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                              <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre>
<p>The application can use this call to update the _NET_WM_USER_TIME
property on a toplevel window.  This property stores an Xserver
time which represents the time of the last user input event
received for this window.  This property may be used by the window
manager to alter the focus, stacking, and/or placement behavior of
windows when they are mapped depending on whether the new window
was created by a user action or is a "pop-up" window activated by a
timer or some other event.</p>
<p>Note that this property is automatically updated by GDK, so this
function should only be used by applications which handle input
events bypassing GDK.</p>
<div class="refsect3">
<a name="gdk-x11-window-set-user-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>A toplevel <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>An XServer timestamp to which the property should be set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-move-to-current-desktop"></a><h3>gdk_x11_window_move_to_current_desktop ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_window_move_to_current_desktop
                               (<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>Moves the window to the correct workspace when running under a 
window manager that supports multiple workspaces, as described
in the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended 
Window Manager Hints</a>.  Will not do anything if the
window is already on all workspaces.</p>
<div class="refsect3">
<a name="gdk-x11-window-move-to-current-desktop.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-user-time"></a><h3>gdk_x11_display_get_user_time ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>
gdk_x11_display_get_user_time (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>Returns the timestamp of the last user interaction on 
<em class="parameter"><code>display</code></em>
. The timestamp is taken from events caused
by user interaction such as key presses or pointer 
movements. See <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-window-set-user-time" title="gdk_x11_window_set_user_time ()"><code class="function">gdk_x11_window_set_user_time()</code></a>.</p>
<div class="refsect3">
<a name="gdk-x11-display-get-user-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-display-get-user-time.returns"></a><h4>Returns</h4>
<p> the timestamp of the last user interaction </p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-foreign-new"></a><h3>gdk_x11_colormap_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *
gdk_x11_colormap_foreign_new (<em class="parameter"><code><a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>,
                              <em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);</pre>
<p>If xcolormap refers to a colormap previously known to GTK+,
returns a new reference to the existing <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object,
otherwise creates a new GdkColormap object and returns that</p>
<div class="refsect3">
<a name="gdk-x11-colormap-foreign-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>visual</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xcolormap</p></td>
<td class="parameter_description"><p>The XID of a colormap with visual <em class="parameter"><code>visual</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-colormap-foreign-new.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object for <em class="parameter"><code>xcolormap</code></em>
.
Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. Note that for colormap created
with <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()"><code class="function">gdk_x11_colormap_foreign_new()</code></a>, unref'ing the last
reference to the object will only free the <span class="type">GdkColoramp</span>
object and not call <code class="function">XFreeColormap()</code></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-get-xcolormap"></a><h3>gdk_x11_colormap_get_xcolormap ()</h3>
<pre class="programlisting"><span class="returnvalue">Colormap</span>
gdk_x11_colormap_get_xcolormap (<em class="parameter"><code><a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);</pre>
<p>Returns the X colormap belonging to a <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-colormap-get-xcolormap.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>colormap</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-colormap-get-xcolormap.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Colormap</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-get-xdisplay"></a><h3>gdk_x11_colormap_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_colormap_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);</pre>
<p>Returns the display of a <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-colormap-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>colormap</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-colormap-get-xdisplay.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-cursor-get-xcursor"></a><h3>gdk_x11_cursor_get_xcursor ()</h3>
<pre class="programlisting"><span class="returnvalue">Cursor</span>
gdk_x11_cursor_get_xcursor (<em class="parameter"><code><a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>Returns the X cursor belonging to a <a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-cursor-get-xcursor.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cursor</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-cursor-get-xcursor.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Cursor</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-cursor-get-xdisplay"></a><h3>gdk_x11_cursor_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_cursor_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>Returns the display of a <a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-cursor-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cursor</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-cursor-get-xdisplay.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-broadcast-startup-message"></a><h3>gdk_x11_display_broadcast_startup_message ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_display_broadcast_startup_message
                               (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                <em class="parameter"><code>const <span class="type">char</span> *message_type</code></em>,
                                <em class="parameter"><code>...</code></em>);</pre>
<p>Sends a startup notification message of type <em class="parameter"><code>message_type</code></em>
 to
<em class="parameter"><code>display</code></em>
. </p>
<p>This is a convenience function for use by code that implements the
freedesktop startup notification specification. Applications should
not normally need to call it directly. See the <a class="ulink" href="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt" target="_top">Startup
Notification Protocol specification</a> for
definitions of the message types and keys that can be used.</p>
<div class="refsect3">
<a name="gdk-x11-display-broadcast-startup-message.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>message_type</p></td>
<td class="parameter_description"><p>startup notification message type ("new", "change",
or "remove")</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a list of key/value pairs (as strings), terminated by a
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> key. (A <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value for a key will cause that key to be
skipped in the output.)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-12.html#api-index-2.12">2.12</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-startup-notification-id"></a><h3>gdk_x11_display_get_startup_notification_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdk_x11_display_get_startup_notification_id
                               (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>Gets the startup notification ID for a display.</p>
<div class="refsect3">
<a name="gdk-x11-display-get-startup-notification-id.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-display-get-startup-notification-id.returns"></a><h4>Returns</h4>
<p> the startup notification ID for <em class="parameter"><code>display</code></em>
</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-12.html#api-index-2.12">2.12</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-xdisplay"></a><h3>gdk_x11_display_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_display_get_xdisplay (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>Returns the X display of a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-display-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>returns</p></td>
<td class="parameter_description"><p>an X display.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-grab"></a><h3>gdk_x11_display_grab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_display_grab (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>Call <code class="function">XGrabServer()</code> on <em class="parameter"><code>display</code></em>
. 
To ungrab the display again, use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()"><code class="function">gdk_x11_display_ungrab()</code></a>. </p>
<p>gdk_x11_display_grab()/<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()"><code class="function">gdk_x11_display_ungrab()</code></a> calls can be nested.</p>
<div class="refsect3">
<a name="gdk-x11-display-grab.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> </p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-ungrab"></a><h3>gdk_x11_display_ungrab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_display_ungrab (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>Ungrab <em class="parameter"><code>display</code></em>
 after it has been grabbed with 
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()"><code class="function">gdk_x11_display_grab()</code></a>.</p>
<div class="refsect3">
<a name="gdk-x11-display-ungrab.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-set-cursor-theme"></a><h3>gdk_x11_display_set_cursor_theme ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_display_set_cursor_theme (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                  <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *theme</code></em>,
                                  <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
<p>Sets the cursor theme from which the images for cursor
should be taken. </p>
<p>If the windowing system supports it, existing cursors created 
with <a class="link" href="gdk2-Cursors.html#gdk-cursor-new" title="gdk_cursor_new ()"><code class="function">gdk_cursor_new()</code></a>, <a class="link" href="gdk2-Cursors.html#gdk-cursor-new-for-display" title="gdk_cursor_new_for_display ()"><code class="function">gdk_cursor_new_for_display()</code></a> and 
<code class="function">gdk_cursor_new_for_name()</code> are updated to reflect the theme 
change. Custom cursors constructed with <a class="link" href="gdk2-Cursors.html#gdk-cursor-new-from-pixmap" title="gdk_cursor_new_from_pixmap ()"><code class="function">gdk_cursor_new_from_pixmap()</code></a> 
or <a class="link" href="gdk2-Cursors.html#gdk-cursor-new-from-pixbuf" title="gdk_cursor_new_from_pixbuf ()"><code class="function">gdk_cursor_new_from_pixbuf()</code></a> will have to be handled
by the application (GTK+ applications can learn about 
cursor theme changes by listening for change notification
for the corresponding <span class="type">GtkSetting</span>).</p>
<div class="refsect3">
<a name="gdk-x11-display-set-cursor-theme.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>theme</p></td>
<td class="parameter_description"><p>the name of the cursor theme to use, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset
a previously set value </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>the cursor size to use, or 0 to keep the previous size</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-register-standard-event-type"></a><h3>gdk_x11_register_standard_event_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_register_standard_event_type (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> event_base</code></em>,
                                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_events</code></em>);</pre>
<p>Registers interest in receiving extension events with type codes
between <em class="parameter"><code>event_base</code></em>
 and <code class="literal">event_base + n_events - 1</code>.
The registered events must have the window field in the same place
as core X events (this is not the case for e.g. XKB extension events).</p>
<p>If an event type is registered, events of this type will go through
global and window-specific filters (see <a class="link" href="gdk2-Windows.html#gdk-window-add-filter" title="gdk_window_add_filter ()"><code class="function">gdk_window_add_filter()</code></a>). 
Unregistered events will only go through global filters.
GDK may register the events of some X extensions on its own.</p>
<p>This function should only be needed in unusual circumstances, e.g.
when filtering XInput extension events on the root window.</p>
<div class="refsect3">
<a name="gdk-x11-register-standard-event-type.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>event_base</p></td>
<td class="parameter_description"><p>first event type code to register</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n_events</p></td>
<td class="parameter_description"><p>number of event type codes to register</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-drawable-get-xdisplay"></a><h3>gdk_x11_drawable_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_drawable_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);</pre>
<p>Returns the display of a <a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-drawable-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>drawable</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-drawable-get-xdisplay.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-drawable-get-xid"></a><h3>gdk_x11_drawable_get_xid ()</h3>
<pre class="programlisting"><span class="returnvalue">XID</span>
gdk_x11_drawable_get_xid (<em class="parameter"><code><a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);</pre>
<p>Returns the X resource (window or pixmap) belonging to a <a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-drawable-get-xid.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>drawable</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-drawable-get-xid.returns"></a><h4>Returns</h4>
<p> the ID of <em class="parameter"><code>drawable</code></em>
's X resource.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-name"></a><h3>gdk_x11_font_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
gdk_x11_font_get_name (<em class="parameter"><code><a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning"><p><code class="literal">gdk_x11_font_get_name</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Return the X Logical Font Description (for font-&gt;type == GDK_FONT_FONT)
or comma separated list of XLFDs (for font-&gt;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.</p>
<div class="refsect3">
<a name="gdk-x11-font-get-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>font</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-font-get-name.returns"></a><h4>Returns</h4>
<p> the name of the font. This string is owned
by GDK and must not be modified or freed.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-xdisplay"></a><h3>gdk_x11_font_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_font_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning"><p><code class="literal">gdk_x11_font_get_xdisplay</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Returns the display of a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-font-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>font</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-font-get-xdisplay.returns"></a><h4>Returns</h4>
<p>  an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-xfont"></a><h3>gdk_x11_font_get_xfont ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
gdk_x11_font_get_xfont (<em class="parameter"><code><a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning"><p><code class="literal">gdk_x11_font_get_xfont</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Returns the X font belonging to a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-font-get-xfont.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>font</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-font-get-xfont.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">XFontStruct*</span> or an <span class="type">XFontSet</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-gc-get-xdisplay"></a><h3>gdk_x11_gc_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_gc_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_x11_gc_get_xdisplay</code> has been deprecated since version 2.22 and should not be used in newly-written code.</p>
<p><a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> has been replaced by <span class="type">cairo_t</span>.</p>
</div>
<p>Returns the display of a <a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-gc-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gc</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-gc-get-xdisplay.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-gc-get-xgc"></a><h3>gdk_x11_gc_get_xgc ()</h3>
<pre class="programlisting"><span class="returnvalue">GC</span>
gdk_x11_gc_get_xgc (<em class="parameter"><code><a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdk_x11_gc_get_xgc</code> has been deprecated since version 2.22 and should not be used in newly-written code.</p>
<p><a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> has been replaced by <span class="type">cairo_t</span>.</p>
</div>
<p>Returns the X GC of a <a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-gc-get-xgc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gc</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-gc-get-xgc.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">GC</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-root-xwindow"></a><h3>gdk_x11_get_default_root_xwindow ()</h3>
<pre class="programlisting"><span class="returnvalue">Window</span>
gdk_x11_get_default_root_xwindow (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Gets the root window of the default screen 
(see <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-get-default-screen" title="gdk_x11_get_default_screen ()"><code class="function">gdk_x11_get_default_screen()</code></a>).</p>
<div class="refsect3">
<a name="gdk-x11-get-default-root-xwindow.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Window</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-screen"></a><h3>gdk_x11_get_default_screen ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gdk_x11_get_default_screen (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Gets the default GTK+ screen number.</p>
<div class="refsect3">
<a name="gdk-x11-get-default-screen.returns"></a><h4>Returns</h4>
<p> returns the screen number specified by
the --display command line option or the DISPLAY environment
variable when <a class="link" href="gdk2-General.html#gdk-init" title="gdk_init ()"><code class="function">gdk_init()</code></a> calls <code class="function">XOpenDisplay()</code>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-xdisplay"></a><h3>gdk_x11_get_default_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_get_default_xdisplay (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Gets the default GTK+ display.</p>
<div class="refsect3">
<a name="gdk-x11-get-default-xdisplay.returns"></a><h4>Returns</h4>
<p> the Xlib <span class="type">Display*</span> for the display
specified in the <code class="option">--display</code> command line option
or the <code class="envar">DISPLAY</code> environment variable.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-grab-server"></a><h3>gdk_x11_grab_server ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_grab_server (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Call <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()"><code class="function">gdk_x11_display_grab()</code></a> on the default display. 
To ungrab the server again, use <a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()"><code class="function">gdk_x11_ungrab_server()</code></a>. </p>
<p>gdk_x11_grab_server()/<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()"><code class="function">gdk_x11_ungrab_server()</code></a> calls can be nested.</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-image-get-xdisplay"></a><h3>gdk_x11_image_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *
gdk_x11_image_get_xdisplay (<em class="parameter"><code><a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);</pre>
<p>Returns the display of a <a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-image-get-xdisplay.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-image-get-xdisplay.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Display*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-image-get-ximage"></a><h3>gdk_x11_image_get_ximage ()</h3>
<pre class="programlisting"><span class="returnvalue">XImage</span> *
gdk_x11_image_get_ximage (<em class="parameter"><code><a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);</pre>
<p>Returns the X image belonging to a <a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-image-get-ximage.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-image-get-ximage.returns"></a><h4>Returns</h4>
<p> an <span class="type">XImage*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-screen-number"></a><h3>gdk_x11_screen_get_screen_number ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
gdk_x11_screen_get_screen_number (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>Returns the index of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-screen-get-screen-number.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>returns</p></td>
<td class="parameter_description"><p>the position of <em class="parameter"><code>screen</code></em>
among the screens of
its display.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-xscreen"></a><h3>gdk_x11_screen_get_xscreen ()</h3>
<pre class="programlisting"><span class="returnvalue">Screen</span> *
gdk_x11_screen_get_xscreen (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>Returns the screen of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-screen-get-xscreen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>returns</p></td>
<td class="parameter_description"><p>an Xlib <span class="type">Screen*</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-ungrab-server"></a><h3>gdk_x11_ungrab_server ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_ungrab_server (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Ungrab the default display after it has been grabbed with 
<a class="link" href="gdk2-X-Window-System-Interaction.html#gdk-x11-grab-server" title="gdk_x11_grab_server ()"><code class="function">gdk_x11_grab_server()</code></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-visual-get-xvisual"></a><h3>gdk_x11_visual_get_xvisual ()</h3>
<pre class="programlisting"><span class="returnvalue">Visual</span> *
gdk_x11_visual_get_xvisual (<em class="parameter"><code><a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>);</pre>
<p>Returns the X visual belonging to a <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-visual-get-xvisual.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>visual</p></td>
<td class="parameter_description"><p>a <a class="link" href="gdk2-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-visual-get-xvisual.returns"></a><h4>Returns</h4>
<p> an Xlib <span class="type">Visual*</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-atom-to-xatom"></a><h3>gdk_x11_atom_to_xatom ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>
gdk_x11_atom_to_xatom (<em class="parameter"><code><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);</pre>
<p>Converts from a <a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> to the X atom for the default GDK display
with the same string value.</p>
<div class="refsect3">
<a name="gdk-x11-atom-to-xatom.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>atom</p></td>
<td class="parameter_description"><p>A <a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> </p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-atom-to-xatom.returns"></a><h4>Returns</h4>
<p> the X atom corresponding to <em class="parameter"><code>atom</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-atom-to-xatom-for-display"></a><h3>gdk_x11_atom_to_xatom_for_display ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>
gdk_x11_atom_to_xatom_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                   <em class="parameter"><code><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);</pre>
<p>Converts from a <a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> to the X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
with the same string value. The special value <a class="link" href="gdk2-Properties-and-Atoms.html#GDK-NONE:CAPS" title="GDK_NONE"><code class="literal">GDK_NONE</code></a>
is converted to <code class="literal">None</code>.</p>
<div class="refsect3">
<a name="gdk-x11-atom-to-xatom-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>A <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>atom</p></td>
<td class="parameter_description"><p>A <a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>, or <a class="link" href="gdk2-Properties-and-Atoms.html#GDK-NONE:CAPS" title="GDK_NONE"><code class="literal">GDK_NONE</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-atom-to-xatom-for-display.returns"></a><h4>Returns</h4>
<p> the X atom corresponding to <em class="parameter"><code>atom</code></em>
, or <code class="literal">None</code></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-xatom-to-atom"></a><h3>gdk_x11_xatom_to_atom ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>
gdk_x11_xatom_to_atom (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>Convert from an X atom for the default display to the corresponding
<a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-xatom-to-atom.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xatom</p></td>
<td class="parameter_description"><p>an X atom for the default GDK display</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-xatom-to-atom.returns"></a><h4>Returns</h4>
<p> the corresponding G<span class="type">dkAtom</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-xatom-to-atom-for-display"></a><h3>gdk_x11_xatom_to_atom_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>
gdk_x11_xatom_to_atom_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                   <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>Convert from an X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> to the corresponding
<a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.</p>
<div class="refsect3">
<a name="gdk-x11-xatom-to-atom-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>A <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xatom</p></td>
<td class="parameter_description"><p>an X atom </p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-xatom-to-atom-for-display.returns"></a><h4>Returns</h4>
<p> the corresponding <a class="link" href="gdk2-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-by-name"></a><h3>gdk_x11_get_xatom_by_name ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>
gdk_x11_get_xatom_by_name (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);</pre>
<p>Returns the X atom for GDK's default display corresponding to <em class="parameter"><code>atom_name</code></em>
.
This function caches the result, so if called repeatedly it is much
faster than <code class="function">XInternAtom()</code>, which is a round trip to the server each time.</p>
<div class="refsect3">
<a name="gdk-x11-get-xatom-by-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>atom_name</p></td>
<td class="parameter_description"><p>a string</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-get-xatom-by-name.returns"></a><h4>Returns</h4>
<p> a X atom for GDK's default display.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-by-name-for-display"></a><h3>gdk_x11_get_xatom_by_name_for_display ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>
gdk_x11_get_xatom_by_name_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                       <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);</pre>
<p>Returns the X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to <em class="parameter"><code>atom_name</code></em>
.
This function caches the result, so if called repeatedly it is much
faster than <code class="function">XInternAtom()</code>, which is a round trip to the server each time.</p>
<div class="refsect3">
<a name="gdk-x11-get-xatom-by-name-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>atom_name</p></td>
<td class="parameter_description"><p>a string</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-get-xatom-by-name-for-display.returns"></a><h4>Returns</h4>
<p> a X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-name"></a><h3>gdk_x11_get_xatom_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdk_x11_get_xatom_name (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>Returns the name of an X atom for GDK's default display. This
function is meant mainly for debugging, so for convenience, unlike
<code class="function"><code class="function">XAtomName()</code></code> and <a class="link" href="gdk2-Properties-and-Atoms.html#gdk-atom-name" title="gdk_atom_name ()"><code class="function">gdk_atom_name()</code></a>, the result 
doesn't need to be freed. Also, this function will never return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, 
even if <em class="parameter"><code>xatom</code></em>
 is invalid.</p>
<div class="refsect3">
<a name="gdk-x11-get-xatom-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>xatom</p></td>
<td class="parameter_description"><p>an X atom for GDK's default display</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-get-xatom-name.returns"></a><h4>Returns</h4>
<p> name of the X atom; this string is owned by GTK+,
so it shouldn't be modifed or freed. </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-name-for-display"></a><h3>gdk_x11_get_xatom_name_for_display ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdk_x11_get_xatom_name_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                    <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>Returns the name of an X atom for its display. This
function is meant mainly for debugging, so for convenience, unlike
<code class="function">XAtomName()</code> and <a class="link" href="gdk2-Properties-and-Atoms.html#gdk-atom-name" title="gdk_atom_name ()"><code class="function">gdk_atom_name()</code></a>, the result doesn't need to
be freed.</p>
<div class="refsect3">
<a name="gdk-x11-get-xatom-name-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where <em class="parameter"><code>xatom</code></em>
is defined</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xatom</p></td>
<td class="parameter_description"><p>an X atom </p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-get-xatom-name-for-display.returns"></a><h4>Returns</h4>
<p> name of the X atom; this string is owned by GDK,
so it shouldn't be modifed or freed. </p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-set-sm-client-id"></a><h3>gdk_x11_set_sm_client_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdk_x11_set_sm_client_id (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sm_client_id</code></em>);</pre>
<div class="warning"><p><code class="literal">gdk_x11_set_sm_client_id</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Sets the <code class="literal">SM_CLIENT_ID</code> property on the application's leader window so that
the window manager can save the application's state using the X11R6 ICCCM
session management protocol.</p>
<p>See the X Session Management Library documentation for more information on
session management and the Inter-Client Communication Conventions Manual</p>
<div class="refsect3">
<a name="gdk-x11-set-sm-client-id.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>sm_client_id</p></td>
<td class="parameter_description"><p>the client id assigned by the session manager when the
connection was opened, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to remove the property.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-foreign-new-for-display"></a><h3>gdk_x11_window_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_x11_window_foreign_new_for_display
                               (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                <em class="parameter"><code><span class="type">Window</span> window</code></em>);</pre>
<p>Wraps a native window in a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.</p>
<p>This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing
<a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is returned.</p>
<div class="refsect3">
<a name="gdk-x11-window-foreign-new-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where the window handle comes from.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>an XLib <span class="type">Window</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-window-foreign-new-for-display.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed. The wrapper will be
newly created, if one doesn't exist already.</p>
</div>
<p class="since">Since: 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-lookup-for-display"></a><h3>gdk_x11_window_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *
gdk_x11_window_lookup_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                   <em class="parameter"><code><span class="type">Window</span> window</code></em>);</pre>
<p>Looks up the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle.</p>
<div class="refsect3">
<a name="gdk-x11-window-lookup-for-display.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>display</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to the window handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>an XLib <span class="type">Window</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdk-x11-window-lookup-for-display.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</p>
</div>
<p class="since">Since: 2.24</p>
</div>
</div>
<div class="refsect1">
<a name="gdk2-X-Window-System-Interaction.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GDK-WINDOW-XWINDOW:CAPS"></a><h3>GDK_WINDOW_XWINDOW</h3>
<pre class="programlisting">#define GDK_WINDOW_XWINDOW	      GDK_DRAWABLE_XID
</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.26.1</div>
</body>
</html>