~ubuntu-branches/ubuntu/trusty/gcompris/trusty

« back to all changes in this revision

Viewing changes to src/gcompris/anim.h

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2006-12-15 23:08:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215230817-exr5ks1hd73s3tlk
Tags: 8.2.2-1
* New upstream bugfix release, fixes among other things the support for
  the version of gnucap shipped in etch.
* Add missing dependency on python-gtk2 (Closes: #396523).
* Removed reference to non-existent sound file from memory.c (upstream
  fix - impacts 8.2 as well).  
* Now suggests gnuchess, gnucap, and tuxpaint.
* Updated extended description for the main package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gcompris - anim.h
 
2
 *
 
3
 * Time-stamp: <2005/02/13 11:59:55 joe>
 
4
 *
 
5
 * Copyright (C) 2000 Joe Neeman
 
6
 *
 
7
 *   This program is free software; you can redistribute it and/or modify
 
8
 *   it under the terms of the GNU General Public License as published by
 
9
 *   the Free Software Foundation; either version 2 of the License, or
 
10
 *   (at your option) any later version.
 
11
 *
 
12
 *   This program is distributed in the hope that it will be useful,
 
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *   GNU General Public License for more details.
 
16
 *
 
17
 *   You should have received a copy of the GNU General Public License
 
18
 *   along with this program; if not, write to the Free Software
 
19
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
20
 */
 
21
 
 
22
#ifndef GCOMPRISANIM_H
 
23
#define GCOMPRISANIM_H
 
24
 
 
25
#include "gcompris.h"
 
26
 
 
27
/** Defines an animation object. This structure is opaque and should not be
 
28
 *  accessed directly.
 
29
 */
 
30
typedef struct {
 
31
  GdkPixbufAnimation **anim;
 
32
  int numstates;
 
33
} GcomprisAnimation;
 
34
 
 
35
typedef struct {
 
36
  GnomeCanvasPixbuf *canvas;
 
37
  GcomprisAnimation *anim;
 
38
  GdkPixbufAnimationIter *iter;
 
39
  int state;
 
40
} GcomprisAnimCanvasItem;
 
41
 
 
42
GcomprisAnimation *gc_anim_load(char *filename);
 
43
 
 
44
GcomprisAnimCanvasItem *gc_anim_activate(GnomeCanvasGroup *parent,
 
45
                                                    GcomprisAnimation*);
 
46
void gc_anim_set_state(GcomprisAnimCanvasItem*, int);
 
47
void gc_anim_deactivate(GcomprisAnimCanvasItem*);
 
48
void gc_anim_free(GcomprisAnimation*);
 
49
void gc_anim_swap(GcomprisAnimCanvasItem *item, GcomprisAnimation *new_anim);
 
50
 
 
51
#endif