2 * Copyright (C) 2003 Marco Pesenti Gritti
3 * Copyright (C) 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)
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef EPHY_ZOOM_ACTION_H
23 #define EPHY_ZOOM_ACTION_H
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
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);