2 * This file is a part of hildon
4 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
6 * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef __HILDON_ANIMATION_ACTOR_H__
26 #define __HILDON_ANIMATION_ACTOR_H__
28 #include "hildon-window.h"
32 #define HILDON_TYPE_ANIMATION_ACTOR \
33 (hildon_animation_actor_get_type())
35 #define HILDON_ANIMATION_ACTOR(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37 HILDON_TYPE_ANIMATION_ACTOR, \
38 HildonAnimationActor))
40 #define HILDON_ANIMATION_ACTOR_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_CAST ((klass), \
42 HILDON_TYPE_ANIMATION_ACTOR, \
43 HildonAnimationActorClass))
45 #define HILDON_IS_ANIMATION_ACTOR(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47 HILDON_TYPE_ANIMATION_ACTOR))
49 #define HILDON_IS_ANIMATION_ACTOR_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
51 HILDON_TYPE_ANIMATION_ACTOR))
53 #define HILDON_ANIMATION_ACTOR_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55 HILDON_TYPE_ANIMATION_ACTOR, \
56 HildonAnimationActorClass))
58 typedef struct _HildonAnimationActor HildonAnimationActor;
59 typedef struct _HildonAnimationActorClass HildonAnimationActorClass;
61 struct _HildonAnimationActorClass
63 GtkWindowClass parent_class;
65 /* Padding for future extension */
66 void (*_hildon_reserved1)(void);
67 void (*_hildon_reserved2)(void);
68 void (*_hildon_reserved3)(void);
69 void (*_hildon_reserved4)(void);
72 struct _HildonAnimationActor
77 #define HILDON_AA_X_AXIS 0
78 #define HILDON_AA_Y_AXIS 1
79 #define HILDON_AA_Z_AXIS 2
81 #define HILDON_AA_N_GRAVITY 1
82 #define HILDON_AA_NE_GRAVITY 2
83 #define HILDON_AA_E_GRAVITY 3
84 #define HILDON_AA_SE_GRAVITY 4
85 #define HILDON_AA_S_GRAVITY 5
86 #define HILDON_AA_SW_GRAVITY 6
87 #define HILDON_AA_W_GRAVITY 7
88 #define HILDON_AA_NW_GRAVITY 8
89 #define HILDON_AA_CENTER_GRAVITY 9
92 hildon_animation_actor_get_type (void) G_GNUC_CONST;
95 hildon_animation_actor_new (void);
98 hildon_animation_actor_send_message (HildonAnimationActor *self,
106 hildon_animation_actor_set_show_full (HildonAnimationActor *self,
110 hildon_animation_actor_set_show (HildonAnimationActor *self,
113 hildon_animation_actor_set_opacity (HildonAnimationActor *self,
116 hildon_animation_actor_set_position_full (HildonAnimationActor *self,
121 hildon_animation_actor_set_position (HildonAnimationActor *self,
125 hildon_animation_actor_set_depth (HildonAnimationActor *self,
128 hildon_animation_actor_set_scalex (HildonAnimationActor *self,
132 hildon_animation_actor_set_scale (HildonAnimationActor *self,
136 hildon_animation_actor_set_rotationx (HildonAnimationActor *self,
143 hildon_animation_actor_set_rotation (HildonAnimationActor *self,
150 hildon_animation_actor_set_anchor (HildonAnimationActor *self,
154 hildon_animation_actor_set_anchor_from_gravity (HildonAnimationActor *self,
157 hildon_animation_actor_set_parent (HildonAnimationActor *self,
162 #endif /* __HILDON_ANIMATION_ACTOR_H__ */