add pressed bitmaps. rename stick bitmaps to desk
[dana/openbox.git] / render / theme.h
1 #ifndef __theme_h
2 #define __theme_h
3
4 #include "render.h"
5
6 typedef struct _RrTheme RrTheme;
7
8 struct _RrTheme {
9     gchar *path;
10     gchar *name;
11
12     const RrInstance *inst;
13
14     /* style settings - geometry */
15     gint bevel;
16     gint handle_height;
17     gint bwidth;
18     gint cbwidth;
19     gint label_height;
20     gint title_height;
21     gint button_size;
22     gint grip_width;
23     gint menu_overlap;
24
25     /* style settings - colors */
26     RrColor *b_color;
27     RrColor *cb_focused_color;
28     RrColor *cb_unfocused_color;
29     RrColor *title_focused_color;
30     RrColor *title_unfocused_color;
31     RrColor *titlebut_disabled_focused_color;
32     RrColor *titlebut_disabled_unfocused_color;
33     RrColor *titlebut_hover_focused_color;
34     RrColor *titlebut_hover_unfocused_color;
35     RrColor *titlebut_toggled_focused_color;
36     RrColor *titlebut_toggled_unfocused_color;
37     RrColor *titlebut_focused_pressed_color;
38     RrColor *titlebut_unfocused_pressed_color;
39     RrColor *titlebut_focused_unpressed_color;
40     RrColor *titlebut_unfocused_unpressed_color;
41     RrColor *menu_title_color;
42     RrColor *menu_color;
43     RrColor *menu_disabled_color;
44     RrColor *menu_hilite_color;
45
46     /* style settings - fonts */
47     gint winfont_height;
48     RrFont *winfont;
49     gint mtitlefont_height;
50     RrFont *mtitlefont;
51     gint mfont_height;
52     RrFont *mfont;
53
54     /* style settings - masks */
55     RrPixmapMask *max_mask;
56     RrPixmapMask *max_toggled_mask;
57     RrPixmapMask *max_hover_mask;
58     RrPixmapMask *max_disabled_mask;
59     RrPixmapMask *max_pressed_mask;
60     RrPixmapMask *iconify_mask;
61     RrPixmapMask *iconify_hover_mask;
62     RrPixmapMask *iconify_disabled_mask;
63     RrPixmapMask *iconify_pressed_mask;
64     RrPixmapMask *desk_mask;
65     RrPixmapMask *desk_toggled_mask;
66     RrPixmapMask *desk_hover_mask;
67     RrPixmapMask *desk_disabled_mask;
68     RrPixmapMask *desk_pressed_mask;
69     RrPixmapMask *shade_mask;
70     RrPixmapMask *shade_toggled_mask;
71     RrPixmapMask *shade_hover_mask;
72     RrPixmapMask *shade_disabled_mask;
73     RrPixmapMask *shade_pressed_mask;
74     RrPixmapMask *close_mask;
75     RrPixmapMask *close_hover_mask;
76     RrPixmapMask *close_disabled_mask;
77     RrPixmapMask *close_pressed_mask;
78
79     /* global appearances */
80     RrAppearance *a_disabled_focused_max;
81     RrAppearance *a_disabled_unfocused_max;
82     RrAppearance *a_hover_focused_max;
83     RrAppearance *a_hover_unfocused_max;
84     RrAppearance *a_toggled_focused_max;
85     RrAppearance *a_toggled_unfocused_max;
86     RrAppearance *a_focused_unpressed_max;
87     RrAppearance *a_focused_pressed_max;
88     RrAppearance *a_unfocused_unpressed_max;
89     RrAppearance *a_unfocused_pressed_max;
90     RrAppearance *a_disabled_focused_close;
91     RrAppearance *a_disabled_unfocused_close;
92     RrAppearance *a_hover_focused_close;
93     RrAppearance *a_hover_unfocused_close;
94     RrAppearance *a_focused_unpressed_close;
95     RrAppearance *a_focused_pressed_close;
96     RrAppearance *a_unfocused_unpressed_close;
97     RrAppearance *a_unfocused_pressed_close;
98     RrAppearance *a_disabled_focused_desk;
99     RrAppearance *a_disabled_unfocused_desk;
100     RrAppearance *a_hover_focused_desk;
101     RrAppearance *a_hover_unfocused_desk;
102     RrAppearance *a_toggled_focused_desk;
103     RrAppearance *a_toggled_unfocused_desk;
104     RrAppearance *a_focused_unpressed_desk;
105     RrAppearance *a_focused_pressed_desk;
106     RrAppearance *a_unfocused_unpressed_desk;
107     RrAppearance *a_unfocused_pressed_desk;
108     RrAppearance *a_disabled_focused_shade;
109     RrAppearance *a_disabled_unfocused_shade;
110     RrAppearance *a_hover_focused_shade;
111     RrAppearance *a_hover_unfocused_shade;
112     RrAppearance *a_toggled_focused_shade;
113     RrAppearance *a_toggled_unfocused_shade;
114     RrAppearance *a_focused_unpressed_shade;
115     RrAppearance *a_focused_pressed_shade;
116     RrAppearance *a_unfocused_unpressed_shade;
117     RrAppearance *a_unfocused_pressed_shade;
118     RrAppearance *a_disabled_focused_iconify;
119     RrAppearance *a_disabled_unfocused_iconify;
120     RrAppearance *a_hover_focused_iconify;
121     RrAppearance *a_hover_unfocused_iconify;
122     RrAppearance *a_focused_unpressed_iconify;
123     RrAppearance *a_focused_pressed_iconify;
124     RrAppearance *a_unfocused_unpressed_iconify;
125     RrAppearance *a_unfocused_pressed_iconify;
126     RrAppearance *a_focused_grip;
127     RrAppearance *a_unfocused_grip;
128     RrAppearance *a_focused_title;
129     RrAppearance *a_unfocused_title;
130     RrAppearance *a_focused_label;
131     RrAppearance *a_unfocused_label;
132     /* always parentrelative, so no focused/unfocused */
133     RrAppearance *a_icon;
134     RrAppearance *a_focused_handle;
135     RrAppearance *a_unfocused_handle;
136     RrAppearance *a_menu_title;
137     RrAppearance *a_menu;
138     RrAppearance *a_menu_item;
139     RrAppearance *a_menu_disabled;
140     RrAppearance *a_menu_hilite;
141
142     RrAppearance *app_hilite_bg;
143     RrAppearance *app_unhilite_bg;
144     RrAppearance *app_hilite_label;
145     RrAppearance *app_unhilite_label;
146     RrAppearance *app_icon;
147 };
148
149 RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);
150 void RrThemeFree(RrTheme *theme);
151
152 #endif