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.
228 Note that the clip origin, clip region and tile/stipple origin fields of the
229 returned GC may not be in sync with @gc. If you need that,
230 use GDK_GC_GET_XGC().
234 @Returns: an Xlib <type>GC</type>.
237 <!-- ##### MACRO GDK_GC_GET_XGC ##### -->
239 Returns the X GC of a #GdkGC.
243 @Returns: an Xlib <type>GC</type>.
246 <!-- ##### MACRO GDK_WINDOW_XWINDOW ##### -->
248 Another name for GDK_DRAWABLE_XID().
253 <!-- ##### FUNCTION gdkx_visual_get ##### -->
262 <!-- ##### FUNCTION gdkx_colormap_get ##### -->
270 <!-- ##### FUNCTION gdk_pixmap_foreign_new ##### -->
279 <!-- ##### FUNCTION gdk_pixmap_foreign_new_for_display ##### -->
289 <!-- ##### FUNCTION gdk_window_foreign_new ##### -->
298 <!-- ##### FUNCTION gdk_window_foreign_new_for_display ##### -->
308 <!-- ##### FUNCTION gdk_xid_table_lookup ##### -->
317 <!-- ##### FUNCTION gdk_xid_table_lookup_for_display ##### -->
327 <!-- ##### FUNCTION gdk_window_lookup ##### -->
335 <!-- ##### FUNCTION gdk_window_lookup_for_display ##### -->
345 <!-- ##### FUNCTION gdk_pixmap_lookup ##### -->
353 <!-- ##### FUNCTION gdk_pixmap_lookup_for_display ##### -->
363 <!-- ##### MACRO gdk_font_lookup ##### -->
365 Obtains the #GdkFont for the given Xlib font ID, or %NULL if no #GdkFont has
366 been created for @xid.
372 <!-- ##### MACRO gdk_font_lookup_for_display ##### -->
374 Obtains the #GdkFont for the given Xlib font ID on @display, or %NULL if no
375 #GdkFont has been created for @xid.
382 <!-- ##### FUNCTION gdk_x11_lookup_xdisplay ##### -->
391 <!-- ##### FUNCTION gdk_x11_get_server_time ##### -->
400 <!-- ##### FUNCTION gdk_net_wm_supports ##### -->
409 <!-- ##### FUNCTION gdk_x11_screen_supports_net_wm_hint ##### -->
419 <!-- ##### FUNCTION gdk_x11_screen_get_window_manager_name ##### -->
428 <!-- ##### FUNCTION gdk_x11_screen_lookup_visual ##### -->
438 <!-- ##### FUNCTION gdk_x11_colormap_foreign_new ##### -->
448 <!-- ##### FUNCTION gdk_x11_colormap_get_xcolormap ##### -->
457 <!-- ##### FUNCTION gdk_x11_colormap_get_xdisplay ##### -->
466 <!-- ##### FUNCTION gdk_x11_cursor_get_xcursor ##### -->
475 <!-- ##### FUNCTION gdk_x11_cursor_get_xdisplay ##### -->
484 <!-- ##### FUNCTION gdk_x11_display_get_xdisplay ##### -->
493 <!-- ##### FUNCTION gdk_x11_display_grab ##### -->
501 <!-- ##### FUNCTION gdk_x11_display_ungrab ##### -->
509 <!-- ##### FUNCTION gdk_x11_drawable_get_xdisplay ##### -->
518 <!-- ##### FUNCTION gdk_x11_drawable_get_xid ##### -->
527 <!-- ##### FUNCTION gdk_x11_font_get_name ##### -->
536 <!-- ##### FUNCTION gdk_x11_font_get_xdisplay ##### -->
545 <!-- ##### FUNCTION gdk_x11_font_get_xfont ##### -->
554 <!-- ##### FUNCTION gdk_x11_gc_get_xdisplay ##### -->
563 <!-- ##### FUNCTION gdk_x11_gc_get_xgc ##### -->
572 <!-- ##### FUNCTION gdk_x11_get_default_root_xwindow ##### -->
580 <!-- ##### FUNCTION gdk_x11_get_default_screen ##### -->
588 <!-- ##### FUNCTION gdk_x11_get_default_xdisplay ##### -->
596 <!-- ##### FUNCTION gdk_x11_grab_server ##### -->
603 <!-- ##### FUNCTION gdk_x11_image_get_xdisplay ##### -->
612 <!-- ##### FUNCTION gdk_x11_image_get_ximage ##### -->
621 <!-- ##### FUNCTION gdk_x11_screen_get_screen_number ##### -->
630 <!-- ##### FUNCTION gdk_x11_screen_get_xscreen ##### -->
639 <!-- ##### FUNCTION gdk_x11_ungrab_server ##### -->
646 <!-- ##### FUNCTION gdk_x11_visual_get_xvisual ##### -->
655 <!-- ##### FUNCTION gdk_x11_atom_to_xatom ##### -->
664 <!-- ##### FUNCTION gdk_x11_atom_to_xatom_for_display ##### -->
674 <!-- ##### FUNCTION gdk_x11_xatom_to_atom ##### -->
683 <!-- ##### FUNCTION gdk_x11_xatom_to_atom_for_display ##### -->
693 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name ##### -->
702 <!-- ##### FUNCTION gdk_x11_get_xatom_by_name_for_display ##### -->
712 <!-- ##### FUNCTION gdk_x11_get_xatom_name ##### -->
721 <!-- ##### FUNCTION gdk_x11_get_xatom_name_for_display ##### -->