From 567b98381670eb96264fb8ae3621595ebfba1c5b Mon Sep 17 00:00:00 2001 From: foswret Date: Tue, 5 May 2026 10:59:05 -0500 Subject: add color.h, create draw_image() --- src/draw.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/draw.h') diff --git a/src/draw.h b/src/draw.h index b11cdea..223dbbb 100644 --- a/src/draw.h +++ b/src/draw.h @@ -27,6 +27,8 @@ struct month_info { struct RGB hex_to_rgb(char *str); +int set_color(cairo_t *c, char *hex); + 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); @@ -44,3 +46,6 @@ 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(struct month_info *m, struct dimensions *d); + +int draw_image(cairo_t *c, char *path, double x, double y); + -- cgit v1.2.3