remove all lines to avoid recompiles after commits
[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
8 /* rect.c
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 SimpleRect::SimpleRect(Group& parentx, double x1, double y1, double x2, double y2)
35 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
36 {
37   item_construct(parentx);
38   set("x1",x1,"y1",y1,"x2",x2,"y2",y2,0);
39 }
40
41 SimpleRect::SimpleRect(Group& parentx)
42 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
43 {
44   item_construct(parentx);
45 }
46
47 } /* namespace Canvas */
48 } /* namespace Gnome */
49
50
51 namespace
52 {
53 } // anonymous namespace
54
55
56 namespace Glib
57 {
58
59 Gnome::Canvas::SimpleRect* wrap(GnomeCanvasSimpleRect* object, bool take_copy)
60 {
61   return dynamic_cast<Gnome::Canvas::SimpleRect *> (Glib::wrap_auto ((GObject*)(object), take_copy));
62 }
63
64 } /* namespace Glib */
65
66 namespace Gnome
67 {
68
69 namespace Canvas
70 {
71
72
73 /* The *_Class implementation: */
74
75 const Glib::Class& SimpleRect_Class::init()
76 {
77   if(!gtype_) // create the GType if necessary
78   {
79     // Glib::Class has to know the class init function to clone custom types.
80     class_init_func_ = &SimpleRect_Class::class_init_function;
81
82     // This is actually just optimized away, apparently with no harm.
83     // Make sure that the parent type has been created.
84     //CppClassParent::CppObjectType::get_type();
85
86     // Create the wrapper type, with the same class/instance size as the base type.
87     register_derived_type(gnome_canvas_simplerect_get_type());
88
89     // Add derived versions of interfaces, if the C type implements any interfaces:
90   }
91
92   return *this;
93 }
94
95 void SimpleRect_Class::class_init_function(void* g_class, void* class_data)
96 {
97   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
98   CppClassParent::class_init_function(klass, class_data);
99
100 }
101
102 Glib::ObjectBase* SimpleRect_Class::wrap_new(GObject* o)
103 {
104   return manage(new SimpleRect((GnomeCanvasSimpleRect*)(o)));
105
106 }
107
108 /* The implementation: */
109
110 SimpleRect::SimpleRect(const Glib::ConstructParams& construct_params)
111 : Item(construct_params)
112 {
113   }
114
115 SimpleRect::SimpleRect(GnomeCanvasSimpleRect* castitem)
116 : Item ((GnomeCanvasItem*)(castitem))
117 {
118 }
119
120 SimpleRect::~SimpleRect()
121 {
122   destroy_();
123 }
124
125 SimpleRect::CppClassType SimpleRect::rect_class_; // initialize static member
126
127 GType SimpleRect::get_type()
128 {
129   return rect_class_.init().get_type();
130 }
131
132 GType SimpleRect::get_base_type()
133 {
134   return gnome_canvas_simplerect_get_type();
135 }
136
137 Glib::PropertyProxy<double> SimpleRect::property_x1()
138 {
139         return Glib::PropertyProxy<double> (this, "x1");
140 }
141 Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_x1() const
142 {
143         return Glib::PropertyProxy_ReadOnly<double> (this, "x1");
144 }
145 Glib::PropertyProxy<double> SimpleRect::property_y1()
146 {
147         return Glib::PropertyProxy<double> (this, "y1");
148 }
149 Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_y1() const
150 {
151         return Glib::PropertyProxy_ReadOnly<double> (this, "y1");
152 }
153 Glib::PropertyProxy<double> SimpleRect::property_x2()
154 {
155         return Glib::PropertyProxy<double> (this, "x2");
156 }
157 Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_x2() const
158 {
159         return Glib::PropertyProxy_ReadOnly<double> (this, "x2");
160 }
161 Glib::PropertyProxy<double> SimpleRect::property_y2()
162 {
163         return Glib::PropertyProxy<double> (this, "y2");
164 }
165 Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_y2() const
166 {
167         return Glib::PropertyProxy_ReadOnly<double> (this, "y2");
168 }
169 Glib::PropertyProxy<guint> SimpleRect::property_outline_pixels()
170 {
171         return Glib::PropertyProxy<guint> (this, "outline_pixels");
172 }
173 Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_pixels() const
174 {
175         return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_pixels");
176 }
177 Glib::PropertyProxy<guint> SimpleRect::property_outline_what()
178 {
179         return Glib::PropertyProxy<guint> (this, "outline_what");
180 }
181 Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_what() const
182 {
183         return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_what");
184 }
185 Glib::PropertyProxy<bool> SimpleRect::property_fill()
186 {
187         return Glib::PropertyProxy<bool> (this, "fill");
188 }
189 Glib::PropertyProxy_ReadOnly<bool> SimpleRect::property_fill() const
190 {
191         return Glib::PropertyProxy_ReadOnly<bool> (this, "fill");
192 }
193 Glib::PropertyProxy<guint> SimpleRect::property_fill_color_rgba()
194 {
195         return Glib::PropertyProxy<guint> (this, "fill_color_rgba");
196 }
197 Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_fill_color_rgba() const
198 {
199         return Glib::PropertyProxy_ReadOnly<guint> (this, "fill_color_rgba");
200 }
201 Glib::PropertyProxy<guint> SimpleRect::property_outline_color_rgba()
202 {
203         return Glib::PropertyProxy<guint> (this, "outline_color_rgba");
204 }
205 Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_color_rgba() const
206 {
207         return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_color_rgba");
208 }
209 Glib::PropertyProxy<bool> SimpleRect::property_draw()
210 {
211         return Glib::PropertyProxy<bool> (this, "draw");
212 }
213 Glib::PropertyProxy_ReadOnly<bool> SimpleRect::property_draw() const
214 {
215         return Glib::PropertyProxy_ReadOnly<bool> (this, "draw");
216 }
217
218
219
220 } // namespace Canvas
221
222 } // namespace Gnome
223
224