From 2e0f09d78f28c576d9a10dfcd1eeaae81e3baa07 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 13 Oct 2011 23:31:15 +0200 Subject: Add image handling basics --- src/objects.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/objects.h') diff --git a/src/objects.h b/src/objects.h index 3789261..09d1d29 100644 --- a/src/objects.h +++ b/src/objects.h @@ -56,10 +56,22 @@ struct object void (*delete_object)(struct object *o); }; -extern struct object *add_image_object(struct slide *s, double x, double y, - const char *filename, - double width, double height); +struct image_store; + +struct image +{ + char *filename; + GdkPixbuf *pb; + int width; + int height; + + int refcount; +}; + + +extern struct image *get_image(struct image_store *is, char *filename); +extern struct image_store *image_store_new(void); extern void notify_style_update(struct presentation *p, struct style *sty); -- cgit v1.2.3