]> www.fi.muni.cz Git - evince.git/blob - libview/ev-transition-animation.h
Move EvView specific code to a libeviview library so that it can be
[evince.git] / libview / ev-transition-animation.h
1 /* ev-transition-animation.h
2  *  this file is part of evince, a gnome document viewer
3  *
4  * Copyright (C) 2007 Carlos Garnacho <carlos@imendio.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __EV_TRANSITION_ANIMATION_H__
23 #define __EV_TRANSITION_ANIMATION_H__
24
25 #include "ev-timeline.h"
26 #include "ev-transition-effect.h"
27
28 G_BEGIN_DECLS
29
30 #define EV_TYPE_TRANSITION_ANIMATION                 (ev_transition_animation_get_type ())
31 #define EV_TRANSITION_ANIMATION(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_TRANSITION_ANIMATION, EvTransitionAnimation))
32 #define EV_TRANSITION_ANIMATION_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass),  EV_TYPE_TRANSITION_ANIMATION, EvTransitionAnimationClass))
33 #define EV_IS_TRANSITION_ANIMATION(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_TRANSITION_ANIMATION))
34 #define EV_IS_TRANSITION_ANIMATION_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass),  EV_TYPE_TRANSITION_ANIMATION))
35 #define EV_TRANSITION_ANIMATION_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj),  EV_TYPE_TRANSITION_ANIMATION, EvTransitionAnimationClass))
36
37 typedef struct EvTransitionAnimation      EvTransitionAnimation;
38 typedef struct EvTransitionAnimationClass EvTransitionAnimationClass;
39
40 struct EvTransitionAnimation {
41         EvTimeline parent_instance;
42 };
43
44 struct EvTransitionAnimationClass {
45         EvTimelineClass parent_class;
46 };
47
48
49 GType                   ev_transition_animation_get_type           (void) G_GNUC_CONST;
50
51 EvTransitionAnimation * ev_transition_animation_new                (EvTransitionEffect    *effect);
52
53 void                    ev_transition_animation_set_origin_surface (EvTransitionAnimation *animation,
54                                                                     cairo_surface_t       *origin_surface);
55 void                    ev_transition_animation_set_dest_surface   (EvTransitionAnimation *animation,
56                                                                     cairo_surface_t       *origin_surface);
57 gint                    ev_transition_animation_get_page_from      (EvTransitionAnimation *animation);
58 gint                    ev_transition_animation_get_page_to        (EvTransitionAnimation *animation);
59
60 void                    ev_transition_animation_paint              (EvTransitionAnimation *animation,
61                                                                     cairo_t               *cr,
62                                                                     GdkRectangle           page_area);
63 gboolean                ev_transition_animation_ready              (EvTransitionAnimation *animation);
64
65
66 G_END_DECLS
67
68 #endif /* __EV_TRANSITION_ANIMATION_H__ */