ncmpc
0.29
src
colors.h
Go to the documentation of this file.
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
*/
19
20
#ifndef COLORS_H
21
#define COLORS_H
22
23
#include "config.h"
24
#include "
ncmpc_curses.h
"
25
#include "
Compiler.h
"
26
27
#include <stdbool.h>
28
29
enum
color
{
30
COLOR_TITLE
= 1,
31
COLOR_TITLE_BOLD
,
32
COLOR_LINE
,
33
COLOR_LINE_BOLD
,
34
COLOR_LINE_FLAGS
,
35
COLOR_LIST
,
36
COLOR_LIST_BOLD
,
37
COLOR_PROGRESSBAR
,
38
COLOR_STATUS
,
39
COLOR_STATUS_BOLD
,
40
COLOR_STATUS_TIME
,
41
COLOR_STATUS_ALERT
,
42
COLOR_DIRECTORY
,
43
COLOR_PLAYLIST
,
44
COLOR_BACKGROUND
,
45
COLOR_END
46
};
47
48
gcc_pure
49
int
colors_str2color
(
const
char
*str);
50
51
#ifdef ENABLE_COLORS
52
bool
53
colors_assign(
const
char
*name,
const
char
*value);
54
55
bool
56
colors_define(
const
char
*name,
short
r,
short
g,
short
b);
57
58
void
59
colors_start(
void
);
60
#endif
61
62
void
63
colors_use
(WINDOW *w,
enum
color
id
);
64
65
#endif
/* COLORS_H */
COLOR_LINE_BOLD
Definition:
colors.h:33
COLOR_DIRECTORY
Definition:
colors.h:42
COLOR_STATUS_TIME
Definition:
colors.h:40
COLOR_LINE
Definition:
colors.h:32
ncmpc_curses.h
COLOR_LIST_BOLD
Definition:
colors.h:36
color
color
Definition:
colors.h:29
COLOR_TITLE
Definition:
colors.h:30
COLOR_STATUS_BOLD
Definition:
colors.h:39
Compiler.h
COLOR_STATUS
Definition:
colors.h:38
COLOR_STATUS_ALERT
Definition:
colors.h:41
COLOR_BACKGROUND
Definition:
colors.h:44
COLOR_END
Definition:
colors.h:45
COLOR_PROGRESSBAR
Definition:
colors.h:37
colors_str2color
gcc_pure int colors_str2color(const char *str)
COLOR_PLAYLIST
Definition:
colors.h:43
COLOR_LINE_FLAGS
Definition:
colors.h:34
COLOR_TITLE_BOLD
Definition:
colors.h:31
COLOR_LIST
Definition:
colors.h:35
colors_use
void colors_use(WINDOW *w, enum color id)
gcc_pure
#define gcc_pure
Definition:
Compiler.h:100
Generated on Sun Nov 26 2017 13:31:59 for ncmpc by
1.8.13