]> Dogcows Code - chaz/openbox/blob - render/theme.h
more namespacing to Rr*
[chaz/openbox] / render / theme.h
1 #ifndef __theme_h
2 #define __theme_h
3
4 #include "render.h"
5 #include "color.h"
6 #include "mask.h"
7
8 typedef struct _RrTheme RrTheme;
9
10 struct _RrTheme {
11 gchar *name;
12
13 const RrInstance *inst;
14
15 /* style settings - geometry */
16 gint bevel;
17 gint handle_height;
18 gint bwidth;
19 gint cbwidth;
20 gint label_height;
21 gint title_height;
22 gint button_size;
23 gint grip_width;
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_focused_color;
32 RrColor *titlebut_unfocused_color;
33 RrColor *menu_title_color;
34 RrColor *menu_color;
35 RrColor *menu_disabled_color;
36 RrColor *menu_hilite_color;
37
38 /* style settings - fonts */
39 gint winfont_height;
40 RrFont *winfont;
41 gboolean winfont_shadow;
42 gint winfont_shadow_offset;
43 gint winfont_shadow_tint;
44 gint mtitlefont_height;
45 RrFont *mtitlefont;
46 gboolean mtitlefont_shadow;
47 gint mtitlefont_shadow_offset;
48 gint mtitlefont_shadow_tint;
49 gint mfont_height;
50 RrFont *mfont;
51 gboolean mfont_shadow;
52 gint mfont_shadow_offset;
53 gint mfont_shadow_tint;
54
55 /* style settings - title layout */
56 gchar *title_layout;
57
58 /* style settings - masks */
59 RrPixmapMask *max_set_mask;
60 RrPixmapMask *max_unset_mask;
61 RrPixmapMask *iconify_mask;
62 RrPixmapMask *desk_set_mask;
63 RrPixmapMask *desk_unset_mask;
64 RrPixmapMask *shade_set_mask;
65 RrPixmapMask *shade_unset_mask;
66 RrPixmapMask *close_mask;
67
68 /* global appearances */
69 RrAppearance *a_focused_unpressed_max;
70 RrAppearance *a_focused_pressed_max;
71 RrAppearance *a_focused_pressed_set_max;
72 RrAppearance *a_unfocused_unpressed_max;
73 RrAppearance *a_unfocused_pressed_max;
74 RrAppearance *a_unfocused_pressed_set_max;
75 RrAppearance *a_focused_unpressed_close;
76 RrAppearance *a_focused_pressed_close;
77 RrAppearance *a_unfocused_unpressed_close;
78 RrAppearance *a_unfocused_pressed_close;
79 RrAppearance *a_focused_unpressed_desk;
80 RrAppearance *a_focused_pressed_desk;
81 RrAppearance *a_focused_pressed_set_desk;
82 RrAppearance *a_unfocused_unpressed_desk;
83 RrAppearance *a_unfocused_pressed_desk;
84 RrAppearance *a_unfocused_pressed_set_desk;
85 RrAppearance *a_focused_unpressed_shade;
86 RrAppearance *a_focused_pressed_shade;
87 RrAppearance *a_focused_pressed_set_shade;
88 RrAppearance *a_unfocused_unpressed_shade;
89 RrAppearance *a_unfocused_pressed_shade;
90 RrAppearance *a_unfocused_pressed_set_shade;
91 RrAppearance *a_focused_unpressed_iconify;
92 RrAppearance *a_focused_pressed_iconify;
93 RrAppearance *a_unfocused_unpressed_iconify;
94 RrAppearance *a_unfocused_pressed_iconify;
95 RrAppearance *a_focused_grip;
96 RrAppearance *a_unfocused_grip;
97 RrAppearance *a_focused_title;
98 RrAppearance *a_unfocused_title;
99 RrAppearance *a_focused_label;
100 RrAppearance *a_unfocused_label;
101 /* always parentrelative, so no focused/unfocused */
102 RrAppearance *a_icon;
103 RrAppearance *a_focused_handle;
104 RrAppearance *a_unfocused_handle;
105 RrAppearance *a_menu_title;
106 RrAppearance *a_menu;
107 RrAppearance *a_menu_item;
108 RrAppearance *a_menu_disabled;
109 RrAppearance *a_menu_hilite;
110
111 RrAppearance *app_hilite_bg;
112 RrAppearance *app_unhilite_bg;
113 RrAppearance *app_hilite_label;
114 RrAppearance *app_unhilite_label;
115 RrAppearance *app_icon;
116 };
117
118 RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);
119 void RrThemeFree(RrTheme *theme);
120
121 #endif
This page took 0.040165 seconds and 5 git commands to generate.