1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/separator.h>
5 #include <gtkmm/private/separator_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/gtkseparator.h>
30 #include <gtk/gtkhseparator.h>
31 #include <gtk/gtkvseparator.h>
35 } // anonymous namespace
41 Gtk::Separator* wrap(GtkSeparator* object, bool take_copy)
43 return dynamic_cast<Gtk::Separator *> (Glib::wrap_auto ((GObject*)(object), take_copy));
46 } /* namespace Glib */
52 /* The *_Class implementation: */
54 const Glib::Class& Separator_Class::init()
56 if(!gtype_) // create the GType if necessary
58 // Glib::Class has to know the class init function to clone custom types.
59 class_init_func_ = &Separator_Class::class_init_function;
61 // This is actually just optimized away, apparently with no harm.
62 // Make sure that the parent type has been created.
63 //CppClassParent::CppObjectType::get_type();
65 // Create the wrapper type, with the same class/instance size as the base type.
66 register_derived_type(gtk_separator_get_type());
68 // Add derived versions of interfaces, if the C type implements any interfaces:
74 void Separator_Class::class_init_function(void* g_class, void* class_data)
76 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
77 CppClassParent::class_init_function(klass, class_data);
79 #ifdef GLIBMM_VFUNCS_ENABLED
80 #endif //GLIBMM_VFUNCS_ENABLED
82 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
83 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
86 #ifdef GLIBMM_VFUNCS_ENABLED
87 #endif //GLIBMM_VFUNCS_ENABLED
89 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
90 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
93 Glib::ObjectBase* Separator_Class::wrap_new(GObject* o)
95 return manage(new Separator((GtkSeparator*)(o)));
100 /* The implementation: */
102 Separator::Separator(const Glib::ConstructParams& construct_params)
104 Gtk::Widget(construct_params)
108 Separator::Separator(GtkSeparator* castitem)
110 Gtk::Widget((GtkWidget*)(castitem))
114 Separator::~Separator()
119 Separator::CppClassType Separator::separator_class_; // initialize static member
121 GType Separator::get_type()
123 return separator_class_.init().get_type();
126 GType Separator::get_base_type()
128 return gtk_separator_get_type();
132 Separator::Separator()
134 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
136 Gtk::Widget(Glib::ConstructParams(separator_class_.init()))
141 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
142 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
144 #ifdef GLIBMM_VFUNCS_ENABLED
145 #endif //GLIBMM_VFUNCS_ENABLED
154 Gtk::VSeparator* wrap(GtkVSeparator* object, bool take_copy)
156 return dynamic_cast<Gtk::VSeparator *> (Glib::wrap_auto ((GObject*)(object), take_copy));
159 } /* namespace Glib */
165 /* The *_Class implementation: */
167 const Glib::Class& VSeparator_Class::init()
169 if(!gtype_) // create the GType if necessary
171 // Glib::Class has to know the class init function to clone custom types.
172 class_init_func_ = &VSeparator_Class::class_init_function;
174 // This is actually just optimized away, apparently with no harm.
175 // Make sure that the parent type has been created.
176 //CppClassParent::CppObjectType::get_type();
178 // Create the wrapper type, with the same class/instance size as the base type.
179 register_derived_type(gtk_vseparator_get_type());
181 // Add derived versions of interfaces, if the C type implements any interfaces:
187 void VSeparator_Class::class_init_function(void* g_class, void* class_data)
189 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
190 CppClassParent::class_init_function(klass, class_data);
192 #ifdef GLIBMM_VFUNCS_ENABLED
193 #endif //GLIBMM_VFUNCS_ENABLED
195 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
196 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
199 #ifdef GLIBMM_VFUNCS_ENABLED
200 #endif //GLIBMM_VFUNCS_ENABLED
202 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
203 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
206 Glib::ObjectBase* VSeparator_Class::wrap_new(GObject* o)
208 return manage(new VSeparator((GtkVSeparator*)(o)));
213 /* The implementation: */
215 VSeparator::VSeparator(const Glib::ConstructParams& construct_params)
217 Gtk::Separator(construct_params)
221 VSeparator::VSeparator(GtkVSeparator* castitem)
223 Gtk::Separator((GtkSeparator*)(castitem))
227 VSeparator::~VSeparator()
232 VSeparator::CppClassType VSeparator::vseparator_class_; // initialize static member
234 GType VSeparator::get_type()
236 return vseparator_class_.init().get_type();
239 GType VSeparator::get_base_type()
241 return gtk_vseparator_get_type();
244 VSeparator::VSeparator()
246 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
248 Gtk::Separator(Glib::ConstructParams(vseparator_class_.init()))
253 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
254 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
256 #ifdef GLIBMM_VFUNCS_ENABLED
257 #endif //GLIBMM_VFUNCS_ENABLED
266 Gtk::HSeparator* wrap(GtkHSeparator* object, bool take_copy)
268 return dynamic_cast<Gtk::HSeparator *> (Glib::wrap_auto ((GObject*)(object), take_copy));
271 } /* namespace Glib */
277 /* The *_Class implementation: */
279 const Glib::Class& HSeparator_Class::init()
281 if(!gtype_) // create the GType if necessary
283 // Glib::Class has to know the class init function to clone custom types.
284 class_init_func_ = &HSeparator_Class::class_init_function;
286 // This is actually just optimized away, apparently with no harm.
287 // Make sure that the parent type has been created.
288 //CppClassParent::CppObjectType::get_type();
290 // Create the wrapper type, with the same class/instance size as the base type.
291 register_derived_type(gtk_hseparator_get_type());
293 // Add derived versions of interfaces, if the C type implements any interfaces:
299 void HSeparator_Class::class_init_function(void* g_class, void* class_data)
301 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
302 CppClassParent::class_init_function(klass, class_data);
304 #ifdef GLIBMM_VFUNCS_ENABLED
305 #endif //GLIBMM_VFUNCS_ENABLED
307 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
308 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
311 #ifdef GLIBMM_VFUNCS_ENABLED
312 #endif //GLIBMM_VFUNCS_ENABLED
314 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
315 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
318 Glib::ObjectBase* HSeparator_Class::wrap_new(GObject* o)
320 return manage(new HSeparator((GtkHSeparator*)(o)));
325 /* The implementation: */
327 HSeparator::HSeparator(const Glib::ConstructParams& construct_params)
329 Gtk::Separator(construct_params)
333 HSeparator::HSeparator(GtkHSeparator* castitem)
335 Gtk::Separator((GtkSeparator*)(castitem))
339 HSeparator::~HSeparator()
344 HSeparator::CppClassType HSeparator::hseparator_class_; // initialize static member
346 GType HSeparator::get_type()
348 return hseparator_class_.init().get_type();
351 GType HSeparator::get_base_type()
353 return gtk_hseparator_get_type();
356 HSeparator::HSeparator()
358 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
360 Gtk::Separator(Glib::ConstructParams(hseparator_class_.init()))
365 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
366 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
368 #ifdef GLIBMM_VFUNCS_ENABLED
369 #endif //GLIBMM_VFUNCS_ENABLED