1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/buttonbox.h>
5 #include <gtkmm/private/buttonbox_p.h>
12 * Copyright 1998-2002 The gtkmm Development Team
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.
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.
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.
29 #include <gtk/gtkhbbox.h>
30 #include <gtk/gtkvbbox.h>
35 VButtonBox::VButtonBox(ButtonBoxStyle layout, int spacing)
37 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
39 ButtonBox(Glib::ConstructParams(vbuttonbox_class_.init()))
45 HButtonBox::HButtonBox(ButtonBoxStyle layout, int spacing)
47 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
49 ButtonBox(Glib::ConstructParams(hbuttonbox_class_.init()))
60 } // anonymous namespace
66 Gtk::ButtonBox* wrap(GtkButtonBox* object, bool take_copy)
68 return dynamic_cast<Gtk::ButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
71 } /* namespace Glib */
77 /* The *_Class implementation: */
79 const Glib::Class& ButtonBox_Class::init()
81 if(!gtype_) // create the GType if necessary
83 // Glib::Class has to know the class init function to clone custom types.
84 class_init_func_ = &ButtonBox_Class::class_init_function;
86 // This is actually just optimized away, apparently with no harm.
87 // Make sure that the parent type has been created.
88 //CppClassParent::CppObjectType::get_type();
90 // Create the wrapper type, with the same class/instance size as the base type.
91 register_derived_type(gtk_button_box_get_type());
93 // Add derived versions of interfaces, if the C type implements any interfaces:
99 void ButtonBox_Class::class_init_function(void* g_class, void* class_data)
101 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
102 CppClassParent::class_init_function(klass, class_data);
104 #ifdef GLIBMM_VFUNCS_ENABLED
105 #endif //GLIBMM_VFUNCS_ENABLED
107 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
108 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
111 #ifdef GLIBMM_VFUNCS_ENABLED
112 #endif //GLIBMM_VFUNCS_ENABLED
114 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
118 Glib::ObjectBase* ButtonBox_Class::wrap_new(GObject* o)
120 return manage(new ButtonBox((GtkButtonBox*)(o)));
125 /* The implementation: */
127 ButtonBox::ButtonBox(const Glib::ConstructParams& construct_params)
129 Gtk::Box(construct_params)
133 ButtonBox::ButtonBox(GtkButtonBox* castitem)
135 Gtk::Box((GtkBox*)(castitem))
139 ButtonBox::~ButtonBox()
144 ButtonBox::CppClassType ButtonBox::buttonbox_class_; // initialize static member
146 GType ButtonBox::get_type()
148 return buttonbox_class_.init().get_type();
151 GType ButtonBox::get_base_type()
153 return gtk_button_box_get_type();
157 ButtonBoxStyle ButtonBox::get_layout() const
159 return ((ButtonBoxStyle)(gtk_button_box_get_layout(const_cast<GtkButtonBox*>(gobj()))));
162 void ButtonBox::set_layout(ButtonBoxStyle layout_style)
164 gtk_button_box_set_layout(gobj(), ((GtkButtonBoxStyle)(layout_style)));
167 void ButtonBox::set_child_secondary(Widget& child, bool is_secondary)
169 gtk_button_box_set_child_secondary(gobj(), (child).gobj(), static_cast<int>(is_secondary));
172 bool ButtonBox::get_child_secondary(const Gtk::Widget& child) const
174 return gtk_button_box_get_child_secondary(const_cast<GtkButtonBox*>(gobj()), const_cast<GtkWidget*>(child.gobj()));
177 int ButtonBox::get_child_min_width() const
179 return gobj()->child_min_width;
182 void ButtonBox::set_child_min_width(const int& value)
184 gobj()->child_min_width = value;
187 int ButtonBox::get_child_min_height() const
189 return gobj()->child_min_height;
192 void ButtonBox::set_child_min_height(const int& value)
194 gobj()->child_min_height = value;
197 int ButtonBox::get_child_ipadding_x() const
199 return gobj()->child_ipad_x;
202 void ButtonBox::set_child_ipadding_x(const int& value)
204 gobj()->child_ipad_x = value;
207 int ButtonBox::get_child_ipadding_y() const
209 return gobj()->child_ipad_y;
212 void ButtonBox::set_child_ipadding_y(const int& value)
214 gobj()->child_ipad_y = value;
218 #ifdef GLIBMM_PROPERTIES_ENABLED
219 Glib::PropertyProxy<ButtonBoxStyle> ButtonBox::property_layout_style()
221 return Glib::PropertyProxy<ButtonBoxStyle>(this, "layout-style");
223 #endif //GLIBMM_PROPERTIES_ENABLED
225 #ifdef GLIBMM_PROPERTIES_ENABLED
226 Glib::PropertyProxy_ReadOnly<ButtonBoxStyle> ButtonBox::property_layout_style() const
228 return Glib::PropertyProxy_ReadOnly<ButtonBoxStyle>(this, "layout-style");
230 #endif //GLIBMM_PROPERTIES_ENABLED
233 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
234 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
236 #ifdef GLIBMM_VFUNCS_ENABLED
237 #endif //GLIBMM_VFUNCS_ENABLED
246 Gtk::VButtonBox* wrap(GtkVButtonBox* object, bool take_copy)
248 return dynamic_cast<Gtk::VButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
251 } /* namespace Glib */
257 /* The *_Class implementation: */
259 const Glib::Class& VButtonBox_Class::init()
261 if(!gtype_) // create the GType if necessary
263 // Glib::Class has to know the class init function to clone custom types.
264 class_init_func_ = &VButtonBox_Class::class_init_function;
266 // This is actually just optimized away, apparently with no harm.
267 // Make sure that the parent type has been created.
268 //CppClassParent::CppObjectType::get_type();
270 // Create the wrapper type, with the same class/instance size as the base type.
271 register_derived_type(gtk_vbutton_box_get_type());
273 // Add derived versions of interfaces, if the C type implements any interfaces:
279 void VButtonBox_Class::class_init_function(void* g_class, void* class_data)
281 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
282 CppClassParent::class_init_function(klass, class_data);
284 #ifdef GLIBMM_VFUNCS_ENABLED
285 #endif //GLIBMM_VFUNCS_ENABLED
287 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
288 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
291 #ifdef GLIBMM_VFUNCS_ENABLED
292 #endif //GLIBMM_VFUNCS_ENABLED
294 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
295 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
298 Glib::ObjectBase* VButtonBox_Class::wrap_new(GObject* o)
300 return manage(new VButtonBox((GtkVButtonBox*)(o)));
305 /* The implementation: */
307 VButtonBox::VButtonBox(const Glib::ConstructParams& construct_params)
309 Gtk::ButtonBox(construct_params)
313 VButtonBox::VButtonBox(GtkVButtonBox* castitem)
315 Gtk::ButtonBox((GtkButtonBox*)(castitem))
319 VButtonBox::~VButtonBox()
324 VButtonBox::CppClassType VButtonBox::vbuttonbox_class_; // initialize static member
326 GType VButtonBox::get_type()
328 return vbuttonbox_class_.init().get_type();
331 GType VButtonBox::get_base_type()
333 return gtk_vbutton_box_get_type();
337 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
338 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
340 #ifdef GLIBMM_VFUNCS_ENABLED
341 #endif //GLIBMM_VFUNCS_ENABLED
350 Gtk::HButtonBox* wrap(GtkHButtonBox* object, bool take_copy)
352 return dynamic_cast<Gtk::HButtonBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
355 } /* namespace Glib */
361 /* The *_Class implementation: */
363 const Glib::Class& HButtonBox_Class::init()
365 if(!gtype_) // create the GType if necessary
367 // Glib::Class has to know the class init function to clone custom types.
368 class_init_func_ = &HButtonBox_Class::class_init_function;
370 // This is actually just optimized away, apparently with no harm.
371 // Make sure that the parent type has been created.
372 //CppClassParent::CppObjectType::get_type();
374 // Create the wrapper type, with the same class/instance size as the base type.
375 register_derived_type(gtk_hbutton_box_get_type());
377 // Add derived versions of interfaces, if the C type implements any interfaces:
383 void HButtonBox_Class::class_init_function(void* g_class, void* class_data)
385 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
386 CppClassParent::class_init_function(klass, class_data);
388 #ifdef GLIBMM_VFUNCS_ENABLED
389 #endif //GLIBMM_VFUNCS_ENABLED
391 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
392 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
395 #ifdef GLIBMM_VFUNCS_ENABLED
396 #endif //GLIBMM_VFUNCS_ENABLED
398 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
399 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
402 Glib::ObjectBase* HButtonBox_Class::wrap_new(GObject* o)
404 return manage(new HButtonBox((GtkHButtonBox*)(o)));
409 /* The implementation: */
411 HButtonBox::HButtonBox(const Glib::ConstructParams& construct_params)
413 Gtk::ButtonBox(construct_params)
417 HButtonBox::HButtonBox(GtkHButtonBox* castitem)
419 Gtk::ButtonBox((GtkButtonBox*)(castitem))
423 HButtonBox::~HButtonBox()
428 HButtonBox::CppClassType HButtonBox::hbuttonbox_class_; // initialize static member
430 GType HButtonBox::get_type()
432 return hbuttonbox_class_.init().get_type();
435 GType HButtonBox::get_base_type()
437 return gtk_hbutton_box_get_type();
441 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
442 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
444 #ifdef GLIBMM_VFUNCS_ENABLED
445 #endif //GLIBMM_VFUNCS_ENABLED