1 /*
2  * nodoka_rc_style.h
3  * This file is part of gtk-nodoka-engine
4  *
5  * Copyright (C) 2007, 2008 - Martin Sourada, Daniel Geiger
6  *
7  * gtk-nodoka-engine is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * gtk-nodoka-engine is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with gtk-nodoka-engine; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA  02110-1301  USA
21  */
22 
23 #include <gtk/gtk.h>
24 
25 typedef struct _NodokaRcStyle NodokaRcStyle;
26 typedef struct _NodokaRcStyleClass NodokaRcStyleClass;
27 
28 G_GNUC_INTERNAL extern GType nodoka_type_rc_style;
29 
30 #define NODOKA_TYPE_RC_STYLE              nodoka_type_rc_style
31 #define NODOKA_RC_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), NODOKA_TYPE_RC_STYLE, NodokaRcStyle))
32 #define NODOKA_RC_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), NODOKA_TYPE_RC_STYLE, NodokaRcStyleClass))
33 #define NODOKA_IS_RC_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), NODOKA_TYPE_RC_STYLE))
34 #define NODOKA_IS_RC_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NODOKA_TYPE_RC_STYLE))
35 #define NODOKA_RC_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), NODOKA_TYPE_RC_STYLE, NodokaRcStyleClass))
36 
37 typedef enum
38 {
39 	NDK_FLAG_CONTRAST = 1 << 0,
40 	NDK_FLAG_HILIGHT_RATIO = 1 << 1,
41 	NDK_FLAG_ROUNDNESS = 1 << 2,
42 	NDK_FLAG_MENUBARSTYLE = 1 << 3,
43 	NDK_FLAG_TOOLBARSTYLE = 1 << 4,
44 	NDK_FLAG_LISTVIEWHEADERSTYLE = 1 << 5,
45 	NDK_FLAG_LISTVIEWSTYLE = 1 << 6,
46 	NDK_FLAG_SCROLLBARSTYLE = 1 << 7,
47 	NDK_FLAG_SCROLLBAR_COLOR = 1 << 8,
48 	NDK_FLAG_ANIMATION = 1 << 9,
49 	NDK_FLAG_GRADIENTS = 1 << 10,
50 	NDK_FLAG_STRIPES = 1 << 11,
51 	NDK_FLAG_BULLETCOLOR = 1 << 12,
52 	NDK_FLAG_FOCUSINNER = 1 << 13,
53 	NDK_FLAG_FOCUSFILL = 1 << 14,
54 } NodokaRcFlags;
55 
56 struct _NodokaRcStyle
57 {
58 	GtkRcStyle parent_instance;
59 
60 	NodokaRcFlags flags;
61 
62 	GdkColor scrollbar_color;
63 	gboolean has_scrollbar_color;
64 	double contrast;
65 	double hilight_ratio;
66 	guint8 menubarstyle;
67 	guint8 toolbarstyle;
68 	guint8 listviewheaderstyle;
69 	guint8 listviewstyle;
70 	guint8 scrollbarstyle;
71 	guint8 roundness;
72 	gboolean animation;
73 	gboolean gradients;
74 	gboolean stripes;
75 	GdkColor bullet_color;
76 	gboolean focus_inner;
77 	gboolean focus_fill;
78 };
79 
80 struct _NodokaRcStyleClass
81 {
82 	GtkRcStyleClass parent_class;
83 };
84 
85 G_GNUC_INTERNAL void nodoka_rc_style_register_type (GTypeModule * module);
86