]> icculus.org git repositories - dana/openbox.git/blob - engines/concept/config.h
Implement plugin engine to draw frame (Follow Master patch)
[dana/openbox.git] / engines / concept / config.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3  frame_default_config.h for the Openbox window manager
4  Copyright (c) 2006        Mikael Magnusson
5  Copyright (c) 2003-2007   Dana Jansens
6
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  GNU General Public License for more details.
16
17  See the COPYING file for a copy of the GNU General Public License.
18  */
19 #ifndef FRAME_CONCEPT_CONFIG_H_
20 #define FRAME_CONCEPT_CONFIG_H_
21
22 #include <gdk-pixbuf/gdk-pixbuf.h>
23 #include <X11/Xresource.h>
24 #include "render/render.h"
25
26 G_BEGIN_DECLS
27
28 struct _ObFrameThemeConfig
29 {
30     const RrInstance *inst;
31
32     gint border_width;
33     RrColor * focus_border_color;
34     RrColor * focus_corner_color;
35     RrColor * unfocus_border_color;
36     RrColor * unfocus_corner_color;
37
38     GdkPixbuf * focus_top;
39     GdkPixbuf * focus_left;
40     GdkPixbuf * focus_right;
41     GdkPixbuf * focus_bottom;
42
43     GdkPixbuf * focus_topleft;
44     GdkPixbuf * focus_bottomleft;
45     GdkPixbuf * focus_topright;
46     GdkPixbuf * focus_bottomright;
47
48     GdkPixbuf * unfocus_top;
49     GdkPixbuf * unfocus_left;
50     GdkPixbuf * unfocus_right;
51     GdkPixbuf * unfocus_bottom;
52
53     GdkPixbuf * unfocus_topleft;
54     GdkPixbuf * unfocus_bottomleft;
55     GdkPixbuf * unfocus_topright;
56     GdkPixbuf * unfocus_bottomright;
57
58     Pixmap px_focus_top;
59     Pixmap px_focus_left;
60     Pixmap px_focus_right;
61     Pixmap px_focus_bottom;
62
63     Pixmap px_focus_topleft;
64     Pixmap px_focus_bottomleft;
65     Pixmap px_focus_topright;
66     Pixmap px_focus_bottomright;
67
68     Pixmap px_unfocus_top;
69     Pixmap px_unfocus_left;
70     Pixmap px_unfocus_right;
71     Pixmap px_unfocus_bottom;
72
73     Pixmap px_unfocus_topleft;
74     Pixmap px_unfocus_bottomleft;
75     Pixmap px_unfocus_topright;
76     Pixmap px_unfocus_bottomright;
77
78     gchar *name;
79 };
80
81 typedef struct _ObFrameThemeConfig ObFrameThemeConfig;
82
83 /*! The font values are all optional. If a NULL is used for any of them, then
84  the default font will be used. */
85 gint load_theme_config(const RrInstance *inst, const gchar *name,
86         const gchar * path, XrmDatabase db, RrFont *active_window_font,
87         RrFont *inactive_window_font, RrFont *menu_title_font,
88         RrFont *menu_item_font, RrFont *osd_font);
89
90 G_END_DECLS
91
92 #endif /*FRAME_CONCEPT_CONFIG_H_*/