From 5cc85f48ab4c3054d15a972cb899ed9868432d4b Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Mon, 23 Jul 2007 19:28:37 +0000 Subject: window_e and window_t added wins_slct_init(), wins_slctd_set(), wins_slctd_next() and wins_slctd() created --- src/wins.h | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'src/wins.h') diff --git a/src/wins.h b/src/wins.h index 9315068..e391d61 100755 --- a/src/wins.h +++ b/src/wins.h @@ -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 */ -- cgit v1.2.3-54-g00ecf