]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/zoom-control/ephy-zoom-action.h
d7362c02452d604980385d6edb94939a91bb771f
[evince.git] / cut-n-paste / zoom-control / ephy-zoom-action.h
1 /*
2  *  Copyright (C) 2003 Marco Pesenti Gritti
3  *  Copyright (C) 2003 Christian Persch
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  *  $Id$
20  */
21
22 #ifndef EPHY_ZOOM_ACTION_H
23 #define EPHY_ZOOM_ACTION_H
24
25 #include <gtk/gtk.h>
26
27 G_BEGIN_DECLS
28
29 #define EPHY_TYPE_ZOOM_ACTION            (ephy_zoom_action_get_type ())
30 #define EPHY_ZOOM_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_ZOOM_ACTION, EphyZoomAction))
31 #define EPHY_ZOOM_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_ZOOM_ACTION, EphyZoomActionClass))
32 #define EPHY_IS_ZOOM_ACTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_ZOOM_ACTION))
33 #define EPHY_IS_ZOOM_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EPHY_TYPE_ZOOM_ACTION))
34 #define EPHY_ZOOM_ACTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EPHY_TYPE_ZOOM_ACTION, EphyZoomActionClass))
35
36 typedef struct _EphyZoomAction          EphyZoomAction;
37 typedef struct _EphyZoomActionClass     EphyZoomActionClass;
38 typedef struct _EphyZoomActionPrivate   EphyZoomActionPrivate;
39
40 struct _EphyZoomAction
41 {
42         GtkAction parent;
43         
44         /*< private >*/
45         EphyZoomActionPrivate *priv;
46 };
47
48 struct _EphyZoomActionClass
49 {
50         GtkActionClass parent_class;
51
52         void (* zoom_to_level)  (EphyZoomAction *action, float level);
53 };
54
55 GType   ephy_zoom_action_get_type       (void);
56
57 void    ephy_zoom_action_set_zoom_level (EphyZoomAction *action, float zoom);
58
59 float   ephy_zoom_action_get_zoom_level (EphyZoomAction *action);
60
61 G_END_DECLS
62
63 #endif