Start of image cache implementation... breaks image functionality.
[rodin/chimara.git] / libchimara / graphics.h
index cf81d59dd141e143b7bb87f319508fe4b0e13d37..183405ee68145654e48e9520ebe5e6e7a994708b 100644 (file)
@@ -9,11 +9,17 @@
 #include "resource.h"
 #include "window.h"
 
+#define IMAGE_CACHE_MAX_NUM 10
+#define IMAGE_CACHE_MAX_SIZE 5242880
+
 struct image_info {
        guint32 resource_number;
        gint width, height;
+       GdkPixbuf* pixbuf;
+       gboolean scaled;
 };
 
-void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t *win);
+void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t win);
+void clear_image_cache(struct image_info *data, gpointer user_data);
 
 #endif