#ifndef __SHELL_TEXTURE_CACHE_H__ #define __SHELL_TEXTURE_CACHE_H__ #include #include #define SHELL_TYPE_TEXTURE_CACHE (shell_texture_cache_get_type ()) #define SHELL_TEXTURE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHELL_TYPE_TEXTURE_CACHE, ShellTextureCache)) #define SHELL_TEXTURE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_TEXTURE_CACHE, ShellTextureCacheClass)) #define SHELL_IS_TEXTURE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHELL_TYPE_TEXTURE_CACHE)) #define SHELL_IS_TEXTURE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_TEXTURE_CACHE)) #define SHELL_TEXTURE_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_TEXTURE_CACHE, ShellTextureCacheClass)) typedef struct _ShellTextureCache ShellTextureCache; typedef struct _ShellTextureCacheClass ShellTextureCacheClass; typedef struct _ShellTextureCachePrivate ShellTextureCachePrivate; struct _ShellTextureCache { GObject parent; ShellTextureCachePrivate *priv; }; struct _ShellTextureCacheClass { GObjectClass parent_class; }; GType shell_texture_cache_get_type (void) G_GNUC_CONST; ShellTextureCache* shell_texture_cache_get_default(); ClutterActor *shell_texture_cache_load_gicon (ShellTextureCache *cache, GIcon *icon, gint size); ClutterActor *shell_texture_cache_load_uri_async (ShellTextureCache *cache, const gchar *filename, int available_width, int available_height); ClutterActor *shell_texture_cache_load_uri_sync (ShellTextureCache *cache, const gchar *filename, int available_width, int available_height, GError **error); #endif /* __SHELL_TEXTURE_CACHE_H__ */