summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-10 09:06:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-21 12:06:56 -0500
commitc6a5074295c65b59bb88ae7a2ade37ae2c46d611 (patch)
treed4fae75781cb10da24cb3c1b71e4f9e1e21dcf47 /gdk/gdkinternals.h
parent23a2b4221683765d5ff8f5c0dea33ee02dc45f66 (diff)
downloadgtk+-c6a5074295c65b59bb88ae7a2ade37ae2c46d611.tar.gz
Move GdkVisual parallel-implementable
It turned out no vfuncs were necessary. I've decided to move the screen member up to GdkVisual, since it is the same in all backends. The X11 backend subclasses now, to add the X members that it needs to keep track of. GdkVisual and GdkVisualClass are hidden now.
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index b50ee9e24d..6defd11414 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -466,6 +466,36 @@ struct _GdkDragContext {
GdkDevice *device;
};
+struct _GdkVisual
+{
+ GObject parent_instance;
+
+ GdkVisualType type;
+ gint depth;
+ GdkByteOrder byte_order;
+ gint colormap_size;
+ gint bits_per_rgb;
+
+ guint32 red_mask;
+ gint red_shift;
+ gint red_prec;
+
+ guint32 green_mask;
+ gint green_shift;
+ gint green_prec;
+
+ guint32 blue_mask;
+ gint blue_shift;
+ gint blue_prec;
+
+ GdkScreen *screen;
+};
+
+struct _GdkVisualClass
+{
+ GObjectClass parent_class;
+};
+
extern GSList *_gdk_displays;
extern gchar *_gdk_display_name;
extern gint _gdk_screen_number;