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