]> Pileus Git - lackey/blob - src/screen.h
bce2383b4c09347f8742d9126eeea3c5ddfcc75b
[lackey] / src / screen.h
1 /*
2  * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
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 3 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, see <http://www.gnu.org/licenses/>.
16  */
17
18 /* Configuration */
19 #define COLOR_TITLE 1
20 #define COLOR_ERROR 2
21
22 /* Screen functions */
23 void screen_init(void);
24 void screen_resize(void);
25 void screen_draw(void);
26 int  screen_run(int key, mmask_t btn, int row, int col);
27
28 /* View init functions */
29 void day_init(WINDOW *win);
30 void week_init(WINDOW *win);
31 void month_init(WINDOW *win);
32 void year_init(WINDOW *win);
33 void todo_init(WINDOW *win);
34 void notes_init(WINDOW *win);
35 void settings_init(WINDOW *win);
36 void help_init(WINDOW *win);
37
38 /* View draw functions */
39 void day_draw(void);
40 void week_draw(void);
41 void month_draw(void);
42 void year_draw(void);
43 void todo_draw(void);
44 void notes_draw(void);
45 void settings_draw(void);
46 void help_draw(void);
47
48 /* View run functions */
49 int day_run(int,mmask_t,int,int);
50 int week_run(int,mmask_t,int,int);
51 int month_run(int,mmask_t,int,int);
52 int year_run(int,mmask_t,int,int);
53 int todo_run(int,mmask_t,int,int);
54 int notes_run(int,mmask_t,int,int);
55 int settings_run(int,mmask_t,int,int);
56 int help_run(int,mmask_t,int,int);