summaryrefslogtreecommitdiff
path: root/gdk/gdkdrawable.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-10-03 22:12:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-10-03 22:12:41 +0000
commitf903bdf1a745021df882b4f5ba2724e7536a3c5d (patch)
tree6c6d081a42a6c650a9a366caa4222ae9e0af2fe6 /gdk/gdkdrawable.h
parent344e8000a2d338719d6870faf4ca4e18bd2094ed (diff)
downloadgdk-pixbuf-f903bdf1a745021df882b4f5ba2724e7536a3c5d.tar.gz
Fix a reference to window_private->destroyed.
Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_reset_shapes_recurse): Fix a reference to window_private->destroyed. * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct (ugly) setting of an internal GdkWindow member to use a _slightly_ cleaner macro. * gdk/gdkprivate.h: Split GdkWindowPrivate into GdkDrawablePrivate and GdkWindowPrivate. Add extra macros for accessing GDK_DRAWABLE_ components. * *.[ch]: Massive adjustments for the above, use the new macros in a lot of places.
Diffstat (limited to 'gdk/gdkdrawable.h')
-rw-r--r--gdk/gdkdrawable.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/gdk/gdkdrawable.h b/gdk/gdkdrawable.h
index 30b217264..b3286c482 100644
--- a/gdk/gdkdrawable.h
+++ b/gdk/gdkdrawable.h
@@ -34,15 +34,34 @@ typedef enum
GDK_WINDOW_CHILD,
GDK_WINDOW_DIALOG,
GDK_WINDOW_TEMP,
- GDK_WINDOW_PIXMAP,
+ GDK_DRAWABLE_PIXMAP,
GDK_WINDOW_FOREIGN
-} GdkWindowType;
+} GdkDrawableType;
-struct _GdkWindow
+struct _GdkDrawable
{
gpointer user_data;
};
+/* Manipulation of drawables
+ */
+GdkDrawableType gdk_drawable_get_type (GdkDrawable *window);
+
+void gdk_drawable_set_data (GdkDrawable *drawable,
+ const gchar *key,
+ gpointer data,
+ GDestroyNotify destroy_func);
+void gdk_drawable_get_data (GdkDrawable *drawable,
+ const gchar *key);
+
+void gdk_drawable_get_size (GdkWindow *drawable,
+ gint *width,
+ gint *height);
+void gdk_drawable_set_colormap (GdkDrawable *drawable,
+ GdkColormap *colormap);
+GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable);
+GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable);
+
/* Drawing
*/
void gdk_draw_point (GdkDrawable *drawable,