~taylorp36/ubuntu/wily/aisleriot/bug-1490189

« back to all changes in this revision

Viewing changes to src/lib/ar-card-textures-cache.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-09-26 12:54:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110926125422-fhnx2xyc0qcpgyh2
Tags: 1:3.2.0-0ubuntu1
* New upstream stable release.
  - Distribute a copy of the LGPL
  - Update card theme install info for Debian, Ubuntu & OpenSUSE
  - Build help with yelp-tools instead of gnome-doc-utils
  - Fix game restart
  - Translation updates
* debian/control: Build-depends on yelp-tools
* debian/copyright: Fixed a few lintian warnings
* 03_update_theme_install_data.patch: Dropped, applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  Copyright © 2008 Neil Roberts
3
 
  Copyright © 2008 Christian Persch
4
 
 
5
 
  This program is free software: you can redistribute it and/or modify
6
 
  it under the terms of the GNU General Public License as published by
7
 
  the Free Software Foundation, either version 3 of the License, or
8
 
  (at your option) any later version.
9
 
 
10
 
  This program is distributed in the hope that it will be useful,
11
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
  GNU General Public License for more details.
14
 
 
15
 
  You should have received a copy of the GNU General Public License
16
 
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
 */
18
 
 
19
 
#ifndef AR_CARD_TEXTURES_CACHE_H
20
 
#define AR_CARD_TEXTURES_CACHE_H
21
 
 
22
 
#include <glib-object.h>
23
 
#include <cogl/cogl.h>
24
 
 
25
 
#include "ar-card.h"
26
 
#include "ar-card-theme.h"
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
#define AR_TYPE_CARD_TEXTURES_CACHE            (ar_card_textures_cache_get_type())
31
 
#define AR_CARD_TEXTURES_CACHE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCache))
32
 
#define AR_CARD_TEXTURES_CACHE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCacheClass))
33
 
#define AR_IS_CARD_TEXTURES_CACHE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AR_TYPE_CARD_TEXTURES_CACHE))
34
 
#define AR_IS_CARD_TEXTURES_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AR_TYPE_CARD_TEXTURES_CACHE))
35
 
#define AR_CARD_TEXTURES_CACHE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCacheClass))
36
 
 
37
 
typedef struct _ArCardTexturesCache        ArCardTexturesCache;
38
 
typedef struct _ArCardTexturesCacheClass   ArCardTexturesCacheClass;
39
 
typedef struct _ArCardTexturesCachePrivate ArCardTexturesCachePrivate;
40
 
 
41
 
struct _ArCardTexturesCacheClass
42
 
{
43
 
  GObjectClass parent_class;
44
 
};
45
 
 
46
 
struct _ArCardTexturesCache
47
 
{
48
 
  GObject parent;
49
 
 
50
 
  ArCardTexturesCachePrivate *priv;
51
 
};
52
 
 
53
 
GType ar_card_textures_cache_get_type (void);
54
 
 
55
 
ArCardTexturesCache *ar_card_textures_cache_new (void);
56
 
 
57
 
void ar_card_textures_cache_drop (ArCardTexturesCache *cache);
58
 
 
59
 
void ar_card_textures_cache_set_theme (ArCardTexturesCache *cache,
60
 
                                          ArCardTheme *theme);
61
 
 
62
 
ArCardTheme *ar_card_textures_cache_get_theme (ArCardTexturesCache *cache);
63
 
 
64
 
CoglHandle ar_card_textures_cache_get_card_texture (ArCardTexturesCache *cache,
65
 
                                                       Card card);
66
 
 
67
 
CoglHandle ar_card_textures_cache_get_card_texture_by_id (ArCardTexturesCache *cache,
68
 
                                                             guint card_id);
69
 
 
70
 
CoglHandle ar_card_textures_cache_get_slot_texture (ArCardTexturesCache *cache);
71
 
 
72
 
G_END_DECLS
73
 
 
74
 
#endif /* AR_CARD_TEXTURES_CACHE_H */