1
/* ev-transition-animation.h
2
* this file is part of evince, a gnome document viewer
4
* Copyright (C) 2007 Carlos Garnacho <carlos@imendio.com>
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.
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.
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.
22
#ifndef __EV_TRANSITION_ANIMATION_H__
23
#define __EV_TRANSITION_ANIMATION_H__
25
#include "ev-timeline.h"
26
#include "ev-transition-effect.h"
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))
37
typedef struct EvTransitionAnimation EvTransitionAnimation;
38
typedef struct EvTransitionAnimationClass EvTransitionAnimationClass;
40
struct EvTransitionAnimation {
41
EvTimeline parent_instance;
44
struct EvTransitionAnimationClass {
45
EvTimelineClass parent_class;
49
GType ev_transition_animation_get_type (void) G_GNUC_CONST;
51
EvTransitionAnimation * ev_transition_animation_new (EvTransitionEffect *effect);
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);
60
void ev_transition_animation_paint (EvTransitionAnimation *animation,
62
GdkRectangle page_area);
63
gboolean ev_transition_animation_ready (EvTransitionAnimation *animation);
68
#endif /* __EV_TRANSITION_ANIMATION_H__ */