]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/zoom-control/ephy-zoom-control.h
Update FSF address everywhere.
[evince.git] / cut-n-paste / zoom-control / ephy-zoom-control.h
1 /*
2  *  Copyright (C) 2003  Christian Persch
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  *  $Id$
19  */
20
21 #ifndef EPHY_ZOOM_CONTROL_H
22 #define EPHY_ZOOM_CONTROL_H
23
24 #include <gtk/gtk.h>
25
26 G_BEGIN_DECLS
27
28 #define EPHY_TYPE_ZOOM_CONTROL                  (ephy_zoom_control_get_type())
29 #define EPHY_ZOOM_CONTROL(object)               (G_TYPE_CHECK_INSTANCE_CAST((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControl))
30 #define EPHY_ZOOM_CONTROL_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST((klass), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlClass))
31 #define EPHY_IS_ZOOM_CONTROL(object)            (G_TYPE_CHECK_INSTANCE_TYPE((object), EPHY_TYPE_ZOOM_CONTROL))
32 #define EPHY_IS_ZOOM_CONTROL_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE((klass), EPHY_TYPE_ZOOM_CONTROL))
33 #define EPHY_ZOOM_CONTROL_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS((obj), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlClass))
34
35 typedef struct _EphyZoomControl         EphyZoomControl;
36 typedef struct _EphyZoomControlClass    EphyZoomControlClass;
37 typedef struct _EphyZoomControlPrivate  EphyZoomControlPrivate;
38
39 struct _EphyZoomControlClass
40 {
41         GtkToolItemClass parent_class;
42
43         /* signals */
44         void (*zoom_to_level)   (EphyZoomControl *control, float level);
45 };
46
47 struct _EphyZoomControl
48 {
49         GtkToolItem parent_object;
50
51         /*< private >*/
52         EphyZoomControlPrivate *priv;
53 };
54
55 GType   ephy_zoom_control_get_type       (void);
56
57 void    ephy_zoom_control_set_zoom_level (EphyZoomControl *control, float zoom);
58
59 float   ephy_zoom_control_get_zoom_level (EphyZoomControl *control);
60
61 G_END_DECLS
62
63 #endif