]> www.fi.muni.cz Git - evince.git/blob - viewer/ev-viewer.h
1b52c638134476b8d73087ef381d2ec58b1e4500
[evince.git] / viewer / ev-viewer.h
1 /*
2  *  Copyright (C) 2000-2003 Marco Pesenti Gritti
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2, or (at your option)
7  *  any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  *  $Id$
19  */
20
21 #ifndef EV_VIEWER_H
22 #define EV_VIEWER_H
23
24 #include <glib-object.h>
25 #include <glib.h>
26
27 G_BEGIN_DECLS
28
29 #define EV_TYPE_VIEWER            (ev_viewer_get_type ())
30 #define EV_VIEWER(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_VIEWER, EvViewer))
31 #define EV_VIEWER_IFACE(k)        (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_VIEWER, EvViewerIface))
32 #define EV_IS_VIEWER(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_VIEWER))
33 #define EV_IS_VIEWER_IFACE(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_VIEWER))
34 #define EV_VIEWER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_VIEWER, EvViewerIface))
35
36 typedef struct _EvViewer        EvViewer;
37 typedef struct _EvViewerIface   EvViewerIface;
38
39 struct _EvViewerIface
40 {
41         GTypeInterface base_iface;
42
43         /* Methods  */
44         void               (* load)     (EvViewer *embed,
45                                          const char *uri);
46 };
47
48 GType             ev_viewer_get_type    (void);
49
50 void              ev_viewer_load        (EvViewer *embed,
51                                          const char *uri);
52
53 G_END_DECLS
54
55 #endif