~cordia-team/+junk/hildon-home

« back to all changes in this revision

Viewing changes to src/hd-cairo-surface-cache.h

  • Committer: Thomas-Karl Pietrowski
  • Date: 2011-10-09 16:56:50 UTC
  • Revision ID: thopiekar@googlemail.com-20111009165650-4c3oct3pk33c2fb3
first release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of hildon-home
 
3
 *
 
4
 * Copyright (C) 2009 Nokia Corporation.
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 * 02110-1301 USA
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef __HD_CAIRO_SURFACE_CACHE_H__
 
24
#define __HD_CAIRO_SURFACE_CACHE_H__
 
25
 
 
26
#include <glib-object.h>
 
27
#include <cairo.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
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))
 
37
 
 
38
typedef struct _HDCairoSurfaceCache        HDCairoSurfaceCache;
 
39
typedef struct _HDCairoSurfaceCacheClass   HDCairoSurfaceCacheClass;
 
40
typedef struct _HDCairoSurfaceCachePrivate HDCairoSurfaceCachePrivate;
 
41
 
 
42
/** HDCairoSurfaceCache:
 
43
 *
 
44
 * A picker dialog for applets
 
45
 */
 
46
struct _HDCairoSurfaceCache
 
47
{
 
48
  GObject parent;
 
49
 
 
50
  HDCairoSurfaceCachePrivate *priv;
 
51
};
 
52
 
 
53
struct _HDCairoSurfaceCacheClass
 
54
{
 
55
  GObjectClass parent;
 
56
};
 
57
 
 
58
GType                hd_cairo_surface_cache_get_type    (void);
 
59
 
 
60
HDCairoSurfaceCache *hd_cairo_surface_cache_get         (void);
 
61
cairo_surface_t *    hd_cairo_surface_cache_get_surface (HDCairoSurfaceCache *cache,
 
62
                                                         const gchar         *filename);
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif
 
67