1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * bonobo-ui-container.h: The server side CORBA impl. for BonoboWindow. |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2000 Helix Code, Inc. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_UI_CONTAINER_H_ |
---|
11 | #define _BONOBO_UI_CONTAINER_H_ |
---|
12 | |
---|
13 | #include <bonobo/bonobo-win.h> |
---|
14 | #include <bonobo/bonobo-xobject.h> |
---|
15 | |
---|
16 | #define BONOBO_UI_CONTAINER_TYPE (bonobo_ui_container_get_type ()) |
---|
17 | #define BONOBO_UI_CONTAINER(o) (GTK_CHECK_CAST ((o), BONOBO_UI_CONTAINER_TYPE, BonoboUIContainer)) |
---|
18 | #define BONOBO_UI_CONTAINER_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_UI_CONTAINER_TYPE, BonoboUIContainerClass)) |
---|
19 | #define BONOBO_IS_UI_CONTAINER(o) (GTK_CHECK_TYPE ((o), BONOBO_UI_CONTAINER_TYPE)) |
---|
20 | #define BONOBO_IS_UI_CONTAINER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_UI_CONTAINER_TYPE)) |
---|
21 | |
---|
22 | typedef struct _BonoboUIContainerPrivate BonoboUIContainerPrivate; |
---|
23 | |
---|
24 | typedef struct { |
---|
25 | BonoboXObject base; |
---|
26 | |
---|
27 | BonoboUIContainerPrivate *priv; |
---|
28 | |
---|
29 | /* For backwards compatibility, strongly deprecated */ |
---|
30 | BonoboWindow *win; |
---|
31 | } BonoboUIContainer; |
---|
32 | |
---|
33 | typedef struct { |
---|
34 | BonoboXObjectClass parent; |
---|
35 | |
---|
36 | POA_Bonobo_UIContainer__epv epv; |
---|
37 | } BonoboUIContainerClass; |
---|
38 | |
---|
39 | GtkType bonobo_ui_container_get_type (void); |
---|
40 | BonoboUIContainer *bonobo_ui_container_construct (BonoboUIContainer *container, |
---|
41 | Bonobo_UIContainer corba_container); |
---|
42 | |
---|
43 | BonoboUIContainer *bonobo_ui_container_new (void); |
---|
44 | |
---|
45 | void bonobo_ui_container_set_engine (BonoboUIContainer *container, |
---|
46 | BonoboUIEngine *engine); |
---|
47 | BonoboUIEngine *bonobo_ui_container_get_engine (BonoboUIContainer *container); |
---|
48 | |
---|
49 | void bonobo_ui_container_set_win (BonoboUIContainer *container, |
---|
50 | BonoboWindow *win); |
---|
51 | /* Deprecated */ |
---|
52 | BonoboWindow *bonobo_ui_container_get_win (BonoboUIContainer *container); |
---|
53 | |
---|
54 | #endif /* _BONOBO_UI_CONTAINER_H_ */ |
---|