1 // Generated by gmmproc 2.60.0 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gtkmm/stackswitcher.h>
7 #include <gtkmm/private/stackswitcher_p.h>
8
9
10 /*
11 * Copyright 2013 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 <gtk/gtk.h>
29
30 namespace Gtk
31 {
32
unset_stack()33 void StackSwitcher::unset_stack()
34 {
35 gtk_stack_switcher_set_stack(gobj(), nullptr);
36 }
37
38 } //namespace Gtk
39
40 namespace
41 {
42 } // anonymous namespace
43
44
45 namespace Glib
46 {
47
wrap(GtkStackSwitcher * object,bool take_copy)48 Gtk::StackSwitcher* wrap(GtkStackSwitcher* object, bool take_copy)
49 {
50 return dynamic_cast<Gtk::StackSwitcher *> (Glib::wrap_auto ((GObject*)(object), take_copy));
51 }
52
53 } /* namespace Glib */
54
55 namespace Gtk
56 {
57
58
59 /* The *_Class implementation: */
60
init()61 const Glib::Class& StackSwitcher_Class::init()
62 {
63 if(!gtype_) // create the GType if necessary
64 {
65 // Glib::Class has to know the class init function to clone custom types.
66 class_init_func_ = &StackSwitcher_Class::class_init_function;
67
68 // This is actually just optimized away, apparently with no harm.
69 // Make sure that the parent type has been created.
70 //CppClassParent::CppObjectType::get_type();
71
72 // Create the wrapper type, with the same class/instance size as the base type.
73 register_derived_type(gtk_stack_switcher_get_type());
74
75 // Add derived versions of interfaces, if the C type implements any interfaces:
76
77 }
78
79 return *this;
80 }
81
82
class_init_function(void * g_class,void * class_data)83 void StackSwitcher_Class::class_init_function(void* g_class, void* class_data)
84 {
85 const auto klass = static_cast<BaseClassType*>(g_class);
86 CppClassParent::class_init_function(klass, class_data);
87
88
89 }
90
91
wrap_new(GObject * o)92 Glib::ObjectBase* StackSwitcher_Class::wrap_new(GObject* o)
93 {
94 return manage(new StackSwitcher((GtkStackSwitcher*)(o)));
95
96 }
97
98
99 /* The implementation: */
100
StackSwitcher(const Glib::ConstructParams & construct_params)101 StackSwitcher::StackSwitcher(const Glib::ConstructParams& construct_params)
102 :
103 Gtk::Box(construct_params)
104 {
105 }
106
StackSwitcher(GtkStackSwitcher * castitem)107 StackSwitcher::StackSwitcher(GtkStackSwitcher* castitem)
108 :
109 Gtk::Box((GtkBox*)(castitem))
110 {
111 }
112
113
StackSwitcher(StackSwitcher && src)114 StackSwitcher::StackSwitcher(StackSwitcher&& src) noexcept
115 : Gtk::Box(std::move(src))
116 {}
117
operator =(StackSwitcher && src)118 StackSwitcher& StackSwitcher::operator=(StackSwitcher&& src) noexcept
119 {
120 Gtk::Box::operator=(std::move(src));
121 return *this;
122 }
123
~StackSwitcher()124 StackSwitcher::~StackSwitcher() noexcept
125 {
126 destroy_();
127 }
128
129 StackSwitcher::CppClassType StackSwitcher::stackswitcher_class_; // initialize static member
130
get_type()131 GType StackSwitcher::get_type()
132 {
133 return stackswitcher_class_.init().get_type();
134 }
135
136
get_base_type()137 GType StackSwitcher::get_base_type()
138 {
139 return gtk_stack_switcher_get_type();
140 }
141
142
StackSwitcher()143 StackSwitcher::StackSwitcher()
144 :
145 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
146 Glib::ObjectBase(nullptr),
147 Gtk::Box(Glib::ConstructParams(stackswitcher_class_.init()))
148 {
149
150
151 }
152
set_stack(Stack & stack)153 void StackSwitcher::set_stack(Stack& stack)
154 {
155 gtk_stack_switcher_set_stack(gobj(), (stack).gobj());
156 }
157
get_stack()158 Stack* StackSwitcher::get_stack()
159 {
160 return Glib::wrap(gtk_stack_switcher_get_stack(gobj()));
161 }
162
get_stack() const163 const Stack* StackSwitcher::get_stack() const
164 {
165 return const_cast<StackSwitcher*>(this)->get_stack();
166 }
167
168
property_icon_size()169 Glib::PropertyProxy< IconSize > StackSwitcher::property_icon_size()
170 {
171 return Glib::PropertyProxy< IconSize >(this, "icon-size");
172 }
173
property_icon_size() const174 Glib::PropertyProxy_ReadOnly< IconSize > StackSwitcher::property_icon_size() const
175 {
176 return Glib::PropertyProxy_ReadOnly< IconSize >(this, "icon-size");
177 }
178
property_stack()179 Glib::PropertyProxy< Stack* > StackSwitcher::property_stack()
180 {
181 return Glib::PropertyProxy< Stack* >(this, "stack");
182 }
183
property_stack() const184 Glib::PropertyProxy_ReadOnly< Stack* > StackSwitcher::property_stack() const
185 {
186 return Glib::PropertyProxy_ReadOnly< Stack* >(this, "stack");
187 }
188
189
190 } // namespace Gtk
191
192
193