Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / buttonbox.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/buttonbox.h>
4 #include <gtkmm/private/buttonbox_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 1998-2002 The gtkmm Development Team
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 #include <gtk/gtkhbbox.h>
29 #include <gtk/gtkvbbox.h>
30
31 namespace Gtk
32 {
33
34 VButtonBox::VButtonBox(ButtonBoxStyle layout, int spacing)
35 :
36   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
37   ButtonBox(Glib::ConstructParams(vbuttonbox_class_.init(), (char*) 0))
38 {
39   set_layout(layout);
40   set_spacing(spacing);
41 }
42
43 HButtonBox::HButtonBox(ButtonBoxStyle layout, int spacing)
44 :
45   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
46   ButtonBox(Glib::ConstructParams(hbuttonbox_class_.init(), (char*) 0))
47 {
48   set_layout(layout);
49   set_spacing(spacing);
50 }
51
52 } // namespace Gtk
53
54
55 namespace
56 {
57 } // anonymous namespace
58
59
60 namespace Glib
61 {
62
63 Gtk::ButtonBox* wrap(GtkButtonBox* object, bool take_copy)
64 {
65   return dynamic_cast<Gtk::ButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
66 }
67
68 } /* namespace Glib */
69
70 namespace Gtk
71 {
72
73
74 /* The *_Class implementation: */
75
76 const Glib::Class& ButtonBox_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_ = &ButtonBox_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(gtk_button_box_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 ButtonBox_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
104 Glib::ObjectBase* ButtonBox_Class::wrap_new(GObject* o)
105 {
106   return manage(new ButtonBox((GtkButtonBox*)(o)));
107
108 }
109
110
111 /* The implementation: */
112
113 ButtonBox::ButtonBox(const Glib::ConstructParams& construct_params)
114 :
115   Gtk::Box(construct_params)
116 {
117   }
118
119 ButtonBox::ButtonBox(GtkButtonBox* castitem)
120 :
121   Gtk::Box((GtkBox*)(castitem))
122 {
123   }
124
125 ButtonBox::~ButtonBox()
126 {
127   destroy_();
128 }
129
130 ButtonBox::CppClassType ButtonBox::buttonbox_class_; // initialize static member
131
132 GType ButtonBox::get_type()
133 {
134   return buttonbox_class_.init().get_type();
135 }
136
137 GType ButtonBox::get_base_type()
138 {
139   return gtk_button_box_get_type();
140 }
141
142
143 ButtonBoxStyle ButtonBox::get_layout() const
144 {
145   return ((ButtonBoxStyle)(gtk_button_box_get_layout(const_cast<GtkButtonBox*>(gobj()))));
146 }
147
148 void ButtonBox::set_layout(ButtonBoxStyle layout_style)
149 {
150   gtk_button_box_set_layout(gobj(), ((GtkButtonBoxStyle)(layout_style)));
151 }
152
153 void ButtonBox::set_child_secondary(Widget& child, bool is_secondary)
154 {
155   gtk_button_box_set_child_secondary(gobj(), (child).gobj(), static_cast<int>(is_secondary));
156 }
157
158 bool ButtonBox::get_child_secondary(const Gtk::Widget& child) const
159 {
160   return gtk_button_box_get_child_secondary(const_cast<GtkButtonBox*>(gobj()), const_cast<GtkWidget*>(child.gobj()));
161 }
162
163 int ButtonBox::get_child_min_width() const
164 {
165   return gobj()->child_min_width;
166 }
167
168 void ButtonBox::set_child_min_width(const int& value)
169 {
170   gobj()->child_min_width = value;
171 }
172
173 int ButtonBox::get_child_min_height() const
174 {
175   return gobj()->child_min_height;
176 }
177
178 void ButtonBox::set_child_min_height(const int& value)
179 {
180   gobj()->child_min_height = value;
181 }
182
183 int ButtonBox::get_child_ipadding_x() const
184 {
185   return gobj()->child_ipad_x;
186 }
187
188 void ButtonBox::set_child_ipadding_x(const int& value)
189 {
190   gobj()->child_ipad_x = value;
191 }
192
193 int ButtonBox::get_child_ipadding_y() const
194 {
195   return gobj()->child_ipad_y;
196 }
197
198 void ButtonBox::set_child_ipadding_y(const int& value)
199 {
200   gobj()->child_ipad_y = value;
201 }
202
203
204 Glib::PropertyProxy<ButtonBoxStyle> ButtonBox::property_layout_style() 
205 {
206   return Glib::PropertyProxy<ButtonBoxStyle>(this, "layout-style");
207 }
208
209 Glib::PropertyProxy_ReadOnly<ButtonBoxStyle> ButtonBox::property_layout_style() const
210 {
211   return Glib::PropertyProxy_ReadOnly<ButtonBoxStyle>(this, "layout-style");
212 }
213
214
215 } // namespace Gtk
216
217
218 namespace Glib
219 {
220
221 Gtk::VButtonBox* wrap(GtkVButtonBox* object, bool take_copy)
222 {
223   return dynamic_cast<Gtk::VButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
224 }
225
226 } /* namespace Glib */
227
228 namespace Gtk
229 {
230
231
232 /* The *_Class implementation: */
233
234 const Glib::Class& VButtonBox_Class::init()
235 {
236   if(!gtype_) // create the GType if necessary
237   {
238     // Glib::Class has to know the class init function to clone custom types.
239     class_init_func_ = &VButtonBox_Class::class_init_function;
240
241     // This is actually just optimized away, apparently with no harm.
242     // Make sure that the parent type has been created.
243     //CppClassParent::CppObjectType::get_type();
244
245     // Create the wrapper type, with the same class/instance size as the base type.
246     register_derived_type(gtk_vbutton_box_get_type());
247
248     // Add derived versions of interfaces, if the C type implements any interfaces:
249   }
250
251   return *this;
252 }
253
254 void VButtonBox_Class::class_init_function(void* g_class, void* class_data)
255 {
256   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
257   CppClassParent::class_init_function(klass, class_data);
258
259 }
260
261
262 Glib::ObjectBase* VButtonBox_Class::wrap_new(GObject* o)
263 {
264   return manage(new VButtonBox((GtkVButtonBox*)(o)));
265
266 }
267
268
269 /* The implementation: */
270
271 VButtonBox::VButtonBox(const Glib::ConstructParams& construct_params)
272 :
273   Gtk::ButtonBox(construct_params)
274 {
275   }
276
277 VButtonBox::VButtonBox(GtkVButtonBox* castitem)
278 :
279   Gtk::ButtonBox((GtkButtonBox*)(castitem))
280 {
281   }
282
283 VButtonBox::~VButtonBox()
284 {
285   destroy_();
286 }
287
288 VButtonBox::CppClassType VButtonBox::vbuttonbox_class_; // initialize static member
289
290 GType VButtonBox::get_type()
291 {
292   return vbuttonbox_class_.init().get_type();
293 }
294
295 GType VButtonBox::get_base_type()
296 {
297   return gtk_vbutton_box_get_type();
298 }
299
300
301 } // namespace Gtk
302
303
304 namespace Glib
305 {
306
307 Gtk::HButtonBox* wrap(GtkHButtonBox* object, bool take_copy)
308 {
309   return dynamic_cast<Gtk::HButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
310 }
311
312 } /* namespace Glib */
313
314 namespace Gtk
315 {
316
317
318 /* The *_Class implementation: */
319
320 const Glib::Class& HButtonBox_Class::init()
321 {
322   if(!gtype_) // create the GType if necessary
323   {
324     // Glib::Class has to know the class init function to clone custom types.
325     class_init_func_ = &HButtonBox_Class::class_init_function;
326
327     // This is actually just optimized away, apparently with no harm.
328     // Make sure that the parent type has been created.
329     //CppClassParent::CppObjectType::get_type();
330
331     // Create the wrapper type, with the same class/instance size as the base type.
332     register_derived_type(gtk_hbutton_box_get_type());
333
334     // Add derived versions of interfaces, if the C type implements any interfaces:
335   }
336
337   return *this;
338 }
339
340 void HButtonBox_Class::class_init_function(void* g_class, void* class_data)
341 {
342   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
343   CppClassParent::class_init_function(klass, class_data);
344
345 }
346
347
348 Glib::ObjectBase* HButtonBox_Class::wrap_new(GObject* o)
349 {
350   return manage(new HButtonBox((GtkHButtonBox*)(o)));
351
352 }
353
354
355 /* The implementation: */
356
357 HButtonBox::HButtonBox(const Glib::ConstructParams& construct_params)
358 :
359   Gtk::ButtonBox(construct_params)
360 {
361   }
362
363 HButtonBox::HButtonBox(GtkHButtonBox* castitem)
364 :
365   Gtk::ButtonBox((GtkButtonBox*)(castitem))
366 {
367   }
368
369 HButtonBox::~HButtonBox()
370 {
371   destroy_();
372 }
373
374 HButtonBox::CppClassType HButtonBox::hbuttonbox_class_; // initialize static member
375
376 GType HButtonBox::get_type()
377 {
378   return hbuttonbox_class_.init().get_type();
379 }
380
381 GType HButtonBox::get_base_type()
382 {
383   return gtk_hbutton_box_get_type();
384 }
385
386
387 } // namespace Gtk
388
389