2 * Copyright © 2003 Christian Persch
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)
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.
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.
21 #ifndef EPHY_ZOOM_CONTROL_H
22 #define EPHY_ZOOM_CONTROL_H
24 #include <gtk/gtktoolitem.h>
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))
35 typedef struct _EphyZoomControl EphyZoomControl;
36 typedef struct _EphyZoomControlClass EphyZoomControlClass;
37 typedef struct _EphyZoomControlPrivate EphyZoomControlPrivate;
39 struct _EphyZoomControlClass
41 GtkToolItemClass parent_class;
44 void (*zoom_to_level) (EphyZoomControl *control, float level);
47 struct _EphyZoomControl
49 GtkToolItem parent_object;
52 EphyZoomControlPrivate *priv;
55 GType ephy_zoom_control_get_type (void);
57 void ephy_zoom_control_set_zoom_level (EphyZoomControl *control, float zoom);
59 float ephy_zoom_control_get_zoom_level (EphyZoomControl *control);