use ActionManager namespace, rather than ActionMap objects
[ardour.git] / libs / clearlooks-newer / clearlooks_style.h
1 /* Clearlooks Engine
2  * Copyright (C) 2005 Richard Stellingwerff.
3  * Copyright (C) 2006 Benjamin Berg
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Written by Owen Taylor <otaylor@redhat.com>
21  * and by Alexander Larsson <alexl@redhat.com>
22  * Modified by Richard Stellingwerff <remenic@gmail.com>
23  */
24 #include <gtk/gtkstyle.h>
25
26 #ifndef CLEARLOOKS_STYLE_H
27 #define CLEARLOOKS_STYLE_H
28
29 #include "animation.h"
30 #include "clearlooks_types.h"
31
32 typedef struct _ClearlooksStyle ClearlooksStyle;
33 typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
34
35 GE_INTERNAL extern GType clearlooks_type_style;
36
37 #define CLEARLOOKS_TYPE_STYLE              clearlooks_type_style
38 #define CLEARLOOKS_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_STYLE, ClearlooksStyle))
39 #define CLEARLOOKS_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
40 #define CLEARLOOKS_IS_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_STYLE))
41 #define CLEARLOOKS_IS_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_STYLE))
42 #define CLEARLOOKS_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
43
44 struct _ClearlooksStyle
45 {
46         GtkStyle parent_instance;
47
48         ClearlooksColors colors;
49
50         ClearlooksStyles style;
51
52         guint8   menubarstyle;
53         guint8   toolbarstyle;
54         GdkColor scrollbar_color;
55         gboolean colorize_scrollbar;
56         gboolean has_scrollbar_color;
57         gboolean animation;
58         gfloat   radius;
59 };
60
61 struct _ClearlooksStyleClass
62 {
63         GtkStyleClass parent_class;
64
65         ClearlooksStyleFunctions style_functions[CL_NUM_STYLES];
66 };
67
68 GE_INTERNAL void clearlooks_style_register_type (GTypeModule *module);
69
70 #endif /* CLEARLOOKS_STYLE_H */