~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/clearlooks-older/clearlooks_style.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Clearlooks Engine
 
2
 * Copyright (C) 2005 Richard Stellingwerff.
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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
 */
 
23
#include <gtk/gtkstyle.h>
 
24
 
 
25
#include "clearlooks_draw.h"
 
26
 
 
27
typedef struct _ClearlooksStyle ClearlooksStyle;
 
28
typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
 
29
 
 
30
extern GType clearlooks_type_style;
 
31
 
 
32
#define CLEARLOOKS_TYPE_STYLE              clearlooks_type_style
 
33
#define CLEARLOOKS_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_STYLE, ClearlooksStyle))
 
34
#define CLEARLOOKS_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
 
35
#define CLEARLOOKS_IS_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_STYLE))
 
36
#define CLEARLOOKS_IS_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_STYLE))
 
37
#define CLEARLOOKS_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
 
38
 
 
39
typedef enum
 
40
{
 
41
        CL_BORDER_UPPER = 0,
 
42
        CL_BORDER_LOWER,
 
43
        CL_BORDER_UPPER_ACTIVE,
 
44
        CL_BORDER_LOWER_ACTIVE,
 
45
        CL_BORDER_COUNT
 
46
} ClBorderColorType;
 
47
 
 
48
typedef enum
 
49
{
 
50
        CL_SCROLLBUTTON_BEGIN = 0,
 
51
        CL_SCROLLBUTTON_END,
 
52
        CL_SCROLLBUTTON_OTHER
 
53
} ClScrollButtonType;
 
54
 
 
55
struct _ClearlooksStyle
 
56
{
 
57
        GtkStyle parent_instance;
 
58
        
 
59
        GdkColor shade[9];
 
60
        
 
61
        GdkColor spot_color;
 
62
        GdkColor spot1;
 
63
        GdkColor spot2;
 
64
        GdkColor spot3;
 
65
        
 
66
        GdkColor border[CL_BORDER_COUNT];
 
67
        
 
68
        /* from light to dark */
 
69
        GdkGC *shade_gc[9];
 
70
        GdkGC *border_gc[CL_BORDER_COUNT];
 
71
        
 
72
        GdkGC *spot1_gc;
 
73
        GdkGC *spot2_gc;
 
74
        GdkGC *spot3_gc;
 
75
        
 
76
        GdkColor inset_light[5];
 
77
        GdkColor inset_dark[5];
 
78
        
 
79
        GdkColor button_g1[5];
 
80
        GdkColor button_g2[5];
 
81
        GdkColor button_g3[5];
 
82
        GdkColor button_g4[5];
 
83
        
 
84
        GdkColor listview_bg[5];
 
85
 
 
86
        GdkPixmap *radio_pixmap_nonactive[5];
 
87
        GdkPixmap *radio_pixmap_active[5];
 
88
        GdkPixmap *radio_pixmap_inconsistent[5];
 
89
        GdkBitmap *radio_pixmap_mask; /* All masks are the same */
 
90
        
 
91
        GdkPixmap *check_pixmap_nonactive[5];
 
92
        GdkPixmap *check_pixmap_active[5];
 
93
        GdkPixmap *check_pixmap_inconsistent[5];
 
94
        
 
95
        gboolean sunkenmenubar:1;
 
96
 
 
97
        guint8   progressbarstyle;
 
98
        guint8   menubarstyle;
 
99
        guint8   menuitemstyle;
 
100
        guint8   listviewitemstyle;
 
101
};
 
102
 
 
103
struct _ClearlooksStyleClass
 
104
{
 
105
  GtkStyleClass parent_class;
 
106
};
 
107
 
 
108
void clearlooks_style_register_type (GTypeModule *module);