source: trunk/third/bonobo/bonobo/bonobo-view-frame.h @ 15579

Revision 15579, 3.0 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15578, which included commits to RCS files with non-trunk default branches.
RevLine 
[15508]1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/**
3 * bonobo-view-frame.h: view frame object.
4 *
5 * Authors:
6 *   Nat Friedman    (nat@helixcode.com)
7 *   Miguel de Icaza (miguel@kernel.org)
8 *
9 * Copyright 1999, 2000 Helix Code, Inc.
10 */
11#ifndef _BONOBO_VIEW_FRAME_H_
12#define _BONOBO_VIEW_FRAME_H_
13
14#include <libgnome/gnome-defs.h>
15#include <bonobo/bonobo-control-frame.h>
16#include <bonobo/bonobo-ui-container.h>
17
18BEGIN_GNOME_DECLS
19 
20#define BONOBO_VIEW_FRAME_TYPE        (bonobo_view_frame_get_type ())
21#define BONOBO_VIEW_FRAME(o)          (GTK_CHECK_CAST ((o), BONOBO_VIEW_FRAME_TYPE, BonoboViewFrame))
22#define BONOBO_VIEW_FRAME_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), BONOBO_VIEW_FRAME_TYPE, BonoboViewFrameClass))
23#define BONOBO_IS_VIEW_FRAME(o)       (GTK_CHECK_TYPE ((o), BONOBO_VIEW_FRAME_TYPE))
24#define BONOBO_IS_VIEW_FRAME_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_VIEW_FRAME_TYPE))
25
26typedef struct _BonoboViewFrame        BonoboViewFrame;
27typedef struct _BonoboViewFrameClass   BonoboViewFrameClass;
28typedef struct _BonoboViewFramePrivate BonoboViewFramePrivate;
29
30#include <bonobo/bonobo-client-site.h>
31
32struct _BonoboViewFrame {
33        BonoboControlFrame       base;
34        BonoboViewFramePrivate  *priv;
35};
36
37struct _BonoboViewFrameClass {
38        BonoboControlFrameClass parent_class;
39
[15578]40        POA_Bonobo_ViewFrame__epv epv;
41
42        /* Signals. */
[15508]43        void (*user_activate)       (BonoboViewFrame *view_frame);
44        void (*user_context)        (BonoboViewFrame *view_frame);
45};
46
47GtkType                    bonobo_view_frame_get_type         (void);
48BonoboViewFrame           *bonobo_view_frame_construct        (BonoboViewFrame   *view_frame,
49                                                               BonoboClientSite  *client_site,
50                                                               Bonobo_UIContainer uih);
51BonoboViewFrame           *bonobo_view_frame_new              (BonoboClientSite *client_site,
52                                                               Bonobo_Unknown    uih);
53void                       bonobo_view_frame_bind_to_view     (BonoboViewFrame  *view_frame,
54                                                               Bonobo_View       view);
55Bonobo_View                bonobo_view_frame_get_view         (BonoboViewFrame  *view_frame);
56BonoboClientSite          *bonobo_view_frame_get_client_site  (BonoboViewFrame  *view_frame);
57GtkWidget                 *bonobo_view_frame_get_wrapper      (BonoboViewFrame  *view_frame);
58void                       bonobo_view_frame_set_covered      (BonoboViewFrame  *view_frame,
59                                                               gboolean          covered);
60
61Bonobo_UIContainer         bonobo_view_frame_get_ui_container (BonoboViewFrame *view_frame);
62
63/*
64 * A BonoboViewFrame acts as a proxy for the remote BonoboView object to
65 * which it is bound.  These functions act as wrappers which a
66 * container can use to communicate with the BonoboView associated with
67 * a given BonoboViewFrame.
68 */
69void                       bonobo_view_frame_view_activate    (BonoboViewFrame  *view_frame);
70void                       bonobo_view_frame_view_deactivate  (BonoboViewFrame  *view_frame);
71void                       bonobo_view_frame_set_zoom_factor  (BonoboViewFrame  *view_frame,
72                                                               double            zoom);
73
74END_GNOME_DECLS
75
76#endif /* _BONOBO_VIEW_FRAME_H_ */
Note: See TracBrowser for help on using the repository browser.