]> Pileus Git - ~andy/gtk/blob - gdk/x11/gdkprivate-x11.h
Merge no-flicker branch into HEAD
[~andy/gtk] / gdk / x11 / gdkprivate-x11.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
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
25  */
26
27 /*
28  * Private uninstalled header defining things local to X windowing code
29  */
30
31 #ifndef __GDK_PRIVATE_X11_H__
32 #define __GDK_PRIVATE_X11_H__
33
34 #include <gdk/gdkprivate.h>
35 #include "gdkx.h"
36
37 void          gdk_xid_table_insert     (XID             *xid,
38                                         gpointer         data);
39 void          gdk_xid_table_remove     (XID              xid);
40 gint          gdk_send_xevent          (Window           window,
41                                         gboolean         propagate,
42                                         glong            event_mask,
43                                         XEvent          *event_send);
44 GdkGC *       _gdk_x11_gc_new          (GdkDrawable     *drawable,
45                                         GdkGCValues     *values,
46                                         GdkGCValuesMask  values_mask);
47 GdkColormap * gdk_colormap_lookup      (Colormap         xcolormap);
48 GdkVisual *   gdk_visual_lookup        (Visual          *xvisual);
49
50 void gdk_window_add_colormap_windows (GdkWindow *window);
51
52 /* Please see gdkwindow.c for comments on how to use */ 
53 Window gdk_window_xid_at        (Window    base,
54                                  gint      bx,
55                                  gint      by,
56                                  gint      x,
57                                  gint      y,
58                                  GList    *excludes,
59                                  gboolean  excl_child);
60 Window gdk_window_xid_at_coords (gint      x,
61                                  gint      y,
62                                  GList    *excludes,
63                                  gboolean  excl_child);
64
65 /* Routines from gdkgeometry-x11.c */
66
67 void _gdk_window_init_position     (GdkWindow    *window);
68 void _gdk_window_move_resize_child (GdkWindow    *window,
69                                     gint          x,
70                                     gint          y,
71                                     gint          width,
72                                     gint          height);
73 void _gdk_window_process_expose    (GdkWindow    *window,
74                                     gulong        serial,
75                                     GdkRectangle *area);
76
77 extern GdkDrawableClass  _gdk_x11_drawable_class;
78 extern gboolean          gdk_use_xshm;
79 extern Atom              gdk_wm_delete_window;
80 extern Atom              gdk_wm_take_focus;
81 extern Atom              gdk_wm_protocols;
82 extern Atom              gdk_wm_window_protocols[];
83 extern GdkWindow        *selection_owner[];
84 extern gboolean          gdk_null_window_warnings;
85 extern const int         gdk_nevent_masks;
86 extern const int         gdk_event_mask_table[];
87
88 extern GdkWindowPrivate *gdk_xgrab_window;  /* Window that currently holds the
89                                              * x pointer grab
90                                              */
91
92 #ifdef USE_XIM
93 extern GdkICPrivate *gdk_xim_ic;                /* currently using IC */
94 extern GdkWindow *gdk_xim_window;               /* currently using Window */
95 #endif /* USE_XIM */
96
97
98 #endif /* __GDK_PRIVATE_X11_H__ */
99
100