Code

colors: color id is the index of the "colors" array
[ncmpc.git] / src / colors.h
1 #ifndef COLORS_H
2 #define COLORS_H
4 #include <ncurses.h>
6 enum color {
7         COLOR_TITLE = 1,
8         COLOR_TITLE_BOLD,
9         COLOR_LINE,
10         COLOR_LINE_BOLD,
11         COLOR_LIST,
12         COLOR_LIST_BOLD,
13         COLOR_PROGRESSBAR,
14         COLOR_STATUS,
15         COLOR_STATUS_BOLD,
16         COLOR_STATUS_TIME,
17         COLOR_STATUS_ALERT,
18         COLOR_END
19 };
21 short colors_str2color(const char *str);
23 int colors_assign(const char *name, const char *value);
24 int colors_define(const char *name, short r, short g, short b);
25 int colors_start(void);
26 int colors_use(WINDOW *w, enum color id);
28 #endif /* COLORS_H */