summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-20 19:09:07 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-20 19:09:07 +0000
commit17160a9b08acc04cac3abc7a85fdaf581221faf3 (patch)
tree9440ce54e837f105dc602d8b74f2710e02dcdba0
parent37495a75e80a04c78c5d7421b1c3a6d6330a2d34 (diff)
downloadcalcurse-17160a9b08acc04cac3abc7a85fdaf581221faf3.zip
window_t type and window_e enum added
-rwxr-xr-xsrc/vars.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/vars.h b/src/vars.h
index d69c082..6b19f7e 100755
--- a/src/vars.h
+++ b/src/vars.h
@@ -1,4 +1,4 @@
-/* $calcurse: vars.h,v 1.11 2007/07/01 17:42:47 culot Exp $ */
+/* $calcurse: vars.h,v 1.12 2007/07/20 19:09:07 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -51,6 +51,15 @@
#define HOURINSEC 3600
#define MININSEC 60
+enum window_e {
+ CALENDAR,
+ APPOINTMENT,
+ TODO,
+ NOTIFY,
+ STATUS,
+ NBWINS
+};
+
struct pad_s {
int width;
int length;
@@ -79,6 +88,14 @@ typedef struct {
int layout;
} conf_t;
+/* Window properties */
+typedef struct {
+ unsigned w; /* width */
+ unsigned h; /* height */
+ int x; /* x position */
+ int y; /* y position */
+} window_t;
+
extern int col, row;
extern bool colorize;
extern int days[12];