1 | /* gtkiconcache.h |
2 | * Copyright (C) 2004 Anders Carlsson <andersca@gnome.org> |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Library General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Library General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Library General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | #ifndef __GTK_ICON_CACHE_PRIVATE_H__ |
18 | #define __GTK_ICON_CACHE_PRIVATE_H__ |
19 | |
20 | #include <gdk-pixbuf/gdk-pixbuf.h> |
21 | #include <gtk/gtkiconthemeprivate.h> |
22 | |
23 | G_BEGIN_DECLS |
24 | |
25 | /* These are (mostly, see below) the on disk flags for each icon file, don't change */ |
26 | typedef enum |
27 | { |
28 | ICON_CACHE_FLAG_NONE = 0, |
29 | ICON_CACHE_FLAG_XPM_SUFFIX = 1 << 0, |
30 | ICON_CACHE_FLAG_SVG_SUFFIX = 1 << 1, |
31 | ICON_CACHE_FLAG_PNG_SUFFIX = 1 << 2, |
32 | ICON_CACHE_FLAG_HAS_ICON_FILE = 1 << 3, |
33 | |
34 | /* This is a virtual flag we recreate in memory as the file format actually stores .symbolic.png as png */ |
35 | ICON_CACHE_FLAG_SYMBOLIC_PNG_SUFFIX = 1 << 4, |
36 | } IconCacheFlag; |
37 | |
38 | |
39 | typedef struct _GtkIconCache GtkIconCache; |
40 | |
41 | GtkIconCache *gtk_icon_cache_new (const char *data); |
42 | GtkIconCache *gtk_icon_cache_new_for_path (const char *path); |
43 | GHashTable *gtk_icon_cache_list_icons_in_directory (GtkIconCache *cache, |
44 | const char *directory, |
45 | GtkStringSet *set); |
46 | GtkIconCache *gtk_icon_cache_ref (GtkIconCache *cache); |
47 | void gtk_icon_cache_unref (GtkIconCache *cache); |
48 | |
49 | G_END_DECLS |
50 | |
51 | #endif /* __GTK_ICON_CACHE_PRIVATE_H__ */ |
52 | |