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 <!-- ##### MACRO GDK_ROOT_WINDOW ##### -->
19 Obtains the Xlib window id of the root window of the current screen.
24 <!-- ##### MACRO GDK_ROOT_PARENT ##### -->
26 Obtains the Xlib window id of the root window of the default screen.
31 <!-- ##### MACRO GDK_DISPLAY ##### -->
36 @Returns: an Xlib <type>Display*</type>.
39 <!-- ##### MACRO GDK_WINDOW_XDISPLAY ##### -->
41 Returns the display of a #GdkWindow.
45 @Returns: an Xlib <type>Display*</type>.
48 <!-- ##### MACRO GDK_WINDOW_XID ##### -->
50 Returns the X window belonging to a #GdkWindow.
54 @Returns: the Xlib <type>Window</type> of @win.
57 <!-- ##### MACRO GDK_PIXMAP_XDISPLAY ##### -->
59 Returns the display of a #GdkPixmap.
63 @Returns: an Xlib <type>Display*</type>.
64 <!-- # Unused Parameters # -->
68 <!-- ##### MACRO GDK_PIXMAP_XID ##### -->
70 Returns the X pixmap belonging to a #GdkPixmap.
74 @Returns: the Xlib <type>XPixmap</type> of @win.
75 <!-- # Unused Parameters # -->
79 <!-- ##### MACRO GDK_DISPLAY_XDISPLAY ##### -->
81 Returns the display of a #GdkDisplay.
84 @display: a #GdkDisplay.
87 <!-- ##### MACRO GDK_DRAWABLE_XDISPLAY ##### -->
89 Returns the display of a #GdkDrawable.
93 @Returns: an Xlib <type>Display*</type>.
96 <!-- ##### MACRO GDK_DRAWABLE_XID ##### -->
98 Returns the X resource (window or pixmap) belonging to a #GdkDrawable.
101 @win: a #GdkDrawable.
102 @Returns: the ID of @win's X resource.
105 <!-- ##### MACRO GDK_IMAGE_XDISPLAY ##### -->
107 Returns the display of a #GdkImage.
111 @Returns: an Xlib <type>Display*</type>.
114 <!-- ##### MACRO GDK_IMAGE_XIMAGE ##### -->
116 Returns the X image belonging to a #GdkImage.
120 @Returns: an <type>XImage*</type>.
123 <!-- ##### MACRO GDK_GC_XDISPLAY ##### -->
125 Returns the display of a #GdkGC.
129 @Returns: an Xlib <type>Display*</type>.
132 <!-- ##### MACRO GDK_COLORMAP_XDISPLAY ##### -->
134 Returns the display of a #GdkColormap.
137 @cmap: a #GdkColormap.
138 @Returns: an Xlib <type>Display*</type>.
141 <!-- ##### MACRO GDK_COLORMAP_XCOLORMAP ##### -->
143 Returns the X colormap belonging to a #GdkColormap.
146 @cmap: a #GdkColormap.
147 @Returns: an Xlib <type>Colormap</type>.
150 <!-- ##### MACRO GDK_SCREEN_XDISPLAY ##### -->
152 Returns the display of a #GdkScreen.
155 @screen: a #GdkScreen.
156 @Returns: an Xlib <type>Display*</type>.
159 <!-- ##### MACRO GDK_SCREEN_XNUMBER ##### -->
161 Returns the index of a #GdkScreen.
164 @screen: a #GdkScreen
165 @Returns: the position of @screen among the screens of
169 <!-- ##### MACRO GDK_SCREEN_XSCREEN ##### -->
171 Returns the screen of a #GdkScreen.
174 @screen: a #GdkScreen
175 @Returns: an Xlib <type>Screen*</type>.
178 <!-- ##### MACRO GDK_VISUAL_XVISUAL ##### -->
180 Returns the X visual belonging to a #GdkVisual.
184 @Returns: an Xlib <type>Visual*</type>.
187 <!-- ##### MACRO GDK_FONT_XDISPLAY ##### -->
189 Returns the display of a #GdkFont.
193 @Returns: an Xlib <type>Display*</type>.
196 <!-- ##### MACRO GDK_FONT_XFONT ##### -->
198 Returns the X font belonging to a #GdkFont.
202 @Returns: an Xlib <type>XFontStruct*</type> or an <type>XFontSet</type>.
205 <!-- ##### MACRO GDK_CURSOR_XCURSOR ##### -->
207 Returns the X cursor belonging to a #GdkCursor.
210 @cursor: a #GdkCursor.
211 @Returns: an Xlib <type>Cursor</type>.
214 <!-- ##### MACRO GDK_CURSOR_XDISPLAY ##### -->
216 Returns the display of a #GdkCursor.
219 @cursor: a #GdkCursor.
220 @Returns: an Xlib <type>Display*</type>.
223 <!-- ##### MACRO GDK_GC_XGC ##### -->
225 Returns the X GC of a #GdkGC.
229 @Returns: an Xlib <type>GC</type>.
232 <!-- ##### MACRO GDK_GC_GET_XGC ##### -->
234 Returns the X GC of a #GdkGC.
238 @Returns: an Xlib <type>GC</type>.
241 <!-- ##### MACRO GDK_WINDOW_XWINDOW ##### -->
243 Another name for GDK_DRAWABLE_XID().
248 <!-- ##### FUNCTION gdkx_visual_get ##### -->
257 <!-- ##### FUNCTION gdkx_colormap_get ##### -->
265 <!-- ##### FUNCTION gdk_pixmap_foreign_new ##### -->
274 <!-- ##### FUNCTION gdk_pixmap_foreign_new_for_display ##### -->
284 <!-- ##### FUNCTION gdk_window_foreign_new ##### -->
293 <!-- ##### FUNCTION gdk_window_foreign_new_for_display ##### -->
303 <!-- ##### FUNCTION gdk_xid_table_lookup ##### -->
312 <!-- ##### FUNCTION gdk_xid_table_lookup_for_display ##### -->
322 <!-- ##### FUNCTION gdk_window_lookup ##### -->
330 <!-- ##### FUNCTION gdk_window_lookup_for_display ##### -->
340 <!-- ##### FUNCTION gdk_pixmap_lookup ##### -->
348 <!-- ##### FUNCTION gdk_pixmap_lookup_for_display ##### -->
358 <!-- ##### MACRO gdk_font_lookup ##### -->
360 Obtains the #GdkFont for the given Xlib font ID, or %NULL if no #GdkFont has
361 been created for @xid.
367 <!-- ##### MACRO gdk_font_lookup_for_display ##### -->
369 Obtains the #GdkFont for the given Xlib font ID on @display, or %NULL if no
370 #GdkFont has been created for @xid.
373 @display: a #GdkDisplay
374 @xid: an Xlib font ID
378 <!-- ##### FUNCTION gdk_x11_lookup_xdisplay ##### -->
387 <!-- ##### FUNCTION gdk_x11_get_server_time ##### -->
396 <!-- ##### FUNCTION gdk_net_wm_supports ##### -->
405 <!-- ##### FUNCTION gdk_x11_screen_supports_net_wm_hint ##### -->
415 <!-- ##### FUNCTION gdk_x11_screen_get_window_manager_name ##### -->
424 <!-- ##### FUNCTION gdk_x11_screen_lookup_visual ##### -->
434 <!-- ##### FUNCTION gdk_x11_window_set_user_time ##### -->
443 <!-- ##### FUNCTION gdk_x11_display_get_user_time ##### -->
452 <!-- ##### FUNCTION gdk_x11_colormap_foreign_new ##### -->
462 <!-- ##### FUNCTION gdk_x11_colormap_get_xcolormap ##### -->
471 <!-- ##### FUNCTION gdk_x11_colormap_get_xdisplay ##### -->
480 <!-- ##### FUNCTION gdk_x11_cursor_get_xcursor ##### -->
489 <!-- ##### FUNCTION gdk_x11_cursor_get_xdisplay ##### -->
498 <!-- ##### FUNCTION gdk_x11_display_get_xdisplay ##### -->
507 <!-- ##### FUNCTION gdk_x11_display_grab ##### -->
515 <!-- ##### FUNCTION gdk_x11_display_ungrab ##### -->
523 <!-- ##### FUNCTION gdk_x11_register_standard_event_type ##### -->
533 <!-- ##### FUNCTION gdk_x11_drawable_get_xdisplay ##### -->
542 <!-- ##### FUNCTION gdk_x11_drawable_get_xid ##### -->
551 <!-- ##### FUNCTION gdk_x11_font_get_name ##### -->
560 <!-- ##### FUNCTION gdk_x11_font_get_xdisplay ##### -->
569 <!-- ##### FUNCTION gdk_x11_font_get_xfont ##### -->
578 <!-- ##### FUNCTION gdk_x11_gc_get_xdisplay ##### -->
587 <!-- ##### FUNCTION gdk_x11_gc_get_xgc ##### -->
596 <!-- ##### FUNCTION gdk_x11_get_default_root_xwindow ##### -->
604 <!-- ##### FUNCTION gdk_x11_get_default_screen ##### -->
612 <!-- ##### FUNCTION gdk_x11_get_default_xdisplay ##### -->
620 <!-- ##### FUNCTION gdk_x11_grab_server ##### -->
627 <!-- ##### FUNCTION gdk_x11_image_get_xdisplay ##### -->
636 <!-- ##### FUNCTION gdk_x11_image_get_ximage ##### -->
645 <!-- ##### FUNCTION gdk_x11_screen_get_screen_number ##### -->
654 <!-- ##### FUNCTION gdk_x11_screen_get_xscreen ##### -->
663 <!-- ##### FUNCTION gdk_x11_ungrab_server ##### -->
670 <!-- ##### FUNCTION gdk_x11_visual_get_xvisual ##### -->
679 <!-- ##### FUNCTION gdk_x11_atom_to_xatom ##### -->
688 <!-- ##### FUNCTION gdk_x11_atom_to_xatom_for_display ##### -->
698 <!-- ##### FUNCTION gdk_x11_xatom_to_atom ##### -->
707 <!-- ##### FUNCTION gdk_x11_xatom_to_atom_for_display ##### -->
717 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name ##### -->
726 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name_for_display ##### -->
736 <!-- ##### FUNCTION gdk_x11_get_xatom_name ##### -->
745 <!-- ##### FUNCTION gdk_x11_get_xatom_name_for_display ##### -->