diff options
author | Frederic Culot <calcurse@culot.org> | 2007-07-23 19:28:37 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-07-23 19:28:37 +0000 |
commit | 5cc85f48ab4c3054d15a972cb899ed9868432d4b (patch) | |
tree | af81d39d39dac8966b955c16e3dc89f2b57a7b40 /src/wins.h | |
parent | 6ad12276c41958e6fdc2213c79d193987f1f39bb (diff) | |
download | calcurse-5cc85f48ab4c3054d15a972cb899ed9868432d4b.tar.gz calcurse-5cc85f48ab4c3054d15a972cb899ed9868432d4b.zip |
window_e and window_t added
wins_slct_init(), wins_slctd_set(), wins_slctd_next() and
wins_slctd() created
Diffstat (limited to 'src/wins.h')
-rwxr-xr-x | src/wins.h | 39 |
1 files changed, 30 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: wins.h,v 1.1 2007/07/21 19:37:44 culot Exp $ */ +/* $Id: wins.h,v 1.2 2007/07/23 19:28:37 culot Exp $ */ /* * Calcurse - text-based organizer @@ -29,13 +29,34 @@ #include "vars.h" -void wins_init(window_t *, window_t *, window_t *, window_t *); -void wins_reinit(conf_t *conf, int, window_t *, window_t *, window_t *, - window_t *, window_t *); -void wins_show(WINDOW *, char *); -void wins_get_config(conf_t *conf, window_t *, window_t *, window_t *, - window_t *, window_t *); -void wins_update(int surrounded_window, conf_t *conf, window_t *, - window_t *, window_t *, int, int, int, int, int, char *); +typedef enum { + CALENDAR, + APPOINTMENT, + TODO, + NOTIFY, + STATUS, + NBWINS +} window_e; + +/* Window properties */ +typedef struct { + unsigned w; /* width */ + unsigned h; /* height */ + int x; /* x position */ + int y; /* y position */ +} window_t; + +void wins_slctd_init(void); +window_e wins_slctd(void); +void wins_slctd_set(window_e); +void wins_slctd_next(void); +void wins_init(window_t *, window_t *, window_t *, window_t *); +void wins_reinit(conf_t *conf, window_t *, window_t *, window_t *, + window_t *, window_t *); +void wins_show(WINDOW *, char *); +void wins_get_config(conf_t *conf, window_t *, window_t *, + window_t *, window_t *, window_t *); +void wins_update(conf_t *conf, window_t *, window_t *, window_t *, + int, int, int, int, char **); #endif /* CALCURSE_WINS_H */ |