2
* This file is part of hildon-home
4
* Copyright (C) 2009 Nokia Corporation.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation; either version 2.1 of
9
* the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23
#ifndef __HD_CAIRO_SURFACE_CACHE_H__
24
#define __HD_CAIRO_SURFACE_CACHE_H__
26
#include <glib-object.h>
31
#define HD_TYPE_CAIRO_SURFACE_CACHE (hd_cairo_surface_cache_get_type ())
32
#define HD_CAIRO_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HD_TYPE_CAIRO_SURFACE_CACHE, HDCairoSurfaceCache))
33
#define HD_CAIRO_SURFACE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HD_TYPE_CAIRO_SURFACE_CACHE, HDCairoSurfaceCacheClass))
34
#define HD_IS_CAIRO_SURFACE_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HD_TYPE_CAIRO_SURFACE_CACHE))
35
#define HD_IS_CAIRO_SURFACE_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HD_TYPE_CAIRO_SURFACE_CACHE))
36
#define HD_CAIRO_SURFACE_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HD_TYPE_CAIRO_SURFACE_CACHE, HDCairoSurfaceCacheClass))
38
typedef struct _HDCairoSurfaceCache HDCairoSurfaceCache;
39
typedef struct _HDCairoSurfaceCacheClass HDCairoSurfaceCacheClass;
40
typedef struct _HDCairoSurfaceCachePrivate HDCairoSurfaceCachePrivate;
42
/** HDCairoSurfaceCache:
44
* A picker dialog for applets
46
struct _HDCairoSurfaceCache
50
HDCairoSurfaceCachePrivate *priv;
53
struct _HDCairoSurfaceCacheClass
58
GType hd_cairo_surface_cache_get_type (void);
60
HDCairoSurfaceCache *hd_cairo_surface_cache_get (void);
61
cairo_surface_t * hd_cairo_surface_cache_get_surface (HDCairoSurfaceCache *cache,
62
const gchar *filename);