]> www.fi.muni.cz Git - evince.git/blob - shell/ev-page-view.h
New file with some random thoughts.
[evince.git] / shell / ev-page-view.h
1 /*
2  *  Copyright (C) 2004 Jonathan Blandforde
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
19 #ifndef EV_PAGE_VIEW_H
20 #define EV_PAGE_VIEW_H
21
22 #include <gtk/gtk.h>
23 #include "ev-document.h"
24
25 G_BEGIN_DECLS
26
27 #define EV_TYPE_PAGE_VIEW            (ev_page_view_get_type ())
28 #define EV_PAGE_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_VIEW, EvPageView))
29 #define EV_PAGE_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PAGE_VIEW, EvPageViewClass))
30 #define EV_IS_PAGE_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_VIEW))
31 #define EV_IS_PAGE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_PAGE_VIEW))
32 #define EV_PAGE_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_PAGE_VIEW, EvPageViewClass))
33
34 typedef struct _EvPageView              EvPageView;
35 typedef struct _EvPageViewPrivate       EvPageViewPrivate;
36 typedef struct _EvPageViewClass         EvPageViewClass;
37
38 struct _EvPageView
39 {
40         GtkWidget parent;
41         
42         /*< private >*/
43         EvPageViewPrivate *priv;
44 };
45
46 struct _EvPageViewClass
47 {
48         GtkWidgetClass parent_class;
49
50         void (* set_scroll_adjustments) (EvPageView    *page_view,
51                                          GtkAdjustment *hadjustment,
52                                          GtkAdjustment *vadjustment);
53 };
54
55 GType      ev_page_view_get_type     (void);
56 GtkWidget *ev_page_view_new          (void);
57 void       ev_page_view_set_document (EvPageView *page_view,
58                                       EvDocument *document);
59
60
61 G_END_DECLS
62
63 #endif