1 // Generated by gmmproc 2.60.0 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gtkmm/textchildanchor.h>
7 #include <gtkmm/private/textchildanchor_p.h>
8
9
10 /*
11 * Copyright 1998-2002 The gtkmm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
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 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 */
27
28 #include <glibmm/vectorutils.h>
29
30 #include <gtk/gtk.h>
31
32 namespace
33 {
34 } // anonymous namespace
35
36
37 namespace Glib
38 {
39
wrap(GtkTextChildAnchor * object,bool take_copy)40 Glib::RefPtr<Gtk::TextChildAnchor> wrap(GtkTextChildAnchor* object, bool take_copy)
41 {
42 return Glib::RefPtr<Gtk::TextChildAnchor>( dynamic_cast<Gtk::TextChildAnchor*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
43 //We use dynamic_cast<> in case of multiple inheritance.
44 }
45
46 } /* namespace Glib */
47
48
49 namespace Gtk
50 {
51
52
53 /* The *_Class implementation: */
54
init()55 const Glib::Class& TextChildAnchor_Class::init()
56 {
57 if(!gtype_) // create the GType if necessary
58 {
59 // Glib::Class has to know the class init function to clone custom types.
60 class_init_func_ = &TextChildAnchor_Class::class_init_function;
61
62 // This is actually just optimized away, apparently with no harm.
63 // Make sure that the parent type has been created.
64 //CppClassParent::CppObjectType::get_type();
65
66 // Create the wrapper type, with the same class/instance size as the base type.
67 register_derived_type(gtk_text_child_anchor_get_type());
68
69 // Add derived versions of interfaces, if the C type implements any interfaces:
70
71 }
72
73 return *this;
74 }
75
76
class_init_function(void * g_class,void * class_data)77 void TextChildAnchor_Class::class_init_function(void* g_class, void* class_data)
78 {
79 const auto klass = static_cast<BaseClassType*>(g_class);
80 CppClassParent::class_init_function(klass, class_data);
81
82
83 }
84
85
wrap_new(GObject * object)86 Glib::ObjectBase* TextChildAnchor_Class::wrap_new(GObject* object)
87 {
88 return new TextChildAnchor((GtkTextChildAnchor*)object);
89 }
90
91
92 /* The implementation: */
93
gobj_copy()94 GtkTextChildAnchor* TextChildAnchor::gobj_copy()
95 {
96 reference();
97 return gobj();
98 }
99
TextChildAnchor(const Glib::ConstructParams & construct_params)100 TextChildAnchor::TextChildAnchor(const Glib::ConstructParams& construct_params)
101 :
102 Glib::Object(construct_params)
103 {
104
105 }
106
TextChildAnchor(GtkTextChildAnchor * castitem)107 TextChildAnchor::TextChildAnchor(GtkTextChildAnchor* castitem)
108 :
109 Glib::Object((GObject*)(castitem))
110 {}
111
112
TextChildAnchor(TextChildAnchor && src)113 TextChildAnchor::TextChildAnchor(TextChildAnchor&& src) noexcept
114 : Glib::Object(std::move(src))
115 {}
116
operator =(TextChildAnchor && src)117 TextChildAnchor& TextChildAnchor::operator=(TextChildAnchor&& src) noexcept
118 {
119 Glib::Object::operator=(std::move(src));
120 return *this;
121 }
122
123
~TextChildAnchor()124 TextChildAnchor::~TextChildAnchor() noexcept
125 {}
126
127
128 TextChildAnchor::CppClassType TextChildAnchor::textchildanchor_class_; // initialize static member
129
get_type()130 GType TextChildAnchor::get_type()
131 {
132 return textchildanchor_class_.init().get_type();
133 }
134
135
get_base_type()136 GType TextChildAnchor::get_base_type()
137 {
138 return gtk_text_child_anchor_get_type();
139 }
140
141
TextChildAnchor()142 TextChildAnchor::TextChildAnchor()
143 :
144 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
145 Glib::ObjectBase(nullptr),
146 Glib::Object(Glib::ConstructParams(textchildanchor_class_.init()))
147 {
148
149
150 }
151
create()152 Glib::RefPtr<TextChildAnchor> TextChildAnchor::create()
153 {
154 return Glib::RefPtr<TextChildAnchor>( new TextChildAnchor() );
155 }
156
get_widgets()157 std::vector<Widget*> TextChildAnchor::get_widgets()
158 {
159 return Glib::ListHandler<Widget*>::list_to_vector(gtk_text_child_anchor_get_widgets(gobj()), Glib::OWNERSHIP_SHALLOW);
160 }
161
get_widgets() const162 std::vector<const Widget*> TextChildAnchor::get_widgets() const
163 {
164 return Glib::ListHandler<const Widget*>::list_to_vector(gtk_text_child_anchor_get_widgets(const_cast<GtkTextChildAnchor*>(gobj())), Glib::OWNERSHIP_SHALLOW);
165 }
166
get_deleted() const167 bool TextChildAnchor::get_deleted() const
168 {
169 return gtk_text_child_anchor_get_deleted(const_cast<GtkTextChildAnchor*>(gobj()));
170 }
171
172
173 } // namespace Gtk
174
175
176