aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorfoswret2026-05-05 10:59:05 -0500
committerfoswret2026-05-05 10:59:05 -0500
commit567b98381670eb96264fb8ae3621595ebfba1c5b (patch)
tree078b40fdabe8200f8cc471899765d45c04959918 /src/draw.h
parent8d760e61cd8db7e299938f061fd0d9425dbbd12c (diff)
add color.h, create draw_image()
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h5
1 files changed, 5 insertions, 0 deletions
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);
+