Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / lib / widgets / ephy-zoom-action.h
blobd5e3a20ca6d339e7716dcbcde492c3184ee530bf
1 /*
2 * Copyright © 2003 Marco Pesenti Gritti
3 * Copyright © 2003 Christian Persch
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.
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.
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.
19 * $Id: ephy-zoom-action.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_ZOOM_ACTION_H
23 #define EPHY_ZOOM_ACTION_H
25 #include <gtk/gtkaction.h>
27 G_BEGIN_DECLS
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))
36 typedef struct _EphyZoomAction EphyZoomAction;
37 typedef struct _EphyZoomActionClass EphyZoomActionClass;
38 typedef struct _EphyZoomActionPrivate EphyZoomActionPrivate;
40 struct _EphyZoomAction
42 GtkAction parent;
44 /*< private >*/
45 EphyZoomActionPrivate *priv;
48 struct _EphyZoomActionClass
50 GtkActionClass parent_class;
52 void (* zoom_to_level) (EphyZoomAction *action, float level);
55 GType ephy_zoom_action_get_type (void);
57 void ephy_zoom_action_set_zoom_level (EphyZoomAction *action, float zoom);
59 float ephy_zoom_action_get_zoom_level (EphyZoomAction *action);
61 G_END_DECLS
63 #endif