X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgraphics.h;h=fe39694c3591205161e38d150168d7bf0a1c395d;hb=bdca86598f7604d7c20f91ac810d825513c72090;hp=cf81d59dd141e143b7bb87f319508fe4b0e13d37;hpb=65f88142d8843d16c203efad8830fbebba888f0f;p=rodin%2Fchimara.git diff --git a/libchimara/graphics.h b/libchimara/graphics.h index cf81d59..fe39694 100644 --- a/libchimara/graphics.h +++ b/libchimara/graphics.h @@ -8,12 +8,20 @@ #include "gi_blorb.h" #include "resource.h" #include "window.h" +#include "style.h" +#include "strio.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