1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/sizegroup.h>
5 #include <gtkmm/private/sizegroup_p.h>
7 #include <gtk/gtktypebuiltins.h>
13 * Copyright 2002 The gtkmm Development Team
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Library General Public
17 * License as published by the Free Software Foundation; either
18 * version 2 of the License, or (at your option) any later version.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Library General Public License for more details.
25 * You should have received a copy of the GNU Library General Public
26 * License along with this library; if not, write to the Free
27 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 #include <gtk/gtksizegroup.h>
35 SizeGroup::SizeGroup(SizeGroupMode mode)
37 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
39 Glib::Object(Glib::ConstructParams(sizegroup_class_.init(), "mode",(GtkSizeGroupMode) mode, static_cast<char*>(0)))
47 } // anonymous namespace
50 GType Glib::Value<Gtk::SizeGroupMode>::value_type()
52 return gtk_size_group_mode_get_type();
59 Glib::RefPtr<Gtk::SizeGroup> wrap(GtkSizeGroup* object, bool take_copy)
61 return Glib::RefPtr<Gtk::SizeGroup>( dynamic_cast<Gtk::SizeGroup*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
62 //We use dynamic_cast<> in case of multiple inheritance.
65 } /* namespace Glib */
72 /* The *_Class implementation: */
74 const Glib::Class& SizeGroup_Class::init()
76 if(!gtype_) // create the GType if necessary
78 // Glib::Class has to know the class init function to clone custom types.
79 class_init_func_ = &SizeGroup_Class::class_init_function;
81 // This is actually just optimized away, apparently with no harm.
82 // Make sure that the parent type has been created.
83 //CppClassParent::CppObjectType::get_type();
85 // Create the wrapper type, with the same class/instance size as the base type.
86 register_derived_type(gtk_size_group_get_type());
88 // Add derived versions of interfaces, if the C type implements any interfaces:
94 void SizeGroup_Class::class_init_function(void* g_class, void* class_data)
96 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
97 CppClassParent::class_init_function(klass, class_data);
99 #ifdef GLIBMM_VFUNCS_ENABLED
100 #endif //GLIBMM_VFUNCS_ENABLED
102 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
103 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
106 #ifdef GLIBMM_VFUNCS_ENABLED
107 #endif //GLIBMM_VFUNCS_ENABLED
109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
113 Glib::ObjectBase* SizeGroup_Class::wrap_new(GObject* object)
115 return new SizeGroup((GtkSizeGroup*)object);
119 /* The implementation: */
121 GtkSizeGroup* SizeGroup::gobj_copy()
127 SizeGroup::SizeGroup(const Glib::ConstructParams& construct_params)
129 Glib::Object(construct_params)
132 SizeGroup::SizeGroup(GtkSizeGroup* castitem)
134 Glib::Object((GObject*)(castitem))
137 SizeGroup::~SizeGroup()
141 SizeGroup::CppClassType SizeGroup::sizegroup_class_; // initialize static member
143 GType SizeGroup::get_type()
145 return sizegroup_class_.init().get_type();
148 GType SizeGroup::get_base_type()
150 return gtk_size_group_get_type();
154 Glib::RefPtr<SizeGroup> SizeGroup::create(SizeGroupMode mode)
156 return Glib::RefPtr<SizeGroup>( new SizeGroup(mode) );
158 void SizeGroup::set_mode(SizeGroupMode mode)
160 gtk_size_group_set_mode(gobj(), ((GtkSizeGroupMode)(mode)));
163 SizeGroupMode SizeGroup::get_mode() const
165 return ((SizeGroupMode)(gtk_size_group_get_mode(const_cast<GtkSizeGroup*>(gobj()))));
168 void SizeGroup::set_ignore_hidden(bool ignore_hidden)
170 gtk_size_group_set_ignore_hidden(gobj(), static_cast<int>(ignore_hidden));
173 bool SizeGroup::get_ignore_hidden() const
175 return gtk_size_group_get_ignore_hidden(const_cast<GtkSizeGroup*>(gobj()));
178 void SizeGroup::add_widget(Widget& widget)
180 gtk_size_group_add_widget(gobj(), (widget).gobj());
183 void SizeGroup::remove_widget(Widget& widget)
185 gtk_size_group_remove_widget(gobj(), (widget).gobj());
188 Glib::SListHandle<Widget*> SizeGroup::get_widgets()
190 return Glib::SListHandle<Widget*>(gtk_size_group_get_widgets(gobj()), Glib::OWNERSHIP_SHALLOW);
193 Glib::SListHandle<const Widget*> SizeGroup::get_widgets() const
195 return Glib::SListHandle<const Widget*>(gtk_size_group_get_widgets(const_cast<GtkSizeGroup*>(gobj())), Glib::OWNERSHIP_SHALLOW);
199 #ifdef GLIBMM_PROPERTIES_ENABLED
200 Glib::PropertyProxy<SizeGroupMode> SizeGroup::property_mode()
202 return Glib::PropertyProxy<SizeGroupMode>(this, "mode");
204 #endif //GLIBMM_PROPERTIES_ENABLED
206 #ifdef GLIBMM_PROPERTIES_ENABLED
207 Glib::PropertyProxy_ReadOnly<SizeGroupMode> SizeGroup::property_mode() const
209 return Glib::PropertyProxy_ReadOnly<SizeGroupMode>(this, "mode");
211 #endif //GLIBMM_PROPERTIES_ENABLED
213 #ifdef GLIBMM_PROPERTIES_ENABLED
214 Glib::PropertyProxy<bool> SizeGroup::property_ignore_hidden()
216 return Glib::PropertyProxy<bool>(this, "ignore-hidden");
218 #endif //GLIBMM_PROPERTIES_ENABLED
220 #ifdef GLIBMM_PROPERTIES_ENABLED
221 Glib::PropertyProxy_ReadOnly<bool> SizeGroup::property_ignore_hidden() const
223 return Glib::PropertyProxy_ReadOnly<bool>(this, "ignore-hidden");
225 #endif //GLIBMM_PROPERTIES_ENABLED
228 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
229 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
231 #ifdef GLIBMM_VFUNCS_ENABLED
232 #endif //GLIBMM_VFUNCS_ENABLED