aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorfoswret2026-05-03 13:11:42 -0500
committerfoswret2026-05-03 13:11:42 -0500
commitff329ec93ddacae823704bac2d95e7a830a456b3 (patch)
tree18de0192eae0b946c763aaccabd7467d96895ee8 /src/draw.h
parent03ed4535c8489700058fb283837752035f3cf83d (diff)
draw month title, move rendering of month as far down the page as possible
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/draw.h b/src/draw.h
index 3e7c1b3..beb13fb 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -14,7 +14,7 @@ struct dimensions {
int fill_bg(cairo_t *c);
-int draw_text(cairo_t *c, double x, double y, char *text);
+int draw_text (cairo_t *c, double x, double y, char *font_family, int font_size, char *text);
int calculate_dimensions(double pw, double ph, struct dimensions *d);
@@ -25,3 +25,11 @@ int print_dimensions(struct dimensions *d);
int draw_month (cairo_t *c, cairo_t *cd, cairo_surface_t *s, struct dimensions *d, int days_in_month, int start_day);
int day_of_week (int d, int m, int y);
+
+int draw_month_title(cairo_t *c, struct dimensions *d, char *name);
+
+PangoRectangle get_logical_extents (cairo_t *c, char *font_family, int font_size, char *text);
+
+int calculate_minimum_rows(int first_day, int num_of_days, struct dimensions *d);
+
+