OpenClonk
fileicon.h
Go to the documentation of this file.
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_ {
32 
35 
36 struct MapeFileIcon_ {
38  GdkPixbuf* pixbuf;
39 };
40 
43 };
44 
45 MapeFileIconSet* mape_file_icon_set_new(GtkWidget* widget);
47 
50 
51 GdkPixbuf* mape_file_icon_get(MapeFileIcon* icon);
52 
53 #endif /* INC_MAPE_FILEICON_H */
MapeFileIconType_
Definition: fileicon.h:24
@ MAPE_FILE_ICON_FOLDER
Definition: fileicon.h:26
@ MAPE_FILE_ICON_C4GROUP
Definition: fileicon.h:27
@ MAPE_FILE_ICON_C4OBJECT
Definition: fileicon.h:29
@ MAPE_FILE_ICON_C4SCENARIO
Definition: fileicon.h:28
@ MAPE_FILE_ICON_COUNT
Definition: fileicon.h:33
@ MAPE_FILE_ICON_C4MATERIAL
Definition: fileicon.h:31
@ MAPE_FILE_ICON_C4FOLDER
Definition: fileicon.h:30
@ MAPE_FILE_ICON_DRIVE
Definition: fileicon.h:25
MapeFileIcon * mape_file_icon_set_lookup(MapeFileIconSet *set, MapeFileIconType type)
Definition: fileicon.c:129
enum MapeFileIconType_ MapeFileIconType
GdkPixbuf * mape_file_icon_get(MapeFileIcon *icon)
Definition: fileicon.c:137
MapeFileIcon * icons[MAPE_FILE_ICON_COUNT]
Definition: fileicon.h:42
MapeFileIconType type
Definition: fileicon.h:37
GdkPixbuf * pixbuf
Definition: fileicon.h:38
void mape_file_icon_set_destroy(MapeFileIconSet *set)
Definition: fileicon.c:122
MapeFileIconSet * mape_file_icon_set_new(GtkWidget *widget)
Definition: fileicon.c:109