1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- |
---|
2 | * |
---|
3 | * Bonobo::ZoomableFrame - container side part of Bonobo::Zoomable. |
---|
4 | * |
---|
5 | * Copyright (C) 2000 Eazel, Inc. |
---|
6 | * 2000 SuSE GmbH. |
---|
7 | * |
---|
8 | * This library is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU Lesser General Public |
---|
10 | * License as published by the Free Software Foundation; either |
---|
11 | * version 2 of the License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * This library is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | * Lesser General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU Lesser General Public |
---|
19 | * License along with this library; if not, write to the Free |
---|
20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | * |
---|
22 | * Authors: Maciej Stachowiak <mjs@eazel.com> |
---|
23 | * Martin Baulig <baulig@suse.de> |
---|
24 | * |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef _BONOBO_ZOOMABLE_FRAME_H_ |
---|
28 | #define _BONOBO_ZOOMABLE_FRAME_H_ |
---|
29 | |
---|
30 | #include <bonobo/bonobo-object.h> |
---|
31 | |
---|
32 | BEGIN_GNOME_DECLS |
---|
33 | |
---|
34 | #define BONOBO_ZOOMABLE_FRAME_TYPE (bonobo_zoomable_frame_get_type ()) |
---|
35 | #define BONOBO_ZOOMABLE_FRAME(o) (GTK_CHECK_CAST ((o), BONOBO_ZOOMABLE_FRAME_TYPE, BonoboZoomableFrame)) |
---|
36 | #define BONOBO_ZOOMABLE_FRAME_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_ZOOMABLE_FRAME_TYPE, BonoboZoomableFrameClass)) |
---|
37 | #define BONOBO_IS_ZOOMABLE_FRAME(o) (GTK_CHECK_TYPE ((o), BONOBO_ZOOMABLE_FRAME_TYPE)) |
---|
38 | #define BONOBO_IS_ZOOMABLE_FRAME_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_ZOOMABLE_FRAME_TYPE)) |
---|
39 | |
---|
40 | typedef struct _BonoboZoomableFramePrivate BonoboZoomableFramePrivate; |
---|
41 | |
---|
42 | typedef struct { |
---|
43 | BonoboObject object; |
---|
44 | |
---|
45 | BonoboZoomableFramePrivate *priv; |
---|
46 | } BonoboZoomableFrame; |
---|
47 | |
---|
48 | typedef struct { |
---|
49 | BonoboObjectClass parent; |
---|
50 | |
---|
51 | void (*zoom_level_changed) (BonoboZoomableFrame *zframe, |
---|
52 | float zoom_level); |
---|
53 | void (*zoom_parameters_changed) (BonoboZoomableFrame *zframe); |
---|
54 | } BonoboZoomableFrameClass; |
---|
55 | |
---|
56 | POA_Bonobo_ZoomableFrame__epv *bonobo_zoomable_frame_get_epv (void); |
---|
57 | |
---|
58 | GtkType bonobo_zoomable_frame_get_type (void); |
---|
59 | Bonobo_ZoomableFrame bonobo_zoomable_frame_corba_object_create (BonoboObject *object); |
---|
60 | |
---|
61 | BonoboZoomableFrame *bonobo_zoomable_frame_new (void); |
---|
62 | |
---|
63 | BonoboZoomableFrame *bonobo_zoomable_frame_construct (BonoboZoomableFrame *zframe, |
---|
64 | Bonobo_ZoomableFrame corba_zframe); |
---|
65 | |
---|
66 | float bonobo_zoomable_frame_get_zoom_level (BonoboZoomableFrame *zframe); |
---|
67 | |
---|
68 | float bonobo_zoomable_frame_get_min_zoom_level (BonoboZoomableFrame *zframe); |
---|
69 | float bonobo_zoomable_frame_get_max_zoom_level (BonoboZoomableFrame *zframe); |
---|
70 | gboolean bonobo_zoomable_frame_has_min_zoom_level (BonoboZoomableFrame *zframe); |
---|
71 | gboolean bonobo_zoomable_frame_has_max_zoom_level (BonoboZoomableFrame *zframe); |
---|
72 | gboolean bonobo_zoomable_frame_is_continuous (BonoboZoomableFrame *zframe); |
---|
73 | |
---|
74 | GList *bonobo_zoomable_frame_get_preferred_zoom_levels (BonoboZoomableFrame *zframe); |
---|
75 | GList *bonobo_zoomable_frame_get_preferred_zoom_level_names (BonoboZoomableFrame *zframe); |
---|
76 | |
---|
77 | void bonobo_zoomable_frame_set_zoom_level (BonoboZoomableFrame *zframe, |
---|
78 | float zoom_level); |
---|
79 | |
---|
80 | void bonobo_zoomable_frame_zoom_in (BonoboZoomableFrame *zframe); |
---|
81 | void bonobo_zoomable_frame_zoom_out (BonoboZoomableFrame *zframe); |
---|
82 | void bonobo_zoomable_frame_zoom_to_fit (BonoboZoomableFrame *zframe); |
---|
83 | void bonobo_zoomable_frame_zoom_to_default (BonoboZoomableFrame *zframe); |
---|
84 | |
---|
85 | /* Connecting to the remote object */ |
---|
86 | void bonobo_zoomable_frame_bind_to_zoomable (BonoboZoomableFrame *zframe, |
---|
87 | Bonobo_Zoomable zoomable); |
---|
88 | |
---|
89 | Bonobo_Zoomable bonobo_zoomable_frame_get_zoomable (BonoboZoomableFrame *zframe); |
---|
90 | |
---|
91 | |
---|
92 | END_GNOME_DECLS |
---|
93 | |
---|
94 | #endif /* _BONOBO_ZOOMABLE_FRAME_H_ */ |
---|
95 | |
---|