1
// Generated by gtkmmproc -- DO NOT MODIFY!
4
#include <gtkmm/volumebutton.h>
5
#include <gtkmm/private/volumebutton_p.h>
8
/* $Id: volumebutton.ccg,v 1.2 2003/10/18 15:35:31 murrayc Exp $ */
12
* Copyright 2007 The gtkmm Development Team
14
* This library is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU Lesser General Public
16
* License as published by the Free Software Foundation; either
17
* version 2.1 of the License, or (at your option) any later version.
19
* This library is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
* Lesser General Public License for more details.
24
* You should have received a copy of the GNU Lesser General Public
25
* License along with this library; if not, write to the Free
26
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
40
} // anonymous namespace
46
Gtk::VolumeButton* wrap(GtkVolumeButton* object, bool take_copy)
48
return dynamic_cast<Gtk::VolumeButton *> (Glib::wrap_auto ((GObject*)(object), take_copy));
51
} /* namespace Glib */
57
/* The *_Class implementation: */
59
const Glib::Class& VolumeButton_Class::init()
61
if(!gtype_) // create the GType if necessary
63
// Glib::Class has to know the class init function to clone custom types.
64
class_init_func_ = &VolumeButton_Class::class_init_function;
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();
70
// Create the wrapper type, with the same class/instance size as the base type.
71
register_derived_type(gtk_volume_button_get_type());
73
// Add derived versions of interfaces, if the C type implements any interfaces:
81
void VolumeButton_Class::class_init_function(void* g_class, void* class_data)
83
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
84
CppClassParent::class_init_function(klass, class_data);
90
Glib::ObjectBase* VolumeButton_Class::wrap_new(GObject* o)
92
return manage(new VolumeButton((GtkVolumeButton*)(o)));
97
/* The implementation: */
99
VolumeButton::VolumeButton(const Glib::ConstructParams& construct_params)
101
Gtk::ScaleButton(construct_params)
105
VolumeButton::VolumeButton(GtkVolumeButton* castitem)
107
Gtk::ScaleButton((GtkScaleButton*)(castitem))
111
VolumeButton::~VolumeButton()
116
VolumeButton::CppClassType VolumeButton::volumebutton_class_; // initialize static member
118
GType VolumeButton::get_type()
120
return volumebutton_class_.init().get_type();
124
GType VolumeButton::get_base_type()
126
return gtk_volume_button_get_type();
130
VolumeButton::VolumeButton()
132
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
134
Gtk::ScaleButton(Glib::ConstructParams(volumebutton_class_.init()))