1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/textchildanchor.h>
4 #include <gtkmm/private/textchildanchor_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/gtktextchild.h>
32 } // anonymous namespace
38 Glib::RefPtr<Gtk::TextChildAnchor> wrap(GtkTextChildAnchor* object, bool take_copy)
40 return Glib::RefPtr<Gtk::TextChildAnchor>( dynamic_cast<Gtk::TextChildAnchor*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
41 //We use dynamic_cast<> in case of multiple inheritance.
44 } /* namespace Glib */
51 /* The *_Class implementation: */
53 const Glib::Class& TextChildAnchor_Class::init()
55 if(!gtype_) // create the GType if necessary
57 // Glib::Class has to know the class init function to clone custom types.
58 class_init_func_ = &TextChildAnchor_Class::class_init_function;
60 // This is actually just optimized away, apparently with no harm.
61 // Make sure that the parent type has been created.
62 //CppClassParent::CppObjectType::get_type();
64 // Create the wrapper type, with the same class/instance size as the base type.
65 register_derived_type(gtk_text_child_anchor_get_type());
67 // Add derived versions of interfaces, if the C type implements any interfaces:
73 void TextChildAnchor_Class::class_init_function(void* g_class, void* class_data)
75 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
76 CppClassParent::class_init_function(klass, class_data);
81 Glib::ObjectBase* TextChildAnchor_Class::wrap_new(GObject* object)
83 return new TextChildAnchor((GtkTextChildAnchor*)object);
87 /* The implementation: */
89 GtkTextChildAnchor* TextChildAnchor::gobj_copy()
95 TextChildAnchor::TextChildAnchor(const Glib::ConstructParams& construct_params)
97 Glib::Object(construct_params)
100 TextChildAnchor::TextChildAnchor(GtkTextChildAnchor* castitem)
102 Glib::Object((GObject*)(castitem))
105 TextChildAnchor::~TextChildAnchor()
109 TextChildAnchor::CppClassType TextChildAnchor::textchildanchor_class_; // initialize static member
111 GType TextChildAnchor::get_type()
113 return textchildanchor_class_.init().get_type();
116 GType TextChildAnchor::get_base_type()
118 return gtk_text_child_anchor_get_type();
122 TextChildAnchor::TextChildAnchor()
124 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
125 Glib::Object(Glib::ConstructParams(textchildanchor_class_.init()))
129 Glib::RefPtr<TextChildAnchor> TextChildAnchor::create()
131 return Glib::RefPtr<TextChildAnchor>( new TextChildAnchor() );
133 Glib::ListHandle<Widget*> TextChildAnchor::get_widgets()
135 return Glib::ListHandle<Widget*>(gtk_text_child_anchor_get_widgets(gobj()), Glib::OWNERSHIP_SHALLOW);
138 Glib::ListHandle<const Widget*> TextChildAnchor::get_widgets() const
140 return Glib::ListHandle<const Widget*>(gtk_text_child_anchor_get_widgets(const_cast<GtkTextChildAnchor*>(gobj())), Glib::OWNERSHIP_SHALLOW);
143 bool TextChildAnchor::get_deleted() const
145 return gtk_text_child_anchor_get_deleted(const_cast<GtkTextChildAnchor*>(gobj()));