1 /* Clearlooks Theme Engine
2 * Copyright (C) 2005 Richard Stellingwerff.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 * Written by Owen Taylor <otaylor@redhat.com>
20 * and by Alexander Larsson <alexl@redhat.com>
21 * Modified by Richard Stellingwerff <remenic@gmail.com>
22 * Modified by Kulyk Nazar <schamane@myeburg.net>
25 #include <gtk/gtkrc.h>
26 #include "clearlooks_types.h"
28 typedef struct _ClearlooksRcStyle ClearlooksRcStyle
;
29 typedef struct _ClearlooksRcStyleClass ClearlooksRcStyleClass
;
31 GE_INTERNAL
extern GType clearlooks_type_rc_style
;
33 #define CLEARLOOKS_TYPE_RC_STYLE clearlooks_type_rc_style
34 #define CLEARLOOKS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyle))
35 #define CLEARLOOKS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
36 #define CLEARLOOKS_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_RC_STYLE))
37 #define CLEARLOOKS_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_RC_STYLE))
38 #define CLEARLOOKS_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
40 /* XXX: needs fixing! */
42 CL_FLAG_STYLE
= 1 << 0,
43 CL_FLAG_SCROLLBAR_COLOR
= 1 << 1,
44 CL_FLAG_COLORIZE_SCROLLBAR
= 1 << 2,
45 CL_FLAG_CONTRAST
= 1 << 3,
46 CL_FLAG_MENUBARSTYLE
= 1 << 4,
47 CL_FLAG_TOOLBARSTYLE
= 1 << 5,
48 CL_FLAG_ANIMATION
= 1 << 6,
49 CL_FLAG_RADIUS
= 1 << 7
52 struct _ClearlooksRcStyle
54 GtkRcStyle parent_instance
;
56 ClearlooksRcFlags flags
;
58 ClearlooksStyles style
;
60 GdkColor scrollbar_color
;
61 gboolean colorize_scrollbar
;
69 struct _ClearlooksRcStyleClass
71 GtkRcStyleClass parent_class
;
74 GE_INTERNAL
void clearlooks_rc_style_register_type (GTypeModule
*module
);