aboutsummaryrefslogtreecommitdiff
path: root/src/objects.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-13 23:31:15 +0200
committerThomas White <taw@bitwiz.org.uk>2011-10-13 23:31:15 +0200
commit2e0f09d78f28c576d9a10dfcd1eeaae81e3baa07 (patch)
tree9be7b14eefb4451ac6c2a2dccce24625dc3bf7af /src/objects.h
parent7c54f36c7a5352dfd34322397ed322bb377b1abb (diff)
Add image handling basics
Diffstat (limited to 'src/objects.h')
-rw-r--r--src/objects.h18
1 files changed, 15 insertions, 3 deletions
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);