2.23.92
[evolution.git] / e-util / e-icon-factory.h
blobf8d1fc2fc7358ab9012707243d537bf25898174a
1 /*
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with the program; if not, see <http://www.gnu.org/licenses/>
17 * Authors:
18 * Ettore Perazzoli <ettore@ximian.com>
20 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24 #ifndef _E_ICON_FACTORY_H_
25 #define _E_ICON_FACTORY_H_
27 #include <gtk/gtk.h>
29 enum {
30 E_ICON_SIZE_MENU,
31 E_ICON_SIZE_BUTTON,
32 E_ICON_SIZE_SMALL_TOOLBAR,
33 E_ICON_SIZE_LARGE_TOOLBAR,
34 E_ICON_SIZE_DND,
35 E_ICON_SIZE_DIALOG,
36 E_ICON_NUM_SIZES
39 /* standard size for list/tree widgets (16x16) */
40 #define E_ICON_SIZE_LIST E_ICON_SIZE_MENU
42 /* standard size for status bar icons (16x16) */
43 #define E_ICON_SIZE_STATUS E_ICON_SIZE_MENU
47 void e_icon_factory_init (void);
48 void e_icon_factory_shutdown (void);
50 char *e_icon_factory_get_icon_filename (const char *icon_name, int icon_size);
52 GdkPixbuf *e_icon_factory_get_icon (const char *icon_name, int icon_size);
54 GdkPixbuf *e_icon_factory_pixbuf_scale (GdkPixbuf *pixbuf, int width, int height);
56 #endif /* _E_ICON_FACTORY_H_ */