aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/draw.h b/src/draw.h
new file mode 100644
index 0000000..7c473a7
--- /dev/null
+++ b/src/draw.h
@@ -0,0 +1,24 @@
+struct dimensions {
+ double pw; /* paper width */
+ double ph; /* paper height */
+ double mw; /* month width */
+ double mh; /* month height */
+ double bw; /* day box width */
+ double bh; /* day box height */
+ double r; /* rows */
+ double c; /* columns */
+ double m; /* margin */
+};
+
+
+
+int draw_calendar(cairo_t *c, double x, double y, struct dimensions d);
+
+
+
+
+int draw_numbers(cairo_t *c, double x, double y, struct dimensions d, int wd, int nd);
+
+
+
+int draw_month_name(cairo_t *c, char *name, struct dimensions d);