diff options
| author | foswret | 2026-05-05 10:59:05 -0500 |
|---|---|---|
| committer | foswret | 2026-05-05 10:59:05 -0500 |
| commit | 567b98381670eb96264fb8ae3621595ebfba1c5b (patch) | |
| tree | 078b40fdabe8200f8cc471899765d45c04959918 /src/draw.h | |
| parent | 8d760e61cd8db7e299938f061fd0d9425dbbd12c (diff) | |
add color.h, create draw_image()
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); + |
