aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-12-11 20:22:55 -0600
committerfoswret <foswret@posteo.com>2025-12-11 20:22:55 -0600
commitde77826633fc128b915e999a9adf10f088b4d3f3 (patch)
tree65cbe77d7c04cc7fc3bb84a64e6b80889675a0d8 /src/draw.h
parent0ea73247a8ba4036567a9dc28b6133d4b58507b3 (diff)
added src/, updated README.md
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);