]> Pileus Git - ~andy/gtk/blob - gdk/gdkvisualprivate.h
075916a6f2fdee02122dc8b9c42c8620483bbe75
[~andy/gtk] / gdk / gdkvisualprivate.h
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 2010 Red Hat, Inc
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 #ifndef __GDK_VISUAL_PRIVATE_H__
21 #define __GDK_VISUAL_PRIVATE_H__
22
23 #include "gdkvisual.h"
24
25 G_BEGIN_DECLS
26
27 #define GDK_VISUAL_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_VISUAL, GdkVisualClass))
28 #define GDK_IS_VISUAL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_VISUAL))
29 #define GDK_VISUAL_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_VISUAL, GdkVisualClass))
30
31 typedef struct _GdkVisualClass    GdkVisualClass;
32
33 struct _GdkVisual
34 {
35   GObject parent_instance;
36
37   /*< private >*/
38   GdkVisualType type;
39   gint depth;
40   GdkByteOrder byte_order;
41   gint colormap_size;
42   gint bits_per_rgb;
43
44   guint32 red_mask;
45   gint red_shift;
46   gint red_prec;
47
48   guint32 green_mask;
49   gint green_shift;
50   gint green_prec;
51
52   guint32 blue_mask;
53   gint blue_shift;
54   gint blue_prec;
55
56   GdkScreen *screen;
57 };
58
59 struct _GdkVisualClass
60 {
61   GObjectClass parent_class;
62 };
63
64 G_END_DECLS
65
66 #endif