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

« back to all changes in this revision

Viewing changes to src/slot-renderer.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
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation, either version 3 of the License, or
7
 
 * (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
 */
17
 
 
18
 
#ifndef __AISLERIOT_SLOT_RENDERER_H__
19
 
#define __AISLERIOT_SLOT_RENDERER_H__
20
 
 
21
 
#include <clutter/clutter.h>
22
 
 
23
 
#include "game.h"
24
 
#include "ar-card-textures-cache.h"
25
 
#include "ar-style.h"
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
#define AISLERIOT_TYPE_SLOT_RENDERER                                    \
30
 
  (aisleriot_slot_renderer_get_type())
31
 
#define AISLERIOT_SLOT_RENDERER(obj)                                    \
32
 
  (G_TYPE_CHECK_INSTANCE_CAST ((obj),                                   \
33
 
                               AISLERIOT_TYPE_SLOT_RENDERER,            \
34
 
                               AisleriotSlotRenderer))
35
 
#define AISLERIOT_SLOT_RENDERER_CLASS(klass)                            \
36
 
  (G_TYPE_CHECK_CLASS_CAST ((klass),                                    \
37
 
                            AISLERIOT_TYPE_SLOT_RENDERER,               \
38
 
                            AisleriotSlotRendererClass))
39
 
#define AISLERIOT_IS_SLOT_RENDERER(obj)                                 \
40
 
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj),                                   \
41
 
                               AISLERIOT_TYPE_SLOT_RENDERER))
42
 
#define AISLERIOT_IS_SLOT_RENDERER_CLASS(klass)                         \
43
 
  (G_TYPE_CHECK_CLASS_TYPE ((klass),                                    \
44
 
                            AISLERIOT_TYPE_SLOT_RENDERER))
45
 
#define AISLERIOT_SLOT_RENDERER_GET_CLASS(obj)                          \
46
 
  (G_TYPE_INSTANCE_GET_CLASS ((obj),                                    \
47
 
                              AISLERIOT_TYPE_SLOT_RENDERER,             \
48
 
                              AisleriotSlotRendererClass))
49
 
 
50
 
typedef struct _AisleriotSlotRenderer        AisleriotSlotRenderer;
51
 
typedef struct _AisleriotSlotRendererClass   AisleriotSlotRendererClass;
52
 
typedef struct _AisleriotSlotRendererPrivate AisleriotSlotRendererPrivate;
53
 
typedef struct _AisleriotAnimStart           AisleriotAnimStart;
54
 
 
55
 
struct _AisleriotSlotRendererClass
56
 
{
57
 
  ClutterActorClass parent_class;
58
 
};
59
 
 
60
 
struct _AisleriotSlotRenderer
61
 
{
62
 
  ClutterActor parent;
63
 
 
64
 
  AisleriotSlotRendererPrivate *priv;
65
 
};
66
 
 
67
 
struct _AisleriotAnimStart
68
 
{
69
 
  gint cardx, cardy;
70
 
  Card old_card;
71
 
  gboolean raise;
72
 
};
73
 
 
74
 
GType aisleriot_slot_renderer_get_type (void) G_GNUC_CONST;
75
 
 
76
 
ClutterActor *aisleriot_slot_renderer_new (ArStyle *style,
77
 
                                           ArCardTexturesCache *cache,
78
 
                                           ArSlot *slot);
79
 
 
80
 
void aisleriot_slot_renderer_set_highlight (AisleriotSlotRenderer *srend,
81
 
                                            gint hightlight_start);
82
 
guint aisleriot_slot_renderer_get_highlight (AisleriotSlotRenderer *srend);
83
 
 
84
 
void aisleriot_slot_renderer_set_revealed_card (AisleriotSlotRenderer *srend,
85
 
                                                gint revealed_card);
86
 
gint aisleriot_slot_renderer_get_revealed_card (AisleriotSlotRenderer *srend);
87
 
 
88
 
ClutterContainer *aisleriot_slot_renderer_get_animation_layer
89
 
                                  (AisleriotSlotRenderer *srend);
90
 
void aisleriot_slot_renderer_set_animation_layer
91
 
                                  (AisleriotSlotRenderer *srend,
92
 
                                   ClutterContainer *animation_layer);
93
 
 
94
 
void aisleriot_slot_renderer_set_animations (AisleriotSlotRenderer *srend,
95
 
                                             guint n_anims,
96
 
                                             const AisleriotAnimStart *anims,
97
 
                                             guint n_unexposed_animated_cards);
98
 
 
99
 
G_END_DECLS
100
 
 
101
 
#endif /* __AISLERIOT_SLOT_RENDERER_H__ */