Misc documentation fixes
[projects/chimara/chimara.git] / libchimara / graphics.h
1 #ifndef GRAPHICS_H
2 #define GRAPHICS_H
3
4 #include <glib.h>
5 #include <gtk/gtk.h>
6
7 #include "glk.h"
8 #include "gi_blorb.h"
9 #include "resource.h"
10 #include "window.h"
11 #include "style.h"
12 #include "strio.h"
13
14 #define IMAGE_CACHE_MAX_NUM 10
15 #define IMAGE_CACHE_MAX_SIZE 5242880
16
17 struct image_info {
18         guint32 resource_number;
19         gint width, height;
20         GdkPixbuf* pixbuf;
21         gboolean scaled;
22 };
23
24 void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t win);
25 void clear_image_cache(struct image_info *data, gpointer user_data);
26
27 #endif