1 /*
2 * (c) 2004-2008 The Music Player Daemon Project
3 * http://www.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 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
20 #ifndef COLORS_H
21 #define COLORS_H
23 #include "config.h"
25 #ifdef HAVE_NCURSESW_NCURSES_H
26 #include <ncursesw/ncurses.h>
27 #else
28 #include <ncurses.h>
29 #endif
31 enum color {
32 COLOR_TITLE = 1,
33 COLOR_TITLE_BOLD,
34 COLOR_LINE,
35 COLOR_LINE_BOLD,
36 COLOR_LIST,
37 COLOR_LIST_BOLD,
38 COLOR_PROGRESSBAR,
39 COLOR_STATUS,
40 COLOR_STATUS_BOLD,
41 COLOR_STATUS_TIME,
42 COLOR_STATUS_ALERT,
43 COLOR_END
44 };
46 short colors_str2color(const char *str);
48 #ifdef ENABLE_COLORS
49 int colors_assign(const char *name, const char *value);
50 int colors_define(const char *name, short r, short g, short b);
51 int colors_start(void);
52 #endif
54 int colors_use(WINDOW *w, enum color id);
56 #endif /* COLORS_H */