2
* Copyright (C) 2005 Richard Stellingwerff.
3
* Copyright (C) 2006 Benjamin Berg
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.
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.
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.
20
* Written by Owen Taylor <otaylor@redhat.com>
21
* and by Alexander Larsson <alexl@redhat.com>
22
* Modified by Richard Stellingwerff <remenic@gmail.com>
24
#include <gtk/gtkstyle.h>
26
#ifndef CLEARLOOKS_STYLE_H
27
#define CLEARLOOKS_STYLE_H
29
#include "animation.h"
30
#include "clearlooks_types.h"
32
typedef struct _ClearlooksStyle ClearlooksStyle;
33
typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
35
GE_INTERNAL extern GType clearlooks_type_style;
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))
44
struct _ClearlooksStyle
46
GtkStyle parent_instance;
48
ClearlooksColors colors;
50
ClearlooksStyles style;
54
GdkColor scrollbar_color;
55
gboolean colorize_scrollbar;
56
gboolean has_scrollbar_color;
61
struct _ClearlooksStyleClass
63
GtkStyleClass parent_class;
65
ClearlooksStyleFunctions style_functions[CL_NUM_STYLES];
68
GE_INTERNAL void clearlooks_style_register_type (GTypeModule *module);
70
#endif /* CLEARLOOKS_STYLE_H */