]> git.sur5r.net Git - glabels/blob - src/pixbuf-cache.h
Imported Upstream version 3.0.0
[glabels] / src / pixbuf-cache.h
1 /*
2  *  pixbuf-cache.h
3  *  Copyright (C) 2003-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __PIXBUF_CACHE_H__
22 #define __PIXBUF_CACHE_H__
23
24 #include <glib.h>
25 #include <gdk-pixbuf/gdk-pixbuf.h>
26
27 G_BEGIN_DECLS
28
29 GHashTable *gl_pixbuf_cache_new            (void);
30
31 void        gl_pixbuf_cache_free           (GHashTable *pixbuf_cache);
32
33 void        gl_pixbuf_cache_add_pixbuf     (GHashTable *pixbuf_cache,
34                                             gchar      *name,
35                                             GdkPixbuf  *pixbuf);
36
37 GdkPixbuf  *gl_pixbuf_cache_get_pixbuf     (GHashTable *pixbuf_cache,
38                                             gchar      *name);
39
40 void        gl_pixbuf_cache_remove_pixbuf  (GHashTable *pixbuf_cache,
41                                             gchar      *name);
42
43 GList      *gl_pixbuf_cache_get_name_list  (GHashTable *pixbuf_cache);
44
45 void        gl_pixbuf_cache_free_name_list (GList      *name_list);
46
47 G_END_DECLS
48
49 #endif /*__PIXBUF_CACHE_H__ */
50
51
52
53
54 /*
55  * Local Variables:       -- emacs
56  * mode: C                -- emacs
57  * c-basic-offset: 8      -- emacs
58  * tab-width: 8           -- emacs
59  * indent-tabs-mode: nil  -- emacs
60  * End:                   -- emacs
61  */