diff options
author | Frederic Culot <calcurse@culot.org> | 2007-10-21 13:39:07 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-10-21 13:39:07 +0000 |
commit | c823b5666b631ef8c90ff5c29851267919f0eab0 (patch) | |
tree | 768f500181b298857c95178dbe99e46dfb3e1d60 | |
parent | ffd9448ac40e77fe74d7faa5b7c0f03d1dbeb5c0 (diff) | |
download | calcurse-c823b5666b631ef8c90ff5c29851267919f0eab0.tar.gz calcurse-c823b5666b631ef8c90ff5c29851267919f0eab0.zip |
window_t structure updated to store WINDOW pointer
window_e enum updated to shorten names
winprop_e and wins_prop() suppressed
-rwxr-xr-x | src/wins.h | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -1,4 +1,4 @@ -/* $Id: wins.h,v 1.3 2007/08/15 15:32:33 culot Exp $ */ +/* $Id: wins.h,v 1.4 2007/10/21 13:39:07 culot Exp $ */ /* * Calcurse - text-based organizer @@ -30,37 +30,31 @@ #include "vars.h" typedef enum { - CALENDAR, - APPOINTMENT, - TODO, - NOTIFY, - STATUS, + CAL, + APP, + TOD, + NOT, + STA, NBWINS } window_e; -typedef enum { - WIDTH, - HEIGHT, - XPOS, - YPOS, - NBPROPS -} winprop_e; - /* Window properties */ typedef struct { + WINDOW *p; /* pointer to window */ unsigned w; /* width */ unsigned h; /* height */ int x; /* x position */ int y; /* y position */ } window_t; +extern window_t win[NBWINS]; + int wins_layout(void); void wins_set_layout(int); void wins_slctd_init(void); window_e wins_slctd(void); void wins_slctd_set(window_e); void wins_slctd_next(void); -int wins_prop(window_e, winprop_e); void wins_init(void); void wins_reinit(void); void wins_show(WINDOW *, char *); |