]> Pileus Git - ~andy/gtk/blob - gdk/x11/gdkx.h
Initial revision
[~andy/gtk] / gdk / x11 / gdkx.h
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 #ifndef __GDK_X_H__
19 #define __GDK_X_H__
20
21 #include <gdk/gdkprivate.h>
22
23
24 #define GDK_ROOT_WINDOW()             gdk_root_window
25 #define GDK_ROOT_PARENT()             &gdk_root_parent
26 #define GDK_DISPLAY()                 gdk_display
27 #define GDK_WINDOW_XDISPLAY(win)      (((GdkWindowPrivate*) win)->xdisplay)
28 #define GDK_WINDOW_XWINDOW(win)       (((GdkWindowPrivate*) win)->xwindow)
29 #define GDK_IMAGE_XDISPLAY(image)     (((GdkImagePrivate*) image)->xdisplay)
30 #define GDK_IMAGE_XIMAGE(image)       (((GdkImagePrivate*) image)->ximage)
31 #define GDK_GC_XDISPLAY(gc)           (((GdkGCPrivate*) gc)->xdisplay)
32 #define GDK_GC_XGC(gc)                (((GdkGCPrivate*) gc)->xgc)
33 #define GDK_COLORMAP_XDISPLAY(cmap)   (((GdkColormapPrivate*) cmap)->xdisplay)
34 #define GDK_COLORMAP_XCOLORMAP(cmap)  (((GdkColormapPrivate*) cmap)->xcolormap)
35 #define GDK_VISUAL_XVISUAL(vis)       (((GdkVisualPrivate*) vis)->xvisual)
36 #define GDK_FONT_XDISPLAY(font)       (((GdkFontPrivate*) font)->xdisplay)
37 #define GDK_FONT_XFONT(font)          (((GdkFontPrivate*) font)->xfont)
38
39
40 GdkVisual*   gdkx_visual_get   (VisualID xvisualid);
41 GdkColormap* gdkx_colormap_get (Colormap xcolormap);
42 /* Utility function in gdk.c - not sure where it belongs, but it's
43    needed in more than one place, so make it public */
44 Window        gdk_get_client_window      (Display  *dpy,
45                                           Window    win);
46
47
48 #endif /* __GDK_X_H__ */