1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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.
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.
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.
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/.
27 #ifndef __GDK_WINDOW_IMPL_H__
28 #define __GDK_WINDOW_IMPL_H__
30 #include <gdk/gdkwindow.h>
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))
39 typedef struct _GdkWindowImpl GdkWindowImpl; /* dummy */
40 typedef struct _GdkWindowImplIface GdkWindowImplIface;
42 struct _GdkWindowImplIface
44 GTypeInterface g_iface;
46 void (* show) (GdkWindow *window,
48 void (* hide) (GdkWindow *window);
49 void (* withdraw) (GdkWindow *window);
50 void (* raise) (GdkWindow *window);
51 void (* lower) (GdkWindow *window);
53 void (* move_resize) (GdkWindow *window,
59 void (* move_region) (GdkWindow *window,
60 const GdkRegion *region,
63 void (* scroll) (GdkWindow *window,
67 void (* clear_area) (GdkWindow *window,
72 gboolean send_expose);
73 void (* set_background) (GdkWindow *window,
74 const GdkColor *color);
75 void (* set_back_pixmap) (GdkWindow *window,
77 gboolean parent_relative);
79 GdkEventMask (* get_events) (GdkWindow *window);
80 void (* set_events) (GdkWindow *window,
81 GdkEventMask event_mask);
83 gboolean (* reparent) (GdkWindow *window,
84 GdkWindow *new_parent,
88 void (* set_cursor) (GdkWindow *window,
91 void (* get_geometry) (GdkWindow *window,
97 gint (* get_origin) (GdkWindow *window,
100 void (* get_offsets) (GdkWindow *window,
104 void (* shape_combine_mask) (GdkWindow *window,
108 void (* shape_combine_region) (GdkWindow *window,
109 const GdkRegion *shape_region,
112 void (* set_child_shapes) (GdkWindow *window);
113 void (* merge_child_shapes) (GdkWindow *window);
115 gboolean (* set_static_gravities) (GdkWindow *window,
116 gboolean use_static);
119 /* Interface Functions */
120 GType gdk_window_impl_get_type (void) G_GNUC_CONST;
124 #endif /* __GDK_WINDOW_IMPL_H__ */