X-Git-Url: https://git.stderr.nl/gitweb?p=rodin%2Fchimara.git;a=blobdiff_plain;f=libchimara%2Fgraphics.h;h=183405ee68145654e48e9520ebe5e6e7a994708b;hp=cf81d59dd141e143b7bb87f319508fe4b0e13d37;hb=9a5c5cded0a0b0b5c6b1cb66a920de90e8ce4a0b;hpb=65f88142d8843d16c203efad8830fbebba888f0f diff --git a/libchimara/graphics.h b/libchimara/graphics.h index cf81d59..183405e 100644 --- a/libchimara/graphics.h +++ b/libchimara/graphics.h @@ -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