diff options
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); + |
