1 /* Clearlooks theme engine
2 * Copyright (C) 2005 Richard Stellingwerff.
3 * Copyright (C) 2007 Benjamin Berg
4 * Copyright (C) 2007 Andrea Cimitan
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.
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.
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.
21 * Written by Owen Taylor <otaylor@redhat.com>
22 * and by Alexander Larsson <alexl@redhat.com>
23 * Modified by Richard Stellingwerff <remenic@gmail.com>
26 #include <gtk/gtkstyle.h>
28 #ifndef CLEARLOOKS_STYLE_H
29 #define CLEARLOOKS_STYLE_H
31 #include "animation.h"
32 #include "clearlooks_types.h"
34 typedef struct _ClearlooksStyle ClearlooksStyle;
35 typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
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))
44 struct _ClearlooksStyle
46 GtkStyle parent_instance;
48 ClearlooksColors colors;
50 ClearlooksStyles style;
56 gboolean has_focus_color;
57 GdkColor scrollbar_color;
58 gboolean colorize_scrollbar;
59 gboolean has_scrollbar_color;
64 struct _ClearlooksStyleClass
66 GtkStyleClass parent_class;
68 ClearlooksStyleFunctions style_functions[CL_NUM_STYLES];
69 ClearlooksStyleConstants style_constants[CL_NUM_STYLES];
72 GE_INTERNAL void clearlooks_style_register_types (GTypeModule *module);
73 GE_INTERNAL GType clearlooks_style_get_type (void);
75 #endif /* CLEARLOOKS_STYLE_H */