1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <libgnomecanvasmm/rect-ellipse.h>
4 #include <libgnomecanvasmm/private/rect-ellipse_p.h>
10 * Copyright (C) 1998 EMC Capital Management Inc.
11 * Developed by Havoc Pennington <hp@pobox.com>
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.
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.
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.
34 RectEllipse::RectEllipse(Group& parent)
35 : Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
37 item_construct(parent);
40 } /* namespace Canvas */
41 } /* namespace Gnome */
46 } // anonymous namespace
52 Gnome::Canvas::RectEllipse* wrap(GnomeCanvasRE* object, bool take_copy)
54 return dynamic_cast<Gnome::Canvas::RectEllipse *> (Glib::wrap_auto ((GObject*)(object), take_copy));
57 } /* namespace Glib */
66 /* The *_Class implementation: */
68 const Glib::Class& RectEllipse_Class::init()
70 if(!gtype_) // create the GType if necessary
72 // Glib::Class has to know the class init function to clone custom types.
73 class_init_func_ = &RectEllipse_Class::class_init_function;
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();
79 // Create the wrapper type, with the same class/instance size as the base type.
80 register_derived_type(gnome_canvas_re_get_type());
82 // Add derived versions of interfaces, if the C type implements any interfaces:
88 void RectEllipse_Class::class_init_function(void* g_class, void* class_data)
90 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
91 CppClassParent::class_init_function(klass, class_data);
96 Glib::ObjectBase* RectEllipse_Class::wrap_new(GObject* o)
98 return manage(new RectEllipse((GnomeCanvasRE*)(o)));
103 /* The implementation: */
105 RectEllipse::RectEllipse(const Glib::ConstructParams& construct_params)
107 Shape(construct_params)
111 RectEllipse::RectEllipse(GnomeCanvasRE* castitem)
113 Shape((GnomeCanvasShape*)(castitem))
117 RectEllipse::~RectEllipse()
122 RectEllipse::CppClassType RectEllipse::rectellipse_class_; // initialize static member
124 GType RectEllipse::get_type()
126 return rectellipse_class_.init().get_type();
129 GType RectEllipse::get_base_type()
131 return gnome_canvas_re_get_type();
135 Glib::PropertyProxy<double> RectEllipse::property_x1()
137 return Glib::PropertyProxy<double>(this, "x1");
140 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_x1() const
142 return Glib::PropertyProxy_ReadOnly<double>(this, "x1");
145 Glib::PropertyProxy<double> RectEllipse::property_y1()
147 return Glib::PropertyProxy<double>(this, "y1");
150 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_y1() const
152 return Glib::PropertyProxy_ReadOnly<double>(this, "y1");
155 Glib::PropertyProxy<double> RectEllipse::property_x2()
157 return Glib::PropertyProxy<double>(this, "x2");
160 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_x2() const
162 return Glib::PropertyProxy_ReadOnly<double>(this, "x2");
165 Glib::PropertyProxy<double> RectEllipse::property_y2()
167 return Glib::PropertyProxy<double>(this, "y2");
170 Glib::PropertyProxy_ReadOnly<double> RectEllipse::property_y2() const
172 return Glib::PropertyProxy_ReadOnly<double>(this, "y2");
176 } // namespace Canvas