mp3_afh.c: Fix header_bitrate() for invalid headers
[paraslash.git] / gui.h
1 /*
2  * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
3  *
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  *
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  *
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, USA.
17  */
18
19 /** \file gui.h symbols used by gui and gui_theme */
20
21 struct stat_item_data {
22         const char *prefix, *postfix;
23         unsigned x, y, len;
24         int fg, bg, align;
25 };
26
27 struct gui_theme {
28         const char *name;
29         const char *author;
30         int sb_fg, sb_bg;
31         int cmd_fg, cmd_bg;
32         int output_fg, output_bg;
33         int msg_fg, msg_bg;
34         int err_msg_fg, err_msg_bg;
35         int welcome_fg, welcome_bg;
36         int sep_fg, sep_bg;
37         const char *sep_str;
38         int default_fg, default_bg;
39
40         int top_lines_default, top_lines_min;
41         int lines_min, cols_min;
42         struct stat_item_data data[NUM_STAT_ITEMS];
43 };
44
45 void init_theme(int i, struct gui_theme *);
46 void next_theme(struct gui_theme *);
47 void prev_theme(struct gui_theme *);
48 #define LEFT 1
49 #define RIGHT 2
50 #define CENTER 3