aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-15 15:32:33 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-15 15:32:33 +0000
commit2525ec6e8b697681e8bc42d8bf1d59218585001f (patch)
tree4414fdbf5860dcad5843ade72a9c63a5394b6098 /src
parent1f523ea9dfb2b316d34d5cae7bb43d1a7be8a7a1 (diff)
downloadcalcurse-2525ec6e8b697681e8bc42d8bf1d59218585001f.tar.gz
calcurse-2525ec6e8b697681e8bc42d8bf1d59218585001f.zip
winprop_e added
wins_prop(), wins_layout(), wins_set_layout() and wins_reset() added
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wins.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/wins.h b/src/wins.h
index e391d61..2bc4ac7 100755
--- a/src/wins.h
+++ b/src/wins.h
@@ -1,4 +1,4 @@
-/* $Id: wins.h,v 1.2 2007/07/23 19:28:37 culot Exp $ */
+/* $Id: wins.h,v 1.3 2007/08/15 15:32:33 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -38,6 +38,14 @@ typedef enum {
NBWINS
} window_e;
+typedef enum {
+ WIDTH,
+ HEIGHT,
+ XPOS,
+ YPOS,
+ NBPROPS
+} winprop_e;
+
/* Window properties */
typedef struct {
unsigned w; /* width */
@@ -46,17 +54,18 @@ typedef struct {
int y; /* y position */
} window_t;
+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);
-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 *);
+int wins_prop(window_e, winprop_e);
+void wins_init(void);
+void wins_reinit(void);
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 **);
+void wins_get_config(void);
+void wins_update(void);
+void wins_reset(void);
#endif /* CALCURSE_WINS_H */