diff options
| author | foswret | 2026-05-22 11:52:34 -0500 |
|---|---|---|
| committer | foswret | 2026-05-22 11:52:34 -0500 |
| commit | 924ca70a4006abbffc8f43f27c4f64c8fc517a08 (patch) | |
| tree | f4926e53b915bdfa9237c7de73d5b59872e48f5e /src/draw.h | |
| parent | 04fc01ab521abf48cede1e64563fd6276e781b24 (diff) | |
draw_month_grid() doesn't use dimension struct anymore. create generate extents structs for month, paper, and day
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -34,6 +34,15 @@ month_info { }; struct +extents { + double x; + double y; + double width; + double height; +}; + + +struct RGB hex_to_rgb(char *str); int @@ -48,8 +57,11 @@ calculate_dimensions(double pw, double ph, struct dimensions *d); int print_dimensions(struct dimensions *d); +//int +//draw_month_grid(cairo_t *c, struct month_info *m, struct dimensions *d); + int -draw_month_grid(cairo_t *c, struct month_info *m, struct dimensions *d); +draw_month_grid (cairo_t *c, struct month_info *m, struct extents *me, struct extents *de); int draw_month(cairo_t *c, cairo_t *cd, cairo_surface_t *s, struct month_info *m, struct dimensions *d); @@ -64,7 +76,7 @@ PangoRectangle get_logical_extents(cairo_t *c, char *font_family, int font_size, char *text); int -calculate_minimum_rows(struct month_info *m, struct dimensions *d); +calculate_minimum_rows(struct month_info *m); int construct_day_box(cairo_t *cd, int month, int day, int week_day); |
