|
Packit |
98cdb6 |
/* gtkiconcache.h
|
|
Packit |
98cdb6 |
* Copyright (C) 2004 Anders Carlsson <andersca@gnome.org>
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
98cdb6 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
98cdb6 |
* License as published by the Free Software Foundation; either
|
|
Packit |
98cdb6 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
98cdb6 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
98cdb6 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
98cdb6 |
* Library General Public License for more details.
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
98cdb6 |
* License along with this library; if not, write to the
|
|
Packit |
98cdb6 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
98cdb6 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
98cdb6 |
*/
|
|
Packit |
98cdb6 |
#ifndef __GTK_ICON_CACHE_H__
|
|
Packit |
98cdb6 |
#define __GTK_ICON_CACHE_H__
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
Packit |
98cdb6 |
#include <gdk/gdk.h>
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
typedef struct _GtkIconCache GtkIconCache;
|
|
Packit |
98cdb6 |
typedef struct _GtkIconData GtkIconData;
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
struct _GtkIconData
|
|
Packit |
98cdb6 |
{
|
|
Packit |
98cdb6 |
gboolean has_embedded_rect;
|
|
Packit |
98cdb6 |
gint x0, y0, x1, y1;
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
GdkPoint *attach_points;
|
|
Packit |
98cdb6 |
gint n_attach_points;
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
gchar *display_name;
|
|
Packit |
98cdb6 |
};
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
GtkIconCache *_gtk_icon_cache_new (const gchar *data);
|
|
Packit |
98cdb6 |
GtkIconCache *_gtk_icon_cache_new_for_path (const gchar *path);
|
|
Packit |
98cdb6 |
gint _gtk_icon_cache_get_directory_index (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *directory);
|
|
Packit |
98cdb6 |
gboolean _gtk_icon_cache_has_icon (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *icon_name);
|
|
Packit |
98cdb6 |
gboolean _gtk_icon_cache_has_icon_in_directory (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *icon_name,
|
|
Packit |
98cdb6 |
const gchar *directory);
|
|
Packit |
98cdb6 |
void _gtk_icon_cache_add_icons (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *directory,
|
|
Packit |
98cdb6 |
GHashTable *hash_table);
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
gint _gtk_icon_cache_get_icon_flags (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *icon_name,
|
|
Packit |
98cdb6 |
gint directory_index);
|
|
Packit |
98cdb6 |
GdkPixbuf *_gtk_icon_cache_get_icon (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *icon_name,
|
|
Packit |
98cdb6 |
gint directory_index);
|
|
Packit |
98cdb6 |
GtkIconData *_gtk_icon_cache_get_icon_data (GtkIconCache *cache,
|
|
Packit |
98cdb6 |
const gchar *icon_name,
|
|
Packit |
98cdb6 |
gint directory_index);
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
GtkIconCache *_gtk_icon_cache_ref (GtkIconCache *cache);
|
|
Packit |
98cdb6 |
void _gtk_icon_cache_unref (GtkIconCache *cache);
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#endif /* __GTK_ICON_CACHE_H__ */
|