]> Pileus Git - ~andy/gtk/blob - gdk/gdkwindowimpl.h
Revert name change
[~andy/gtk] / gdk / gdkwindowimpl.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 #ifndef __GDK_WINDOW_IMPL_H__
28 #define __GDK_WINDOW_IMPL_H__
29
30 #include <gdk/gdkwindow.h>
31
32 G_BEGIN_DECLS
33
34 #define GDK_TYPE_WINDOW_IMPL           (gdk_window_impl_get_type ())
35 #define GDK_WINDOW_IMPL(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImpl))
36 #define GDK_IS_WINDOW_IMPL(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WINDOW_IMPL))
37 #define GDK_WINDOW_IMPL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImplIface))
38
39 typedef struct _GdkWindowImpl       GdkWindowImpl;      /* dummy */
40 typedef struct _GdkWindowImplIface  GdkWindowImplIface;
41
42 struct _GdkWindowImplIface
43 {
44   GTypeInterface g_iface;
45
46   void         (* show)                 (GdkWindow       *window,
47                                          gboolean         raise);
48   void         (* hide)                 (GdkWindow       *window);
49   void         (* withdraw)             (GdkWindow       *window);
50   void         (* raise)                (GdkWindow       *window);
51   void         (* lower)                (GdkWindow       *window);
52
53   void         (* move_resize)          (GdkWindow       *window,
54                                          gboolean         with_move,
55                                          gint             x,
56                                          gint             y,
57                                          gint             width,
58                                          gint             height);
59   void         (* move_region)          (GdkWindow       *window,
60                                          const GdkRegion *region,
61                                          gint             dx,
62                                          gint             dy);
63   void         (* scroll)               (GdkWindow       *window,
64                                          gint             dx,
65                                          gint             dy);
66
67   void         (* clear_area)           (GdkWindow       *window,
68                                          gint             x,
69                                          gint             y,
70                                          gint             width,
71                                          gint             height,
72                                          gboolean         send_expose);
73   void         (* set_background)       (GdkWindow       *window,
74                                          const GdkColor  *color);
75   void         (* set_back_pixmap)      (GdkWindow       *window,
76                                          GdkPixmap       *pixmap,
77                                          gboolean         parent_relative);
78
79   GdkEventMask (* get_events)           (GdkWindow       *window);
80   void         (* set_events)           (GdkWindow       *window,
81                                          GdkEventMask     event_mask);
82   
83   gboolean     (* reparent)             (GdkWindow       *window,
84                                          GdkWindow       *new_parent,
85                                          gint             x,
86                                          gint             y);
87   
88   void         (* set_cursor)           (GdkWindow       *window,
89                                          GdkCursor       *cursor);
90
91   void         (* get_geometry)         (GdkWindow       *window,
92                                          gint            *x,
93                                          gint            *y,
94                                          gint            *width,
95                                          gint            *height,
96                                          gint            *depth);
97   gint         (* get_origin)           (GdkWindow       *window,
98                                          gint            *x,
99                                          gint            *y);
100   void         (* get_offsets)          (GdkWindow       *window,
101                                          gint            *x_offset,
102                                          gint            *y_offset);
103
104   void         (* shape_combine_mask)   (GdkWindow       *window,
105                                          GdkBitmap       *mask,
106                                          gint             x,
107                                          gint             y);
108   void         (* shape_combine_region) (GdkWindow       *window,
109                                          const GdkRegion *shape_region,
110                                          gint             offset_x,
111                                          gint             offset_y);
112   void         (* set_child_shapes)     (GdkWindow       *window);
113   void         (* merge_child_shapes)   (GdkWindow       *window);
114
115   gboolean     (* set_static_gravities) (GdkWindow       *window,
116                                          gboolean         use_static);
117 };
118
119 /* Interface Functions */
120 GType gdk_window_impl_get_type (void) G_GNUC_CONST;
121
122 G_END_DECLS
123
124 #endif /* __GDK_WINDOW_IMPL_H__ */