]> www.fi.muni.cz Git - evince.git/blob - shell/ev-dualscreen.h
[shell] fix Issues #2 #3 #4
[evince.git] / shell / ev-dualscreen.h
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
3  *
4  *  Copyright (C) 2007 Johannes Buchner
5  *
6  *  Author:
7  *    Johannes Buchner <buchner.johannes@gmx.at>
8  *    Lukas Bezdicka <255993@mail.muni.cz>
9  *
10  * Evince is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * Evince is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23  */
24
25 #ifndef EV_DUALSCREEN_H
26 #define EV_DUALSCREEN_H
27
28 #include "ev-window.h"
29 #include "ev-view-presentation.h"
30 #include "ev-metadata.h"
31
32 G_BEGIN_DECLS
33
34 typedef struct _EvDSCWindow EvDSCWindow;
35 typedef struct _EvDSCWindowClass EvDSCWindowClass;
36 typedef struct _EvDSCWindowPrivate EvDSCWindowPrivate;
37
38 #define EV_TYPE_DSCWINDOW               (ev_dscwindow_get_type())
39 #define EV_DSCWINDOW(object)            (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_DSCWINDOW, EvDSCWindow))
40 #define EV_DSCWINDOW_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_DSCWINDOW, EvDSCWindowClass))
41 #define EV_IS_DSCWINDOW(object)         (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_DSCWINDOW))
42 #define EV_IS_DSCWINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_DSCWINDOW))
43 #define EV_DSCWINDOW_GET_CLASS(object)  (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_DSCWINDOW, EvDSCWindowClass))
44
45 struct _EvDSCWindowClass {
46         GtkWindowClass          base_class;
47 };
48
49 struct _EvDSCWindow {
50         GtkWindow                base_instance;
51         EvDSCWindowPrivate      *priv;
52 };
53
54 GType           ev_dscwindow_get_type   (void);
55 GtkWidget      *ev_dscwindow_new (void);
56 void            ev_dscwindow_set_presentation   (EvDSCWindow            *ev_dscwindow,
57                                                  EvWindow               *presentation_window,
58                                                  EvDocument             *document,
59                                                  EvViewPresentation     *pview,
60                                                  EvMetadata             *metadata);
61 EvDSCWindow*    ev_dscwindow_get_control (void);
62
63 G_END_DECLS
64
65 #endif /* EV_DUALSCREEN_H */