]> icculus.org git repositories - dana/openbox.git/blob - engines/concept2/frame_concept2_config.h
Implement plugin engine to draw frame (Follow Master patch)
[dana/openbox.git] / engines / concept2 / frame_concept2_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_CONCEPT2_CONFIG_H_
20 #define FRAME_CONCEPT2_CONFIG_H_
21
22 #include <X11/Xresource.h>
23 #include "render/render.h"
24
25 G_BEGIN_DECLS
26
27 struct _ObFrameThemeConfig
28 {
29     const RrInstance *inst;
30
31     gint border_width;
32     gint left_width;
33     RrColor * focus_border_color;
34     RrColor * focus_corner_color;
35     RrColor * unfocus_border_color;
36     RrColor * unfocus_corner_color;
37
38     gchar *name;
39 };
40
41 typedef struct _ObFrameThemeConfig ObFrameThemeConfig;
42
43 /*! The font values are all optional. If a NULL is used for any of them, then
44  the default font will be used. */
45 gint load_theme_config(const RrInstance *inst, const gchar *name,
46         const gchar * path, XrmDatabase db, RrFont *active_window_font,
47         RrFont *inactive_window_font, RrFont *menu_title_font,
48         RrFont *menu_item_font, RrFont *osd_font);
49
50 G_END_DECLS
51
52 #endif /*FRAME_CONCEPT2_CONFIG_H_*/