]> matita.cs.unibo.it Git - helm.git/blob - helm/gtkmathview-bonobo/src/view.h
* snapshot
[helm.git] / helm / gtkmathview-bonobo / src / view.h
1
2 #ifndef __view_h__
3 #define __view_h__
4
5 #include <bonobo.h>
6
7 #include "GNOME_GtkMathView_View.h"
8 #include "control-data.h"
9
10 #define VIEW_TYPE         (view_get_type())
11 #define VIEW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), VIEW_TYPE, View))
12 #define VIEW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), VIEW_TYPE, ViewClass))
13 #define VIEW_IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), VIEW_TYPE))
14 #define VIEW_IS_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), VIEW_TYPE))
15 #define VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), VIEW_TYPE, ViewClass))
16
17 typedef struct {
18   BonoboObject parent;
19   GtkMathViewControlData* control_data;
20 } View;
21
22 typedef struct {
23   BonoboObjectClass parent_class;
24   POA_GNOME_GtkMathView_View__epv epv;
25 } ViewClass;
26
27 GType view_get_type(void);
28 View* view_new(GtkMathViewControlData*);
29
30 #endif /* __view_h__ */
31