Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / scrollbar.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/scrollbar.h>
4 #include <gtkmm/private/scrollbar_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
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 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.
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  * Library General Public License for more details.
22  *
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.
26  */
27
28 #include <gtkmm/adjustment.h>
29
30 #include <gtk/gtkscrollbar.h>
31 #include <gtk/gtkhscrollbar.h>
32 #include <gtk/gtkvscrollbar.h>
33
34 namespace Gtk
35 {
36
37 VScrollbar::VScrollbar(Adjustment& adjustment)
38 :
39   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
40   Scrollbar(Glib::ConstructParams(vscrollbar_class_.init(), (char*) 0))
41 {
42   set_adjustment(adjustment);
43 }
44
45 VScrollbar::VScrollbar()
46 :
47   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
48   Scrollbar(Glib::ConstructParams(vscrollbar_class_.init(), (char*) 0))
49 {
50   Adjustment* adjustment = manage(new Adjustment(0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
51
52   // The adjustment will be destroyed along with the object
53   set_adjustment(*adjustment);
54 }
55
56
57 HScrollbar::HScrollbar()
58 :
59   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
60   Scrollbar(Glib::ConstructParams(hscrollbar_class_.init(), (char*) 0))
61 {
62   Adjustment* adjustment = manage(new Adjustment(0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
63
64   // The adjustment will be destroyed along with the object
65   set_adjustment(*adjustment);
66 }
67
68 HScrollbar::HScrollbar(Adjustment& adjustment)
69 :
70   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
71   Scrollbar(Glib::ConstructParams(hscrollbar_class_.init(), (char*) 0))
72 {
73   set_adjustment(adjustment);
74 }
75
76 } // namespace Gtk
77
78
79 namespace
80 {
81 } // anonymous namespace
82
83
84 namespace Glib
85 {
86
87 Gtk::Scrollbar* wrap(GtkScrollbar* object, bool take_copy)
88 {
89   return dynamic_cast<Gtk::Scrollbar *> (Glib::wrap_auto ((GObject*)(object), take_copy));
90 }
91
92 } /* namespace Glib */
93
94 namespace Gtk
95 {
96
97
98 /* The *_Class implementation: */
99
100 const Glib::Class& Scrollbar_Class::init()
101 {
102   if(!gtype_) // create the GType if necessary
103   {
104     // Glib::Class has to know the class init function to clone custom types.
105     class_init_func_ = &Scrollbar_Class::class_init_function;
106
107     // This is actually just optimized away, apparently with no harm.
108     // Make sure that the parent type has been created.
109     //CppClassParent::CppObjectType::get_type();
110
111     // Create the wrapper type, with the same class/instance size as the base type.
112     register_derived_type(gtk_scrollbar_get_type());
113
114     // Add derived versions of interfaces, if the C type implements any interfaces:
115   }
116
117   return *this;
118 }
119
120 void Scrollbar_Class::class_init_function(void* g_class, void* class_data)
121 {
122   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
123   CppClassParent::class_init_function(klass, class_data);
124
125 }
126
127
128 Glib::ObjectBase* Scrollbar_Class::wrap_new(GObject* o)
129 {
130   return manage(new Scrollbar((GtkScrollbar*)(o)));
131
132 }
133
134
135 /* The implementation: */
136
137 Scrollbar::Scrollbar(const Glib::ConstructParams& construct_params)
138 :
139   Gtk::Range(construct_params)
140 {
141   }
142
143 Scrollbar::Scrollbar(GtkScrollbar* castitem)
144 :
145   Gtk::Range((GtkRange*)(castitem))
146 {
147   }
148
149 Scrollbar::~Scrollbar()
150 {
151   destroy_();
152 }
153
154 Scrollbar::CppClassType Scrollbar::scrollbar_class_; // initialize static member
155
156 GType Scrollbar::get_type()
157 {
158   return scrollbar_class_.init().get_type();
159 }
160
161 GType Scrollbar::get_base_type()
162 {
163   return gtk_scrollbar_get_type();
164 }
165
166
167 } // namespace Gtk
168
169
170 namespace Glib
171 {
172
173 Gtk::VScrollbar* wrap(GtkVScrollbar* object, bool take_copy)
174 {
175   return dynamic_cast<Gtk::VScrollbar *> (Glib::wrap_auto ((GObject*)(object), take_copy));
176 }
177
178 } /* namespace Glib */
179
180 namespace Gtk
181 {
182
183
184 /* The *_Class implementation: */
185
186 const Glib::Class& VScrollbar_Class::init()
187 {
188   if(!gtype_) // create the GType if necessary
189   {
190     // Glib::Class has to know the class init function to clone custom types.
191     class_init_func_ = &VScrollbar_Class::class_init_function;
192
193     // This is actually just optimized away, apparently with no harm.
194     // Make sure that the parent type has been created.
195     //CppClassParent::CppObjectType::get_type();
196
197     // Create the wrapper type, with the same class/instance size as the base type.
198     register_derived_type(gtk_vscrollbar_get_type());
199
200     // Add derived versions of interfaces, if the C type implements any interfaces:
201   }
202
203   return *this;
204 }
205
206 void VScrollbar_Class::class_init_function(void* g_class, void* class_data)
207 {
208   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
209   CppClassParent::class_init_function(klass, class_data);
210
211 }
212
213
214 Glib::ObjectBase* VScrollbar_Class::wrap_new(GObject* o)
215 {
216   return manage(new VScrollbar((GtkVScrollbar*)(o)));
217
218 }
219
220
221 /* The implementation: */
222
223 VScrollbar::VScrollbar(const Glib::ConstructParams& construct_params)
224 :
225   Gtk::Scrollbar(construct_params)
226 {
227   }
228
229 VScrollbar::VScrollbar(GtkVScrollbar* castitem)
230 :
231   Gtk::Scrollbar((GtkScrollbar*)(castitem))
232 {
233   }
234
235 VScrollbar::~VScrollbar()
236 {
237   destroy_();
238 }
239
240 VScrollbar::CppClassType VScrollbar::vscrollbar_class_; // initialize static member
241
242 GType VScrollbar::get_type()
243 {
244   return vscrollbar_class_.init().get_type();
245 }
246
247 GType VScrollbar::get_base_type()
248 {
249   return gtk_vscrollbar_get_type();
250 }
251
252
253 } // namespace Gtk
254
255
256 namespace Glib
257 {
258
259 Gtk::HScrollbar* wrap(GtkHScrollbar* object, bool take_copy)
260 {
261   return dynamic_cast<Gtk::HScrollbar *> (Glib::wrap_auto ((GObject*)(object), take_copy));
262 }
263
264 } /* namespace Glib */
265
266 namespace Gtk
267 {
268
269
270 /* The *_Class implementation: */
271
272 const Glib::Class& HScrollbar_Class::init()
273 {
274   if(!gtype_) // create the GType if necessary
275   {
276     // Glib::Class has to know the class init function to clone custom types.
277     class_init_func_ = &HScrollbar_Class::class_init_function;
278
279     // This is actually just optimized away, apparently with no harm.
280     // Make sure that the parent type has been created.
281     //CppClassParent::CppObjectType::get_type();
282
283     // Create the wrapper type, with the same class/instance size as the base type.
284     register_derived_type(gtk_hscrollbar_get_type());
285
286     // Add derived versions of interfaces, if the C type implements any interfaces:
287   }
288
289   return *this;
290 }
291
292 void HScrollbar_Class::class_init_function(void* g_class, void* class_data)
293 {
294   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
295   CppClassParent::class_init_function(klass, class_data);
296
297 }
298
299
300 Glib::ObjectBase* HScrollbar_Class::wrap_new(GObject* o)
301 {
302   return manage(new HScrollbar((GtkHScrollbar*)(o)));
303
304 }
305
306
307 /* The implementation: */
308
309 HScrollbar::HScrollbar(const Glib::ConstructParams& construct_params)
310 :
311   Gtk::Scrollbar(construct_params)
312 {
313   }
314
315 HScrollbar::HScrollbar(GtkHScrollbar* castitem)
316 :
317   Gtk::Scrollbar((GtkScrollbar*)(castitem))
318 {
319   }
320
321 HScrollbar::~HScrollbar()
322 {
323   destroy_();
324 }
325
326 HScrollbar::CppClassType HScrollbar::hscrollbar_class_; // initialize static member
327
328 GType HScrollbar::get_type()
329 {
330   return hscrollbar_class_.init().get_type();
331 }
332
333 GType HScrollbar::get_base_type()
334 {
335   return gtk_hscrollbar_get_type();
336 }
337
338
339 } // namespace Gtk
340
341