1 <!-- ##### SECTION Title ##### -->
2 X Window System Interaction
4 <!-- ##### SECTION Short_Description ##### -->
5 X backend-specific functions
7 <!-- ##### SECTION Long_Description ##### -->
12 <!-- ##### SECTION See_Also ##### -->
17 <!-- ##### SECTION Stability_Level ##### -->
20 <!-- ##### MACRO GDK_ROOT_WINDOW ##### -->
22 Obtains the Xlib window id of the root window of the current screen.
27 <!-- ##### MACRO GDK_ROOT_PARENT ##### -->
29 Obtains the Xlib window id of the root window of the default screen.
34 <!-- ##### MACRO GDK_DISPLAY ##### -->
39 @Returns: an Xlib <type>Display*</type>.
42 <!-- ##### MACRO GDK_WINDOW_XDISPLAY ##### -->
44 Returns the display of a #GdkWindow.
48 @Returns: an Xlib <type>Display*</type>.
51 <!-- ##### MACRO GDK_WINDOW_XID ##### -->
53 Returns the X window belonging to a #GdkWindow.
57 @Returns: the Xlib <type>Window</type> of @win.
60 <!-- ##### MACRO GDK_PIXMAP_XDISPLAY ##### -->
62 Returns the display of a #GdkPixmap.
66 @Returns: an Xlib <type>Display*</type>.
69 <!-- ##### MACRO GDK_PIXMAP_XID ##### -->
71 Returns the X pixmap belonging to a #GdkPixmap.
75 @Returns: the Xlib <type>XPixmap</type> of @win.
78 <!-- ##### MACRO GDK_DISPLAY_XDISPLAY ##### -->
80 Returns the display of a #GdkDisplay.
83 @display: a #GdkDisplay.
86 <!-- ##### MACRO GDK_DRAWABLE_XDISPLAY ##### -->
88 Returns the display of a #GdkDrawable.
92 @Returns: an Xlib <type>Display*</type>.
95 <!-- ##### MACRO GDK_DRAWABLE_XID ##### -->
97 Returns the X resource (window or pixmap) belonging to a #GdkDrawable.
100 @win: a #GdkDrawable.
101 @Returns: the ID of @win's X resource.
104 <!-- ##### MACRO GDK_IMAGE_XDISPLAY ##### -->
106 Returns the display of a #GdkImage.
110 @Returns: an Xlib <type>Display*</type>.
113 <!-- ##### MACRO GDK_IMAGE_XIMAGE ##### -->
115 Returns the X image belonging to a #GdkImage.
119 @Returns: an <type>XImage*</type>.
122 <!-- ##### MACRO GDK_GC_XDISPLAY ##### -->
124 Returns the display of a #GdkGC.
128 @Returns: an Xlib <type>Display*</type>.
131 <!-- ##### MACRO GDK_COLORMAP_XDISPLAY ##### -->
133 Returns the display of a #GdkColormap.
136 @cmap: a #GdkColormap.
137 @Returns: an Xlib <type>Display*</type>.
140 <!-- ##### MACRO GDK_COLORMAP_XCOLORMAP ##### -->
142 Returns the X colormap belonging to a #GdkColormap.
145 @cmap: a #GdkColormap.
146 @Returns: an Xlib <type>Colormap</type>.
149 <!-- ##### MACRO GDK_SCREEN_XDISPLAY ##### -->
151 Returns the display of a #GdkScreen.
154 @screen: a #GdkScreen.
155 @Returns: an Xlib <type>Display*</type>.
158 <!-- ##### MACRO GDK_SCREEN_XNUMBER ##### -->
160 Returns the index of a #GdkScreen.
163 @screen: a #GdkScreen
164 @Returns: the position of @screen among the screens of
168 <!-- ##### MACRO GDK_SCREEN_XSCREEN ##### -->
170 Returns the screen of a #GdkScreen.
173 @screen: a #GdkScreen
174 @Returns: an Xlib <type>Screen*</type>.
177 <!-- ##### MACRO GDK_VISUAL_XVISUAL ##### -->
179 Returns the X visual belonging to a #GdkVisual.
183 @Returns: an Xlib <type>Visual*</type>.
186 <!-- ##### MACRO GDK_FONT_XDISPLAY ##### -->
188 Returns the display of a #GdkFont.
192 @Returns: an Xlib <type>Display*</type>.
195 <!-- ##### MACRO GDK_FONT_XFONT ##### -->
197 Returns the X font belonging to a #GdkFont.
201 @Returns: an Xlib <type>XFontStruct*</type> or an <type>XFontSet</type>.
204 <!-- ##### MACRO GDK_CURSOR_XCURSOR ##### -->
206 Returns the X cursor belonging to a #GdkCursor.
209 @cursor: a #GdkCursor.
210 @Returns: an Xlib <type>Cursor</type>.
213 <!-- ##### MACRO GDK_CURSOR_XDISPLAY ##### -->
215 Returns the display of a #GdkCursor.
218 @cursor: a #GdkCursor.
219 @Returns: an Xlib <type>Display*</type>.
222 <!-- ##### MACRO GDK_GC_XGC ##### -->
224 Returns the X GC of a #GdkGC.
228 @Returns: an Xlib <type>GC</type>.
231 <!-- ##### MACRO GDK_GC_GET_XGC ##### -->
233 Returns the X GC of a #GdkGC.
237 @Returns: an Xlib <type>GC</type>.
240 <!-- ##### MACRO GDK_WINDOW_XWINDOW ##### -->
242 Another name for GDK_DRAWABLE_XID().
247 <!-- ##### FUNCTION gdkx_visual_get ##### -->
256 <!-- ##### FUNCTION gdkx_colormap_get ##### -->
264 <!-- ##### FUNCTION gdk_pixmap_foreign_new ##### -->
273 <!-- ##### FUNCTION gdk_pixmap_foreign_new_for_display ##### -->
283 <!-- ##### FUNCTION gdk_window_foreign_new ##### -->
292 <!-- ##### FUNCTION gdk_window_foreign_new_for_display ##### -->
302 <!-- ##### FUNCTION gdk_xid_table_lookup ##### -->
311 <!-- ##### FUNCTION gdk_xid_table_lookup_for_display ##### -->
321 <!-- ##### FUNCTION gdk_window_lookup ##### -->
329 <!-- ##### FUNCTION gdk_window_lookup_for_display ##### -->
339 <!-- ##### FUNCTION gdk_pixmap_lookup ##### -->
347 <!-- ##### FUNCTION gdk_pixmap_lookup_for_display ##### -->
357 <!-- ##### MACRO gdk_font_lookup ##### -->
359 Obtains the #GdkFont for the given Xlib font ID, or %NULL if no #GdkFont has
360 been created for @xid.
366 <!-- ##### MACRO gdk_font_lookup_for_display ##### -->
368 Obtains the #GdkFont for the given Xlib font ID on @display, or %NULL if no
369 #GdkFont has been created for @xid.
372 @display: a #GdkDisplay
373 @xid: an Xlib font ID
377 <!-- ##### FUNCTION gdk_x11_lookup_xdisplay ##### -->
386 <!-- ##### FUNCTION gdk_x11_get_server_time ##### -->
395 <!-- ##### FUNCTION gdk_net_wm_supports ##### -->
404 <!-- ##### FUNCTION gdk_x11_screen_supports_net_wm_hint ##### -->
414 <!-- ##### FUNCTION gdk_x11_screen_get_window_manager_name ##### -->
423 <!-- ##### FUNCTION gdk_x11_screen_lookup_visual ##### -->
433 <!-- ##### FUNCTION gdk_x11_window_set_user_time ##### -->
442 <!-- ##### FUNCTION gdk_x11_window_move_to_current_desktop ##### -->
450 <!-- ##### FUNCTION gdk_x11_display_get_user_time ##### -->
459 <!-- ##### FUNCTION gdk_x11_colormap_foreign_new ##### -->
469 <!-- ##### FUNCTION gdk_x11_colormap_get_xcolormap ##### -->
478 <!-- ##### FUNCTION gdk_x11_colormap_get_xdisplay ##### -->
487 <!-- ##### FUNCTION gdk_x11_cursor_get_xcursor ##### -->
496 <!-- ##### FUNCTION gdk_x11_cursor_get_xdisplay ##### -->
505 <!-- ##### FUNCTION gdk_x11_display_get_xdisplay ##### -->
514 <!-- ##### FUNCTION gdk_x11_display_grab ##### -->
522 <!-- ##### FUNCTION gdk_x11_display_ungrab ##### -->
530 <!-- ##### FUNCTION gdk_x11_display_set_cursor_theme ##### -->
540 <!-- ##### FUNCTION gdk_x11_register_standard_event_type ##### -->
550 <!-- ##### FUNCTION gdk_x11_drawable_get_xdisplay ##### -->
559 <!-- ##### FUNCTION gdk_x11_drawable_get_xid ##### -->
568 <!-- ##### FUNCTION gdk_x11_font_get_name ##### -->
577 <!-- ##### FUNCTION gdk_x11_font_get_xdisplay ##### -->
586 <!-- ##### FUNCTION gdk_x11_font_get_xfont ##### -->
595 <!-- ##### FUNCTION gdk_x11_gc_get_xdisplay ##### -->
604 <!-- ##### FUNCTION gdk_x11_gc_get_xgc ##### -->
613 <!-- ##### FUNCTION gdk_x11_get_default_root_xwindow ##### -->
621 <!-- ##### FUNCTION gdk_x11_get_default_screen ##### -->
629 <!-- ##### FUNCTION gdk_x11_get_default_xdisplay ##### -->
637 <!-- ##### FUNCTION gdk_x11_grab_server ##### -->
644 <!-- ##### FUNCTION gdk_x11_image_get_xdisplay ##### -->
653 <!-- ##### FUNCTION gdk_x11_image_get_ximage ##### -->
662 <!-- ##### FUNCTION gdk_x11_screen_get_screen_number ##### -->
671 <!-- ##### FUNCTION gdk_x11_screen_get_xscreen ##### -->
680 <!-- ##### FUNCTION gdk_x11_ungrab_server ##### -->
687 <!-- ##### FUNCTION gdk_x11_visual_get_xvisual ##### -->
696 <!-- ##### FUNCTION gdk_x11_atom_to_xatom ##### -->
705 <!-- ##### FUNCTION gdk_x11_atom_to_xatom_for_display ##### -->
715 <!-- ##### FUNCTION gdk_x11_xatom_to_atom ##### -->
724 <!-- ##### FUNCTION gdk_x11_xatom_to_atom_for_display ##### -->
734 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name ##### -->
743 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name_for_display ##### -->
753 <!-- ##### FUNCTION gdk_x11_get_xatom_name ##### -->
762 <!-- ##### FUNCTION gdk_x11_get_xatom_name_for_display ##### -->