1 // Generated by gmmproc 2.60.0 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gtkmm/listboxrow.h>
7 #include <gtkmm/private/listboxrow_p.h>
8
9
10 /* Copyright (C) 2013 The gtkmm Development Team
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26 #include <gtk/gtk.h>
27
28 namespace Gtk
29 {
30
unset_header()31 void ListBoxRow::unset_header()
32 {
33 gtk_list_box_row_set_header(gobj(), nullptr);
34 }
35
36 } // namespace Gtk
37
38 namespace
39 {
40 } // anonymous namespace
41
42
43 namespace Glib
44 {
45
wrap(GtkListBoxRow * object,bool take_copy)46 Gtk::ListBoxRow* wrap(GtkListBoxRow* object, bool take_copy)
47 {
48 return dynamic_cast<Gtk::ListBoxRow *> (Glib::wrap_auto ((GObject*)(object), take_copy));
49 }
50
51 } /* namespace Glib */
52
53 namespace Gtk
54 {
55
56
57 /* The *_Class implementation: */
58
init()59 const Glib::Class& ListBoxRow_Class::init()
60 {
61 if(!gtype_) // create the GType if necessary
62 {
63 // Glib::Class has to know the class init function to clone custom types.
64 class_init_func_ = &ListBoxRow_Class::class_init_function;
65
66 // This is actually just optimized away, apparently with no harm.
67 // Make sure that the parent type has been created.
68 //CppClassParent::CppObjectType::get_type();
69
70 // Create the wrapper type, with the same class/instance size as the base type.
71 register_derived_type(gtk_list_box_row_get_type());
72
73 // Add derived versions of interfaces, if the C type implements any interfaces:
74
75 }
76
77 return *this;
78 }
79
80
class_init_function(void * g_class,void * class_data)81 void ListBoxRow_Class::class_init_function(void* g_class, void* class_data)
82 {
83 const auto klass = static_cast<BaseClassType*>(g_class);
84 CppClassParent::class_init_function(klass, class_data);
85
86
87 }
88
89
wrap_new(GObject * o)90 Glib::ObjectBase* ListBoxRow_Class::wrap_new(GObject* o)
91 {
92 return manage(new ListBoxRow((GtkListBoxRow*)(o)));
93
94 }
95
96
97 /* The implementation: */
98
ListBoxRow(const Glib::ConstructParams & construct_params)99 ListBoxRow::ListBoxRow(const Glib::ConstructParams& construct_params)
100 :
101 Gtk::Bin(construct_params)
102 {
103 }
104
ListBoxRow(GtkListBoxRow * castitem)105 ListBoxRow::ListBoxRow(GtkListBoxRow* castitem)
106 :
107 Gtk::Bin((GtkBin*)(castitem))
108 {
109 }
110
111
ListBoxRow(ListBoxRow && src)112 ListBoxRow::ListBoxRow(ListBoxRow&& src) noexcept
113 : Gtk::Bin(std::move(src))
114 {}
115
operator =(ListBoxRow && src)116 ListBoxRow& ListBoxRow::operator=(ListBoxRow&& src) noexcept
117 {
118 Gtk::Bin::operator=(std::move(src));
119 return *this;
120 }
121
~ListBoxRow()122 ListBoxRow::~ListBoxRow() noexcept
123 {
124 destroy_();
125 }
126
127 ListBoxRow::CppClassType ListBoxRow::listboxrow_class_; // initialize static member
128
get_type()129 GType ListBoxRow::get_type()
130 {
131 return listboxrow_class_.init().get_type();
132 }
133
134
get_base_type()135 GType ListBoxRow::get_base_type()
136 {
137 return gtk_list_box_row_get_type();
138 }
139
140
ListBoxRow()141 ListBoxRow::ListBoxRow()
142 :
143 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
144 Glib::ObjectBase(nullptr),
145 Gtk::Bin(Glib::ConstructParams(listboxrow_class_.init()))
146 {
147
148
149 }
150
set_header(Widget & header)151 void ListBoxRow::set_header(Widget& header)
152 {
153 gtk_list_box_row_set_header(gobj(), (header).gobj());
154 }
155
get_header()156 Widget* ListBoxRow::get_header()
157 {
158 return Glib::wrap(gtk_list_box_row_get_header(gobj()));
159 }
160
get_header() const161 const Widget* ListBoxRow::get_header() const
162 {
163 return const_cast<ListBoxRow*>(this)->get_header();
164 }
165
get_index() const166 int ListBoxRow::get_index() const
167 {
168 return gtk_list_box_row_get_index(const_cast<GtkListBoxRow*>(gobj()));
169 }
170
changed()171 void ListBoxRow::changed()
172 {
173 gtk_list_box_row_changed(gobj());
174 }
175
is_selected() const176 bool ListBoxRow::is_selected() const
177 {
178 return gtk_list_box_row_is_selected(const_cast<GtkListBoxRow*>(gobj()));
179 }
180
set_selectable(bool selectable)181 void ListBoxRow::set_selectable(bool selectable)
182 {
183 gtk_list_box_row_set_selectable(gobj(), static_cast<int>(selectable));
184 }
185
get_selectable() const186 bool ListBoxRow::get_selectable() const
187 {
188 return gtk_list_box_row_get_selectable(const_cast<GtkListBoxRow*>(gobj()));
189 }
190
set_activatable(bool activatable)191 void ListBoxRow::set_activatable(bool activatable)
192 {
193 gtk_list_box_row_set_activatable(gobj(), static_cast<int>(activatable));
194 }
195
get_activatable() const196 bool ListBoxRow::get_activatable() const
197 {
198 return gtk_list_box_row_get_activatable(const_cast<GtkListBoxRow*>(gobj()));
199 }
200
201
property_selectable()202 Glib::PropertyProxy< bool > ListBoxRow::property_selectable()
203 {
204 return Glib::PropertyProxy< bool >(this, "selectable");
205 }
206
property_selectable() const207 Glib::PropertyProxy_ReadOnly< bool > ListBoxRow::property_selectable() const
208 {
209 return Glib::PropertyProxy_ReadOnly< bool >(this, "selectable");
210 }
211
property_activatable()212 Glib::PropertyProxy< bool > ListBoxRow::property_activatable()
213 {
214 return Glib::PropertyProxy< bool >(this, "activatable");
215 }
216
property_activatable() const217 Glib::PropertyProxy_ReadOnly< bool > ListBoxRow::property_activatable() const
218 {
219 return Glib::PropertyProxy_ReadOnly< bool >(this, "activatable");
220 }
221
222
223 } // namespace Gtk
224
225
226