1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/fixed.h>
4 #include <gtkmm/private/fixed_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/gtkfixed.h>
37 } // anonymous namespace
43 Gtk::Fixed* wrap(GtkFixed* object, bool take_copy)
45 return dynamic_cast<Gtk::Fixed *> (Glib::wrap_auto ((GObject*)(object), take_copy));
48 } /* namespace Glib */
54 /* The *_Class implementation: */
56 const Glib::Class& Fixed_Class::init()
58 if(!gtype_) // create the GType if necessary
60 // Glib::Class has to know the class init function to clone custom types.
61 class_init_func_ = &Fixed_Class::class_init_function;
63 // This is actually just optimized away, apparently with no harm.
64 // Make sure that the parent type has been created.
65 //CppClassParent::CppObjectType::get_type();
67 // Create the wrapper type, with the same class/instance size as the base type.
68 register_derived_type(gtk_fixed_get_type());
70 // Add derived versions of interfaces, if the C type implements any interfaces:
76 void Fixed_Class::class_init_function(void* g_class, void* class_data)
78 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
79 CppClassParent::class_init_function(klass, class_data);
84 Glib::ObjectBase* Fixed_Class::wrap_new(GObject* o)
86 return manage(new Fixed((GtkFixed*)(o)));
91 /* The implementation: */
93 Fixed::Fixed(const Glib::ConstructParams& construct_params)
95 Gtk::Container(construct_params)
99 Fixed::Fixed(GtkFixed* castitem)
101 Gtk::Container((GtkContainer*)(castitem))
110 Fixed::CppClassType Fixed::fixed_class_; // initialize static member
112 GType Fixed::get_type()
114 return fixed_class_.init().get_type();
117 GType Fixed::get_base_type()
119 return gtk_fixed_get_type();
125 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
126 Gtk::Container(Glib::ConstructParams(fixed_class_.init()))
130 void Fixed::put(Widget& widget, int x, int y)
132 gtk_fixed_put(gobj(), (widget).gobj(), x, y);
135 void Fixed::move(Widget& widget, int x, int y)
137 gtk_fixed_move(gobj(), (widget).gobj(), x, y);
140 void Fixed::set_has_window(bool has_window)
142 gtk_fixed_set_has_window(gobj(), static_cast<int>(has_window));
145 bool Fixed::get_has_window() const
147 return gtk_fixed_get_has_window(const_cast<GtkFixed*>(gobj()));