1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/drawingarea.h>
4 #include <gtkmm/private/drawingarea_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/gtkdrawingarea.h>
33 } // anonymous namespace
39 Gtk::DrawingArea* wrap(GtkDrawingArea* object, bool take_copy)
41 return dynamic_cast<Gtk::DrawingArea *> (Glib::wrap_auto ((GObject*)(object), take_copy));
44 } /* namespace Glib */
50 /* The *_Class implementation: */
52 const Glib::Class& DrawingArea_Class::init()
54 if(!gtype_) // create the GType if necessary
56 // Glib::Class has to know the class init function to clone custom types.
57 class_init_func_ = &DrawingArea_Class::class_init_function;
59 // This is actually just optimized away, apparently with no harm.
60 // Make sure that the parent type has been created.
61 //CppClassParent::CppObjectType::get_type();
63 // Create the wrapper type, with the same class/instance size as the base type.
64 register_derived_type(gtk_drawing_area_get_type());
66 // Add derived versions of interfaces, if the C type implements any interfaces:
72 void DrawingArea_Class::class_init_function(void* g_class, void* class_data)
74 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
75 CppClassParent::class_init_function(klass, class_data);
80 Glib::ObjectBase* DrawingArea_Class::wrap_new(GObject* o)
82 return manage(new DrawingArea((GtkDrawingArea*)(o)));
87 /* The implementation: */
89 DrawingArea::DrawingArea(const Glib::ConstructParams& construct_params)
91 Gtk::Widget(construct_params)
95 DrawingArea::DrawingArea(GtkDrawingArea* castitem)
97 Gtk::Widget((GtkWidget*)(castitem))
101 DrawingArea::~DrawingArea()
106 DrawingArea::CppClassType DrawingArea::drawingarea_class_; // initialize static member
108 GType DrawingArea::get_type()
110 return drawingarea_class_.init().get_type();
113 GType DrawingArea::get_base_type()
115 return gtk_drawing_area_get_type();
119 DrawingArea::DrawingArea()
121 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
122 Gtk::Widget(Glib::ConstructParams(drawingarea_class_.init()))