* fixed memory allocation bugs
[ardour.git] / libs / clearlooks / clearlooks_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  */
25  
26 #include <gtk/gtkstyle.h>
27
28 #ifndef CLEARLOOKS_STYLE_H
29 #define CLEARLOOKS_STYLE_H
30
31 #include "animation.h"
32 #include "clearlooks_types.h"
33
34 typedef struct _ClearlooksStyle ClearlooksStyle;
35 typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
36
37 #define CLEARLOOKS_TYPE_STYLE              (clearlooks_style_get_type ())
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   reliefstyle;
53         guint8   menubarstyle;
54         guint8   toolbarstyle;
55         GdkColor focus_color;
56         gboolean has_focus_color;
57         GdkColor scrollbar_color;
58         gboolean colorize_scrollbar;
59         gboolean has_scrollbar_color;
60         gboolean animation;
61         gfloat   radius;
62 };
63
64 struct _ClearlooksStyleClass
65 {
66         GtkStyleClass parent_class;
67
68         ClearlooksStyleFunctions style_functions[CL_NUM_STYLES];
69         ClearlooksStyleConstants style_constants[CL_NUM_STYLES];
70 };
71
72 GE_INTERNAL void  clearlooks_style_register_types (GTypeModule *module);
73 GE_INTERNAL GType clearlooks_style_get_type       (void);
74
75 #endif /* CLEARLOOKS_STYLE_H */