libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
colorscheme.h
1 /* Copyright (C) 2011-2012 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_WIDGET_COLORSCHEME_H
15 #define T3_WIDGET_COLORSCHEME_H
16 
17 #ifndef _T3_WIDGET_INTERNAL
18 #error This header file is for internal use _only_!!
19 #endif
20 
21 #include <t3window/window.h>
22 
23 #include <t3widget/widget_api.h>
24 #include <t3widget/util.h>
25 
26 namespace t3_widget {
27 
29 struct attributes_t {
30  /* Text related attributes. */
31  t3_attr_t non_print;
32  t3_attr_t text_selection_cursor;
33  t3_attr_t text_selection_cursor2;
34  t3_attr_t bad_draw;
35  t3_attr_t text_cursor;
36  t3_attr_t text;
37  t3_attr_t text_selected;
38  /* High-light attributes for hot keys. */
39  t3_attr_t hotkey_highlight;
40 
41  t3_attr_t dialog;
42  t3_attr_t dialog_selected;
43  t3_attr_t button_selected;
44  t3_attr_t scrollbar;
45  t3_attr_t menubar;
46  t3_attr_t menubar_selected;
47 
48  t3_attr_t shadow;
49  t3_attr_t background;
50 
51  t3_attr_t meta_text;
52 };
53 
55 T3_WIDGET_LOCAL extern attributes_t attributes;
57 T3_WIDGET_LOCAL void init_attributes(void);
58 
59 }; // namespace
60 
61 #endif