rollback to 3428, before the mysterious removal of libs/* at 3431/3432
[ardour.git] / libs / libgnomecanvasmm / libgnomecanvasmm / rect-ellipse.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <libgnomecanvasmm/rect-ellipse.h>
4 #include <libgnomecanvasmm/private/rect-ellipse_p.h>
5
6 /* $Id$ */
7
8 /* ellipse.cc
9  *
10  * Copyright (C) 1998 EMC Capital Management Inc.
11  * Developed by Havoc Pennington <hp@pobox.com>
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free
25  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27
28 namespace Gnome
29 {
30
31 namespace Canvas
32 {
33
34 RectEllipse::RectEllipse(Group& parent)
35     : Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
36 {
37   item_construct(parent);
38 }
39
40 } /* namespace Canvas */
41 } /* namespace Gnome */
42
43
44 namespace
45 {
46 } // anonymous namespace
47
48
49 namespace Glib
50 {
51
52 Gnome::Canvas::RectEllipse* wrap(GnomeCanvasRE* object, bool take_copy)
53 {
54   return dynamic_cast<Gnome::Canvas::RectEllipse *> (Glib::wrap_auto ((GObject*)(object), take_copy));
55 }
56
57 } /* namespace Glib */
58
59 namespace Gnome
60 {
61
62 namespace Canvas
63 {
64
65
66 /* The *_Class implementation: */
67
68 const Glib::Class& RectEllipse_Class::init()
69 {
70   if(!gtype_) // create the GType if necessary
71   {
72     // Glib::Class has to know the class init function to clone custom types.
73     class_init_func_ = &RectEllipse_Class::class_init_function;
74
75     // This is actually just optimized away, apparently with no harm.
76     // Make sure that the parent type has been created.
77     //CppClassParent::CppObjectType::get_type();
78
79     // Create the wrapper type, with the same class/instance size as the base type.
80     register_derived_type(gnome_canvas_re_get_type());
81
82     // Add derived versions of interfaces, if the C type implements any interfaces:
83   }
84
85   return *this;
86 }
87
88 void RectEllipse_Class::class_init_function(void* g_class, void* class_data)
89 {
90   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
91   CppClassParent::class_init_function(klass, class_data);
92
93 }
94
95
96 Glib::ObjectBase* RectEllipse_Class::wrap_new(GObject* o)
97 {
98   return manage(new RectEllipse((GnomeCanvasRE*)(o)));
99
100 }
101
102
103 /* The implementation: */
104
105 RectEllipse::RectEllipse(const Glib::ConstructParams& construct_params)
106 :
107   Shape(construct_params)
108 {
109   }
110
111 RectEllipse::RectEllipse(GnomeCanvasRE* castitem)
112 :
113   Shape((GnomeCanvasShape*)(castitem))
114 {
115   }
116
117 RectEllipse::~RectEllipse()
118 {
119   destroy_();
120 }
121
122 RectEllipse::CppClassType RectEllipse::rectellipse_class_; // initialize static member
123
124 GType RectEllipse::get_type()
125 {
126   return rectellipse_class_.init().get_type();
127 }
128
129 GType RectEllipse::get_base_type()
130 {
131   return gnome_canvas_re_get_type();
132 }
133
134
135 Glib::PropertyProxy<double> RectEllipse::property_x1() 
136 {
137   return Glib::PropertyProxy<double>(this, "x1");
138 }
139
140 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_x1() const
141 {
142   return Glib::PropertyProxy_ReadOnly<double>(this, "x1");
143 }
144
145 Glib::PropertyProxy<double> RectEllipse::property_y1() 
146 {
147   return Glib::PropertyProxy<double>(this, "y1");
148 }
149
150 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_y1() const
151 {
152   return Glib::PropertyProxy_ReadOnly<double>(this, "y1");
153 }
154
155 Glib::PropertyProxy<double> RectEllipse::property_x2() 
156 {
157   return Glib::PropertyProxy<double>(this, "x2");
158 }
159
160 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_x2() const
161 {
162   return Glib::PropertyProxy_ReadOnly<double>(this, "x2");
163 }
164
165 Glib::PropertyProxy<double> RectEllipse::property_y2() 
166 {
167   return Glib::PropertyProxy<double>(this, "y2");
168 }
169
170 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_y2() const
171 {
172   return Glib::PropertyProxy_ReadOnly<double>(this, "y2");
173 }
174
175
176 } // namespace Canvas
177
178 } // namespace Gnome
179
180