made all the gradients work with integer math. removed the pipecross and rectangle...
[mikachu/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 *name;
10
11     const RrInstance *inst;
12
13     /* style settings - geometry */
14     gint bevel;
15     gint handle_height;
16     gint bwidth;
17     gint cbwidth;
18     gint label_height;
19     gint title_height;
20     gint button_size;
21     gint grip_width;
22
23     /* style settings - colors */
24     RrColor *b_color;
25     RrColor *cb_focused_color;
26     RrColor *cb_unfocused_color;
27     RrColor *title_focused_color;
28     RrColor *title_unfocused_color;
29     RrColor *titlebut_focused_color;
30     RrColor *titlebut_unfocused_color;
31     RrColor *menu_title_color;
32     RrColor *menu_color;
33     RrColor *menu_disabled_color;
34     RrColor *menu_hilite_color;
35
36     /* style settings - fonts */
37     gint winfont_height;
38     RrFont *winfont;
39     gboolean winfont_shadow;
40     gint winfont_shadow_offset;
41     gint winfont_shadow_tint;
42     gint mtitlefont_height;
43     RrFont *mtitlefont;
44     gboolean mtitlefont_shadow;
45     gint mtitlefont_shadow_offset;
46     gint mtitlefont_shadow_tint;
47     gint mfont_height;
48     RrFont *mfont;
49     gboolean mfont_shadow;
50     gint mfont_shadow_offset;
51     gint mfont_shadow_tint;
52
53     /* style settings - title layout */
54     gchar *title_layout;
55
56     /* style settings - masks */
57     RrPixmapMask *max_set_mask;
58     RrPixmapMask *max_unset_mask;
59     RrPixmapMask *iconify_mask;
60     RrPixmapMask *desk_set_mask;
61     RrPixmapMask *desk_unset_mask;
62     RrPixmapMask *shade_set_mask;
63     RrPixmapMask *shade_unset_mask;
64     RrPixmapMask *close_mask;
65
66     /* global appearances */
67     RrAppearance *a_focused_unpressed_max;
68     RrAppearance *a_focused_pressed_max;
69     RrAppearance *a_focused_pressed_set_max;
70     RrAppearance *a_unfocused_unpressed_max;
71     RrAppearance *a_unfocused_pressed_max;
72     RrAppearance *a_unfocused_pressed_set_max;
73     RrAppearance *a_focused_unpressed_close;
74     RrAppearance *a_focused_pressed_close;
75     RrAppearance *a_unfocused_unpressed_close;
76     RrAppearance *a_unfocused_pressed_close;
77     RrAppearance *a_focused_unpressed_desk;
78     RrAppearance *a_focused_pressed_desk;
79     RrAppearance *a_focused_pressed_set_desk;
80     RrAppearance *a_unfocused_unpressed_desk;
81     RrAppearance *a_unfocused_pressed_desk;
82     RrAppearance *a_unfocused_pressed_set_desk;
83     RrAppearance *a_focused_unpressed_shade;
84     RrAppearance *a_focused_pressed_shade;
85     RrAppearance *a_focused_pressed_set_shade;
86     RrAppearance *a_unfocused_unpressed_shade;
87     RrAppearance *a_unfocused_pressed_shade;
88     RrAppearance *a_unfocused_pressed_set_shade;
89     RrAppearance *a_focused_unpressed_iconify;
90     RrAppearance *a_focused_pressed_iconify;
91     RrAppearance *a_unfocused_unpressed_iconify;
92     RrAppearance *a_unfocused_pressed_iconify;
93     RrAppearance *a_focused_grip;
94     RrAppearance *a_unfocused_grip;
95     RrAppearance *a_focused_title;
96     RrAppearance *a_unfocused_title;
97     RrAppearance *a_focused_label;
98     RrAppearance *a_unfocused_label;
99     /* always parentrelative, so no focused/unfocused */
100     RrAppearance *a_icon;
101     RrAppearance *a_focused_handle;
102     RrAppearance *a_unfocused_handle;
103     RrAppearance *a_menu_title;
104     RrAppearance *a_menu;
105     RrAppearance *a_menu_item;
106     RrAppearance *a_menu_disabled;
107     RrAppearance *a_menu_hilite;
108
109     RrAppearance *app_hilite_bg;
110     RrAppearance *app_unhilite_bg;
111     RrAppearance *app_hilite_label;
112     RrAppearance *app_unhilite_label;
113     RrAppearance *app_icon;
114 };
115
116 RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);
117 void RrThemeFree(RrTheme *theme);
118
119 #endif