]> Pileus Git - ~andy/gtk/blob - gdk/x11/gdkprivate-x11.h
applied patch from Andreas Persenius <ndap@swipnet.se> that updates the
[~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 Lesser 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  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser 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-2000.  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 void _gdk_window_init_position     (GdkWindow     *window);
67 void _gdk_window_move_resize_child (GdkWindow     *window,
68                                     gint           x,
69                                     gint           y,
70                                     gint           width,
71                                     gint           height);
72 void _gdk_window_process_expose    (GdkWindow     *window,
73                                     gulong         serial,
74                                     GdkRectangle  *area);
75
76 extern GdkDrawableClass  _gdk_x11_drawable_class;
77 extern gboolean          gdk_use_xshm;
78 extern Atom              gdk_wm_delete_window;
79 extern Atom              gdk_wm_take_focus;
80 extern Atom              gdk_wm_protocols;
81 extern Atom              gdk_wm_window_protocols[];
82 extern GdkWindow        *selection_owner[];
83 extern gboolean          gdk_null_window_warnings;
84 extern const int         gdk_nevent_masks;
85 extern const int         gdk_event_mask_table[];
86
87 extern GdkWindowObject *gdk_xgrab_window;  /* Window that currently holds the
88                                             * x pointer grab
89                                             */
90
91 #ifdef USE_XIM
92 extern GdkICPrivate *gdk_xim_ic;                /* currently using IC */
93 extern GdkWindow *gdk_xim_window;               /* currently using Window */
94 #endif /* USE_XIM */
95
96
97 #endif /* __GDK_PRIVATE_X11_H__ */
98
99