diff options
| author | foswret | 2026-05-03 13:11:42 -0500 |
|---|---|---|
| committer | foswret | 2026-05-03 13:11:42 -0500 |
| commit | ff329ec93ddacae823704bac2d95e7a830a456b3 (patch) | |
| tree | 18de0192eae0b946c763aaccabd7467d96895ee8 /src/draw.h | |
| parent | 03ed4535c8489700058fb283837752035f3cf83d (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.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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); + + |
