aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorfoswret2026-05-02 12:22:58 -0500
committerfoswret2026-05-02 12:22:58 -0500
commit7540a10d9a2d377191b64a29e794d4b58f320347 (patch)
tree558b064ff764546cfc0a12da07b4f9ce4d7a80a8 /src/draw.h
parente291d28cdb37534ad5b22c1eff94a9b389edd2ad (diff)
implement correct month rendering, multipage, No start of month offset
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/draw.h b/src/draw.h
index e767ef8..ed600c8 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -1,3 +1,27 @@
-int fill_bg(cairo_t *c, double w, double h);
+struct dimensions {
+ int row_count; /* rows */
+ int column_count; /* columns */
+ double paper_width; /* paper width */
+ double paper_height; /* paper height */
+ double month_width; /* month width */
+ double month_height; /* month height */
+ double month_top_corner_x;
+ double month_top_corner_y;
+ double day_width; /* day box width */
+ double day_height; /* day box height */
+ double margin; /* margin */
+};
+
+int fill_bg(cairo_t *c);
int draw_text(cairo_t *c, double x, double y, char *text);
+
+int calculate_dimensions(double pw, double ph, struct dimensions *d);
+
+int print_dimensions(struct dimensions *d);
+
+//int draw_month_grid (cairo_t *c, struct dimensions *d);
+
+int draw_month (cairo_t *c, cairo_t *cd, cairo_surface_t *s, struct dimensions *d, int days_in_month);
+
+