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>
24 * Modified by Kulyk Nazar <schamane@myeburg.net>
27 #include <gtk/gtkrc.h>
28 #include "clearlooks_types.h"
30 #ifndef CLEARLOOKS_RC_STYLE_H
31 #define CLEARLOOKS_RC_STYLE_H
33 typedef struct _ClearlooksRcStyle ClearlooksRcStyle;
34 typedef struct _ClearlooksRcStyleClass ClearlooksRcStyleClass;
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))
43 /* XXX: needs fixing! */
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
59 struct _ClearlooksRcStyle
61 GtkRcStyle parent_instance;
63 ClearlooksRcFlags flags;
65 ClearlooksStyles style;
68 GdkColor scrollbar_color;
69 gboolean colorize_scrollbar;
79 struct _ClearlooksRcStyleClass
81 GtkRcStyleClass parent_class;
84 GE_INTERNAL void clearlooks_rc_style_register_types (GTypeModule *module);
85 GE_INTERNAL GType clearlooks_rc_style_get_type (void);
87 #endif /* CLEARLOOKS_RC_STYLE_H */