1 #ifndef COLOURSCHEME_H
2 #define COLOURSCHEME_H
3 /*
4     roxterm - VTE/GTK terminal emulator with tabs
5     Copyright (C) 2004-2015 Tony Houghton <h@realh.co.uk>
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     You should have received a copy of the GNU General Public License
18     along with this program; if not, write to the Free Software
19     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 */
21 
22 
23 /* Colours are represented by strings as understood by gdk_color/rgba_parse */
24 
25 #include "options.h"
26 
27 Options *colour_scheme_lookup_and_ref(const char *scheme);
28 
29 gboolean colour_scheme_unref(Options * opts);
30 
31 int colour_scheme_get_palette_size(Options * opts);
32 
33 /* A palette always has 16 valid entries even if logical palette size is
34  * smaller */
35 GdkRGBA *colour_scheme_get_palette(Options * opts);
36 
37 /* If allow_null is FALSE a default colour is used */
38 GdkRGBA *colour_scheme_get_cursor_colour(Options * opts,
39         gboolean allow_null);
40 
41 GdkRGBA *colour_scheme_get_cursorfg_colour(Options * opts,
42         gboolean allow_null);
43 
44 GdkRGBA *colour_scheme_get_bold_colour(Options * opts,
45         gboolean allow_null);
46 
47 GdkRGBA *colour_scheme_get_foreground_colour(Options * opts,
48         gboolean allow_null);
49 
50 GdkRGBA *colour_scheme_get_background_colour(Options * opts,
51         gboolean allow_null);
52 
53 void colour_scheme_set_palette_size(Options * opts, int size);
54 
55 void colour_scheme_set_palette_entry(Options * opts, int index,
56 		const char *colour_name);
57 
58 void colour_scheme_set_cursor_colour(Options * opts, const char *colour_name);
59 
60 void
61 colour_scheme_set_cursorfg_colour(Options * opts, const char *colour_name);
62 
63 void colour_scheme_set_bold_colour(Options * opts, const char *colour_name);
64 
65 void colour_scheme_set_foreground_colour(Options * opts,
66 		const char *colour_name);
67 
68 void colour_scheme_set_background_colour(Options * opts,
69 		const char *colour_name);
70 
71 void colour_scheme_reset_cached_data(Options *opts);
72 
73 #endif /* COLOURSCHEME_H */
74 
75 /* vi:set sw=4 ts=4 noet cindent cino= */
76