r232: Added 'prune' and 'system' find commands.
[rox-filer.git] / ROX-Filer / src / pixmaps.h
blobe6a7a8d73293e2cfed8447092bca006b5506d450
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #ifndef _PIXMAP_H
9 #define _PIXMAP_H
11 #include <gtk/gtk.h>
12 #include "fscache.h"
14 extern GFSCache *pixmap_cache;
16 enum
18 /* Base types */
19 TYPE_ERROR,
20 TYPE_UNKNOWN,
21 TYPE_SYMLINK,
22 TYPE_FILE,
23 TYPE_DIRECTORY,
24 TYPE_CHAR_DEVICE,
25 TYPE_BLOCK_DEVICE,
26 TYPE_PIPE,
27 TYPE_SOCKET,
29 /* Extended types */
30 TYPE_UNMOUNTED,
31 TYPE_MOUNTED,
32 TYPE_EXEC_FILE,
33 TYPE_MULTIPLE,
34 TYPE_APPDIR,
36 /* Toolbar */
37 TOOLBAR_UP_ICON,
38 TOOLBAR_HOME_ICON,
39 TOOLBAR_REFRESH_ICON,
41 /* End of list */
42 LAST_DEFAULT_PIXMAP
46 typedef struct _MaskedPixmap MaskedPixmap;
48 struct _MaskedPixmap
50 GdkPixmap *pixmap;
51 GdkBitmap *mask;
52 int ref;
53 int width;
54 int height;
58 extern MaskedPixmap default_pixmap[LAST_DEFAULT_PIXMAP];
61 void pixmaps_init(void);
62 void load_pixmap(char *name, MaskedPixmap *image);
63 void pixmap_ref(MaskedPixmap *mp);
64 void pixmap_unref(MaskedPixmap *mp);
66 #endif /* _PIXMAP_H */