summaryrefslogtreecommitdiff
path: root/gdk/gdkwindowimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdkwindowimpl.h')
-rw-r--r--gdk/gdkwindowimpl.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h
new file mode 100644
index 0000000000..f9f97b6fa0
--- /dev/null
+++ b/gdk/gdkwindowimpl.h
@@ -0,0 +1,124 @@
+/* GDK - The GIMP Drawing Kit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GDK_WINDOW_IMPL_H__
+#define __GDK_WINDOW_IMPL_H__
+
+#include <gdk/gdkwindow.h>
+
+G_BEGIN_DECLS
+
+#define GDK_TYPE_WINDOW_IMPL (gdk_window_impl_get_type ())
+#define GDK_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImpl))
+#define GDK_IS_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WINDOW_IMPL))
+#define GDK_WINDOW_IMPL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImplIface))
+
+typedef struct _GdkWindowImpl GdkWindowImpl; /* dummy */
+typedef struct _GdkWindowImplIface GdkWindowImplIface;
+
+struct _GdkWindowImplIface
+{
+ GTypeInterface g_iface;
+
+ void (* show) (GdkWindow *window,
+ gboolean raise);
+ void (* hide) (GdkWindow *window);
+ void (* withdraw) (GdkWindow *window);
+ void (* raise) (GdkWindow *window);
+ void (* lower) (GdkWindow *window);
+
+ void (* move_resize) (GdkWindow *window,
+ gboolean with_move,
+ gint x,
+ gint y,
+ gint width,
+ gint height);
+ void (* move_region) (GdkWindow *window,
+ const GdkRegion *region,
+ gint dx,
+ gint dy);
+ void (* scroll) (GdkWindow *window,
+ gint dx,
+ gint dy);
+
+ void (* clear_area) (GdkWindow *window,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ gboolean send_expose);
+ void (* set_background) (GdkWindow *window,
+ const GdkColor *color);
+ void (* set_back_pixmap) (GdkWindow *window,
+ GdkPixmap *pixmap,
+ gboolean parent_relative);
+
+ GdkEventMask (* get_events) (GdkWindow *window);
+ void (* set_events) (GdkWindow *window,
+ GdkEventMask event_mask);
+
+ gboolean (* reparent) (GdkWindow *window,
+ GdkWindow *new_parent,
+ gint x,
+ gint y);
+
+ void (* set_cursor) (GdkWindow *window,
+ GdkCursor *cursor);
+
+ void (* get_geometry) (GdkWindow *window,
+ gint *x,
+ gint *y,
+ gint *width,
+ gint *height,
+ gint *depth);
+ gint (* get_origin) (GdkWindow *window,
+ gint *x,
+ gint *y);
+ void (* get_offsets) (GdkWindow *window,
+ gint *x_offset,
+ gint *y_offset);
+
+ void (* shape_combine_mask) (GdkWindow *window,
+ GdkBitmap *mask,
+ gint x,
+ gint y);
+ void (* shape_combine_region) (GdkWindow *window,
+ const GdkRegion *shape_region,
+ gint offset_x,
+ gint offset_y);
+ void (* set_child_shapes) (GdkWindow *window);
+ void (* merge_child_shapes) (GdkWindow *window);
+
+ gboolean (* set_static_gravities) (GdkWindow *window,
+ gboolean use_static);
+};
+
+/* Interface Functions */
+GType gdk_window_impl_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+
+#endif /* __GDK_WINDOW_IMPL_H__ */