Code

colors: colors_update_pair(), colors_start() and colors_use() return void
[ncmpc.git] / src / colors.h
1 /* ncmpc (Ncurses MPD Client)
2  * (c) 2004-2017 The Music Player Daemon Project
3  * Project homepage: http://musicpd.org
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
20 #ifndef COLORS_H
21 #define COLORS_H
23 #include "config.h"
24 #include "ncmpc_curses.h"
25 #include "Compiler.h"
27 enum color {
28         COLOR_TITLE = 1,
29         COLOR_TITLE_BOLD,
30         COLOR_LINE,
31         COLOR_LINE_BOLD,
32         COLOR_LINE_FLAGS,
33         COLOR_LIST,
34         COLOR_LIST_BOLD,
35         COLOR_PROGRESSBAR,
36         COLOR_STATUS,
37         COLOR_STATUS_BOLD,
38         COLOR_STATUS_TIME,
39         COLOR_STATUS_ALERT,
40         COLOR_DIRECTORY,
41         COLOR_PLAYLIST,
42         COLOR_BACKGROUND,
43         COLOR_END
44 };
46 gcc_pure
47 int colors_str2color(const char *str);
49 #ifdef ENABLE_COLORS
50 int colors_assign(const char *name, const char *value);
51 int colors_define(const char *name, short r, short g, short b);
53 void
54 colors_start(void);
55 #endif
57 void
58 colors_use(WINDOW *w, enum color id);
60 #endif /* COLORS_H */