r339: The menu key bindings are now only saved if they actually changed.
[rox-filer.git] / ROX-Filer / src / pixmaps.h
blob2e66ead2be7df2c33378b0c9057b1e1cff30962a
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _PIXMAP_H
9 #define _PIXMAP_H
11 #include <gtk/gtk.h>
12 #include "fscache.h"
14 extern GFSCache *pixmap_cache;
16 extern MaskedPixmap *im_error;
17 extern MaskedPixmap *im_unknown;
18 extern MaskedPixmap *im_symlink;
20 extern MaskedPixmap *im_unmounted;
21 extern MaskedPixmap *im_mounted;
22 extern MaskedPixmap *im_multiple;
23 extern MaskedPixmap *im_exec_file;
24 extern MaskedPixmap *im_appdir;
26 extern MaskedPixmap *im_up_icon;
27 extern MaskedPixmap *im_home_icon;
28 extern MaskedPixmap *im_refresh_icon;
29 extern MaskedPixmap *im_help;
31 #ifdef HAVE_IMLIB
32 # ifdef PIXMAPS_C
33 # define IMLIB_T GdkImlibImage
34 # else
35 # define IMLIB_T gpointer
36 # endif
37 #endif
39 struct _MaskedPixmap
41 int ref;
42 #ifdef HAVE_IMLIB
43 IMLIB_T *image;
44 #endif
45 GdkPixmap *pixmap; /* Full size image */
46 GdkBitmap *mask;
47 int width;
48 int height;
50 /* If sm_pixmap is NULL then call pixmap_make_small() */
51 GdkPixmap *sm_pixmap; /* Half-size (hopefully!) image */
52 GdkBitmap *sm_mask;
53 int sm_width;
54 int sm_height;
57 void pixmaps_init(void);
58 void pixmap_ref(MaskedPixmap *mp);
59 void pixmap_unref(MaskedPixmap *mp);
60 void pixmap_make_small(MaskedPixmap *mp);
62 #endif /* _PIXMAP_H */