Update to clearlooks from gtk-engines-2.16.0
[ardour.git] / libs / clearlooks / clearlooks_rc_style.h
1 /* Clearlooks theme engine
2  * Copyright (C) 2005 Richard Stellingwerff
3  * Copyright (C) 2007 Benjamin Berg
4  * Copyright (C) 2007 Andrea Cimitan
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  * Written by Owen Taylor <otaylor@redhat.com>
22  * and by Alexander Larsson <alexl@redhat.com>
23  * Modified by Richard Stellingwerff <remenic@gmail.com>
24  * Modified by Kulyk Nazar <schamane@myeburg.net>
25  */
26
27 #include <gtk/gtkrc.h>
28 #include "clearlooks_types.h"
29
30 #ifndef CLEARLOOKS_RC_STYLE_H
31 #define CLEARLOOKS_RC_STYLE_H
32
33 typedef struct _ClearlooksRcStyle ClearlooksRcStyle;
34 typedef struct _ClearlooksRcStyleClass ClearlooksRcStyleClass;
35
36 #define CLEARLOOKS_TYPE_RC_STYLE              (clearlooks_rc_style_get_type ())
37 #define CLEARLOOKS_RC_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyle))
38 #define CLEARLOOKS_RC_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
39 #define CLEARLOOKS_IS_RC_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_RC_STYLE))
40 #define CLEARLOOKS_IS_RC_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_RC_STYLE))
41 #define CLEARLOOKS_RC_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
42
43 /* XXX: needs fixing! */
44 typedef enum {
45         CL_FLAG_STYLE              = 1 <<  0,
46         CL_FLAG_FOCUS_COLOR        = 1 <<  1,
47         CL_FLAG_SCROLLBAR_COLOR    = 1 <<  2,
48         CL_FLAG_COLORIZE_SCROLLBAR = 1 <<  3,
49         CL_FLAG_CONTRAST           = 1 <<  4,
50         CL_FLAG_RELIEFSTYLE        = 1 <<  5,
51         CL_FLAG_MENUBARSTYLE       = 1 <<  6,
52         CL_FLAG_TOOLBARSTYLE       = 1 <<  7,
53         CL_FLAG_ANIMATION          = 1 <<  8,
54         CL_FLAG_RADIUS             = 1 <<  9,
55         CL_FLAG_HINT               = 1 <<  10
56 } ClearlooksRcFlags;
57
58
59 struct _ClearlooksRcStyle
60 {
61         GtkRcStyle parent_instance;
62
63         ClearlooksRcFlags flags;
64
65         ClearlooksStyles style;
66
67         GdkColor focus_color;
68         GdkColor scrollbar_color;
69         gboolean colorize_scrollbar;
70         double contrast;
71         guint8 reliefstyle;
72         guint8 menubarstyle;
73         guint8 toolbarstyle;
74         gboolean animation;
75         double radius;
76         GQuark hint;
77 };
78
79 struct _ClearlooksRcStyleClass
80 {
81         GtkRcStyleClass parent_class;
82 };
83
84 GE_INTERNAL void  clearlooks_rc_style_register_types (GTypeModule *module);
85 GE_INTERNAL GType clearlooks_rc_style_get_type       (void);
86
87 #endif /* CLEARLOOKS_RC_STYLE_H */