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_ICONVIEW_H
17 #define INC_MAPE_ICONVIEW_H
18 
19 #include <gtk/gtk.h>
20 #include "mape/forward.h"
21 
22 typedef enum MapeIconViewColumns_ {
23 	MAPE_ICON_VIEW_COLUMN_ICON,
24 	MAPE_ICON_VIEW_COLUMN_NAME,
25 
26 	MAPE_ICON_VIEW_COLUMN_COUNT
27 } MapeIconViewColumns;
28 
29 struct MapeIconView_ {
30 	GtkWidget* window;
31 	GtkWidget* view;
32 
33 	GtkTreeModel* list_store;
34 
35 	GtkCellRenderer* renderer_icon;
36 	GtkCellRenderer* renderer_name;
37 };
38 
39 MapeIconView* mape_icon_view_new(GError** error);
40 void mape_icon_view_destroy(MapeIconView* view);
41 
42 void mape_icon_view_clear(MapeIconView* view);
43 void mape_icon_view_add(MapeIconView* view,
44                         GdkPixbuf* icon,
45                         const char* name);
46 
47 #endif /* INC_MAPE_ICONVIEW_H */
48