1 /* 2 * mape - C4 Landscape.txt editor 3 * 4 * Copyright (c) 2005-2009, Armin Burgmeier 5 * 6 * Distributed under the terms of the ISC license; see accompanying file 7 * "COPYING" for details. 8 * 9 * "Clonk" is a registered trademark of Matthes Bender, used with permission. 10 * See accompanying file "TRADEMARK" for details. 11 * 12 * To redistribute this file separately, substitute the full license texts 13 * for the above references. 14 */ 15 16 #ifndef INC_MAPE_FILEICON_H 17 #define INC_MAPE_FILEICON_H 18 19 #include <gdk-pixbuf/gdk-pixbuf.h> 20 #include <gtk/gtk.h> 21 22 #include "mape/forward.h" 23 24 typedef enum MapeFileIconType_ { 25 MAPE_FILE_ICON_DRIVE, 26 MAPE_FILE_ICON_FOLDER, 27 MAPE_FILE_ICON_C4GROUP, 28 MAPE_FILE_ICON_C4SCENARIO, 29 MAPE_FILE_ICON_C4OBJECT, 30 MAPE_FILE_ICON_C4FOLDER, 31 MAPE_FILE_ICON_C4MATERIAL, 32 33 MAPE_FILE_ICON_COUNT 34 } MapeFileIconType; 35 36 struct MapeFileIcon_ { 37 MapeFileIconType type; 38 GdkPixbuf* pixbuf; 39 }; 40 41 struct MapeFileIconSet_ { 42 MapeFileIcon* icons[MAPE_FILE_ICON_COUNT]; 43 }; 44 45 MapeFileIconSet* mape_file_icon_set_new(GtkWidget* widget); 46 void mape_file_icon_set_destroy(MapeFileIconSet* set); 47 48 MapeFileIcon* mape_file_icon_set_lookup(MapeFileIconSet* set, 49 MapeFileIconType type); 50 51 GdkPixbuf* mape_file_icon_get(MapeFileIcon* icon); 52 53 #endif /* INC_MAPE_FILEICON_H */ 54