1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/separator.h>
4 #include <gtkmm/private/separator_p.h>
11 * Copyright 1998-2002 The gtkmm Development Team
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.
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.
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.
28 #include <gtk/gtkseparator.h>
29 #include <gtk/gtkhseparator.h>
30 #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);
82 Glib::ObjectBase* Separator_Class::wrap_new(GObject* o)
84 return manage(new Separator((GtkSeparator*)(o)));
89 /* The implementation: */
91 Separator::Separator(const Glib::ConstructParams& construct_params)
93 Gtk::Widget(construct_params)
97 Separator::Separator(GtkSeparator* castitem)
99 Gtk::Widget((GtkWidget*)(castitem))
103 Separator::~Separator()
108 Separator::CppClassType Separator::separator_class_; // initialize static member
110 GType Separator::get_type()
112 return separator_class_.init().get_type();
115 GType Separator::get_base_type()
117 return gtk_separator_get_type();
121 Separator::Separator()
123 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
124 Gtk::Widget(Glib::ConstructParams(separator_class_.init()))
135 Gtk::VSeparator* wrap(GtkVSeparator* object, bool take_copy)
137 return dynamic_cast<Gtk::VSeparator *> (Glib::wrap_auto ((GObject*)(object), take_copy));
140 } /* namespace Glib */
146 /* The *_Class implementation: */
148 const Glib::Class& VSeparator_Class::init()
150 if(!gtype_) // create the GType if necessary
152 // Glib::Class has to know the class init function to clone custom types.
153 class_init_func_ = &VSeparator_Class::class_init_function;
155 // This is actually just optimized away, apparently with no harm.
156 // Make sure that the parent type has been created.
157 //CppClassParent::CppObjectType::get_type();
159 // Create the wrapper type, with the same class/instance size as the base type.
160 register_derived_type(gtk_vseparator_get_type());
162 // Add derived versions of interfaces, if the C type implements any interfaces:
168 void VSeparator_Class::class_init_function(void* g_class, void* class_data)
170 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
171 CppClassParent::class_init_function(klass, class_data);
176 Glib::ObjectBase* VSeparator_Class::wrap_new(GObject* o)
178 return manage(new VSeparator((GtkVSeparator*)(o)));
183 /* The implementation: */
185 VSeparator::VSeparator(const Glib::ConstructParams& construct_params)
187 Gtk::Separator(construct_params)
191 VSeparator::VSeparator(GtkVSeparator* castitem)
193 Gtk::Separator((GtkSeparator*)(castitem))
197 VSeparator::~VSeparator()
202 VSeparator::CppClassType VSeparator::vseparator_class_; // initialize static member
204 GType VSeparator::get_type()
206 return vseparator_class_.init().get_type();
209 GType VSeparator::get_base_type()
211 return gtk_vseparator_get_type();
214 VSeparator::VSeparator()
216 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
217 Gtk::Separator(Glib::ConstructParams(vseparator_class_.init()))
228 Gtk::HSeparator* wrap(GtkHSeparator* object, bool take_copy)
230 return dynamic_cast<Gtk::HSeparator *> (Glib::wrap_auto ((GObject*)(object), take_copy));
233 } /* namespace Glib */
239 /* The *_Class implementation: */
241 const Glib::Class& HSeparator_Class::init()
243 if(!gtype_) // create the GType if necessary
245 // Glib::Class has to know the class init function to clone custom types.
246 class_init_func_ = &HSeparator_Class::class_init_function;
248 // This is actually just optimized away, apparently with no harm.
249 // Make sure that the parent type has been created.
250 //CppClassParent::CppObjectType::get_type();
252 // Create the wrapper type, with the same class/instance size as the base type.
253 register_derived_type(gtk_hseparator_get_type());
255 // Add derived versions of interfaces, if the C type implements any interfaces:
261 void HSeparator_Class::class_init_function(void* g_class, void* class_data)
263 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
264 CppClassParent::class_init_function(klass, class_data);
269 Glib::ObjectBase* HSeparator_Class::wrap_new(GObject* o)
271 return manage(new HSeparator((GtkHSeparator*)(o)));
276 /* The implementation: */
278 HSeparator::HSeparator(const Glib::ConstructParams& construct_params)
280 Gtk::Separator(construct_params)
284 HSeparator::HSeparator(GtkHSeparator* castitem)
286 Gtk::Separator((GtkSeparator*)(castitem))
290 HSeparator::~HSeparator()
295 HSeparator::CppClassType HSeparator::hseparator_class_; // initialize static member
297 GType HSeparator::get_type()
299 return hseparator_class_.init().get_type();
302 GType HSeparator::get_base_type()
304 return gtk_hseparator_get_type();
307 HSeparator::HSeparator()
309 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
310 Gtk::Separator(Glib::ConstructParams(hseparator_class_.init()))