rollback to 3428, before the mysterious removal of libs/* at 3431/3432
[ardour.git] / libs / libgnomecanvasmm / libgnomecanvasmm / wrap_init.cc
1
2 #include <glib.h>
3
4 // Disable the 'const' function attribute of the get_type() functions.
5 // GCC would optimize them out because we don't use the return value.
6 #undef  G_GNUC_CONST
7 #define G_GNUC_CONST /* empty */
8
9 #include <libgnomecanvasmm/wrap_init.h>
10 #include <glibmm/error.h>
11 #include <glibmm/object.h>
12
13 // #include the widget headers so that we can call the get_type() static methods:
14
15 #include "canvas.h"
16 #include "ellipse.h"
17 #include "rect.h"
18 #include "group.h"
19 #include "item.h"
20 #include "line.h"
21 #include "polygon.h"
22 #include "rect-ellipse.h"
23 #include "shape.h"
24 #include "pixbuf.h"
25 #include "rich-text.h"
26 #include "text.h"
27 #include "widget.h"
28 #include "path-def.h"
29 #include "bpath.h"
30
31 extern "C"
32 {
33
34 //Declarations of the *_get_type() functions:
35
36 GType gnome_canvas_bpath_get_type(void);
37 GType gnome_canvas_get_type(void);
38 GType gnome_canvas_ellipse_get_type(void);
39 GType gnome_canvas_group_get_type(void);
40 GType gnome_canvas_item_get_type(void);
41 GType gnome_canvas_line_get_type(void);
42 GType gnome_canvas_pixbuf_get_type(void);
43 GType gnome_canvas_polygon_get_type(void);
44 GType gnome_canvas_rect_get_type(void);
45 GType gnome_canvas_re_get_type(void);
46 GType gnome_canvas_rich_text_get_type(void);
47 GType gnome_canvas_shape_get_type(void);
48 GType gnome_canvas_text_get_type(void);
49 GType gnome_canvas_widget_get_type(void);
50
51 //Declarations of the *_error_quark() functions:
52
53 } // extern "C"
54
55
56 //Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
57
58 namespace Gnome { namespace Canvas {  class Bpath_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
59 namespace Gnome { namespace Canvas {  class Canvas_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
60 namespace Gnome { namespace Canvas {  class Ellipse_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
61 namespace Gnome { namespace Canvas {  class Group_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
62 namespace Gnome { namespace Canvas {  class Item_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
63 namespace Gnome { namespace Canvas {  class Line_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
64 namespace Gnome { namespace Canvas {  class Pixbuf_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
65 namespace Gnome { namespace Canvas {  class Polygon_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
66 namespace Gnome { namespace Canvas {  class Rect_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
67 namespace Gnome { namespace Canvas {  class RectEllipse_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
68 namespace Gnome { namespace Canvas {  class RichText_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
69 namespace Gnome { namespace Canvas {  class Shape_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
70 namespace Gnome { namespace Canvas {  class Text_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
71 namespace Gnome { namespace Canvas {  class Widget_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  } }
72
73 namespace Gnome { namespace Canvas { 
74
75 void wrap_init()
76 {
77   // Register Error domains:
78
79 // Map gtypes to gtkmm wrapper-creation functions:
80   Glib::wrap_register(gnome_canvas_bpath_get_type(), &Gnome::Canvas::Bpath_Class::wrap_new);
81   Glib::wrap_register(gnome_canvas_get_type(), &Gnome::Canvas::Canvas_Class::wrap_new);
82   Glib::wrap_register(gnome_canvas_ellipse_get_type(), &Gnome::Canvas::Ellipse_Class::wrap_new);
83   Glib::wrap_register(gnome_canvas_group_get_type(), &Gnome::Canvas::Group_Class::wrap_new);
84   Glib::wrap_register(gnome_canvas_item_get_type(), &Gnome::Canvas::Item_Class::wrap_new);
85   Glib::wrap_register(gnome_canvas_line_get_type(), &Gnome::Canvas::Line_Class::wrap_new);
86   Glib::wrap_register(gnome_canvas_pixbuf_get_type(), &Gnome::Canvas::Pixbuf_Class::wrap_new);
87   Glib::wrap_register(gnome_canvas_polygon_get_type(), &Gnome::Canvas::Polygon_Class::wrap_new);
88   Glib::wrap_register(gnome_canvas_rect_get_type(), &Gnome::Canvas::Rect_Class::wrap_new);
89   Glib::wrap_register(gnome_canvas_re_get_type(), &Gnome::Canvas::RectEllipse_Class::wrap_new);
90   Glib::wrap_register(gnome_canvas_rich_text_get_type(), &Gnome::Canvas::RichText_Class::wrap_new);
91   Glib::wrap_register(gnome_canvas_shape_get_type(), &Gnome::Canvas::Shape_Class::wrap_new);
92   Glib::wrap_register(gnome_canvas_text_get_type(), &Gnome::Canvas::Text_Class::wrap_new);
93   Glib::wrap_register(gnome_canvas_widget_get_type(), &Gnome::Canvas::Widget_Class::wrap_new);
94
95   // Register the gtkmm gtypes:
96   Gnome::Canvas::Bpath::get_type();
97   Gnome::Canvas::Canvas::get_type();
98   Gnome::Canvas::Ellipse::get_type();
99   Gnome::Canvas::Group::get_type();
100   Gnome::Canvas::Item::get_type();
101   Gnome::Canvas::Line::get_type();
102   Gnome::Canvas::Pixbuf::get_type();
103   Gnome::Canvas::Polygon::get_type();
104   Gnome::Canvas::Rect::get_type();
105   Gnome::Canvas::RectEllipse::get_type();
106   Gnome::Canvas::RichText::get_type();
107   Gnome::Canvas::Shape::get_type();
108   Gnome::Canvas::Text::get_type();
109   Gnome::Canvas::Widget::get_type();
110
111 } // wrap_init()
112
113 } //Canvas
114 } //Gnome
115
116