2 * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
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.
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.
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/>.
27 /* Screen functions */
28 void screen_init(void);
29 void screen_resize(void);
30 void screen_draw(void);
31 int screen_run(int key, mmask_t btn, int row, int col);
33 /* View init functions */
34 void day_init(WINDOW *win);
35 void week_init(WINDOW *win);
36 void month_init(WINDOW *win);
37 void year_init(WINDOW *win);
38 void todo_init(WINDOW *win);
39 void notes_init(WINDOW *win);
40 void settings_init(WINDOW *win);
41 void help_init(WINDOW *win);
43 /* View size functions */
44 void day_size(int,int);
45 void week_size(int,int);
46 void month_size(int,int);
47 void year_size(int,int);
48 void todo_size(int,int);
49 void notes_size(int,int);
50 void settings_size(int,int);
51 void help_size(int,int);
53 /* View draw functions */
56 void month_draw(void);
59 void notes_draw(void);
60 void settings_draw(void);
63 /* View run functions */
64 int day_run(int,mmask_t,int,int);
65 int week_run(int,mmask_t,int,int);
66 int month_run(int,mmask_t,int,int);
67 int year_run(int,mmask_t,int,int);
68 int todo_run(int,mmask_t,int,int);
69 int notes_run(int,mmask_t,int,int);
70 int settings_run(int,mmask_t,int,int);
71 int help_run(int,mmask_t,int,int);