1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /* this file is part of evince, a gnome document viewer
6 * Lukas Bezdicka <255993@mail.muni.cz>
8 * Evince is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Evince 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 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef _EV_PRESENTATION_TIMER_H_
24 #define _EV_PRESENTATION_TIMER_H_
28 typedef struct _EvPresentationTimerClass EvPresentationTimerClass;
29 typedef struct _EvPresentationTimer EvPresentationTimer;
30 typedef struct _EvPresentationTimerPrivate EvPresentationTimerPrivate;
32 #define EV_TYPE_PRESENTATION_TIMER (ev_presentation_timer_get_type ())
33 #define EV_PRESENTATION_TIMER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), EV_TYPE_PRESENTATION_TIMER, EvPresentationTimer))
34 #define EV_PRESENTATION_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PRESENTATION_TIMER, EvPresentationTimerClass))
35 #define EV_IS_PRESENTATION_TIMER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), EV_TYPE_PRESENTATION_TIMER))
36 #define EV_IS_PRESENTATION_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PRESENTATION_TIMER))
37 #define EV_PRESENTATION_TIMER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), EV_TYPE_PRESENTATION_TIMER, EvPresentationTimerClass))
39 struct _EvPresentationTimerClass
41 GtkDrawingAreaClass parent_class;
44 struct _EvPresentationTimer
46 GtkDrawingArea parent_instance;
47 EvPresentationTimerPrivate *priv;
50 void ev_presentation_timer_set_pages (EvPresentationTimer *ev_timer,
52 void ev_presentation_timer_set_page (EvPresentationTimer *ev_timer,
54 void ev_presentation_timer_start (EvPresentationTimer *ev_timer);
55 void ev_presentation_timer_stop (EvPresentationTimer *ev_timer);
56 void ev_presentation_timer_set_time (EvPresentationTimer *ev_timer,
58 GType ev_presentation_timer_get_type (void);
59 GtkWidget *ev_presentation_timer_new (void);
63 #endif /* _EV_PRESENTATION_TIMER_H_ */