Guitarix
valuedisplay.cc
Go to the documentation of this file.
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <gxwmm/valuedisplay.h>
7 #include <gxwmm/private/valuedisplay_p.h>
8 
9 
10 /*
11  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program 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
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 #include <gxw/GxValueDisplay.h>
29 
30 Gxw::ValueDisplay::ValueDisplay(Gtk::Adjustment& adjustment):
31  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
32  Glib::ObjectBase(0),
33  Gxw::Regler(Glib::ConstructParams(valuedisplay_class_.init(), "adjustment",adjustment.gobj(), static_cast<char*>(0)))
34 {}
35 
36 namespace
37 {
38 } // anonymous namespace
39 
40 
41 namespace Glib
42 {
43 
44 Gxw::ValueDisplay* wrap(GxValueDisplay* object, bool take_copy)
45 {
46  return dynamic_cast<Gxw::ValueDisplay *> (Glib::wrap_auto ((GObject*)(object), take_copy));
47 }
48 
49 } /* namespace Glib */
50 
51 namespace Gxw
52 {
53 
54 
55 /* The *_Class implementation: */
56 
57 const Glib::Class& ValueDisplay_Class::init()
58 {
59  if(!gtype_) // create the GType if necessary
60  {
61  // Glib::Class has to know the class init function to clone custom types.
62  class_init_func_ = &ValueDisplay_Class::class_init_function;
63 
64  // This is actually just optimized away, apparently with no harm.
65  // Make sure that the parent type has been created.
66  //CppClassParent::CppObjectType::get_type();
67 
68  // Create the wrapper type, with the same class/instance size as the base type.
69  register_derived_type(gx_value_display_get_type());
70 
71  // Add derived versions of interfaces, if the C type implements any interfaces:
72 
73  }
74 
75  return *this;
76 }
77 
78 
79 void ValueDisplay_Class::class_init_function(void* g_class, void* class_data)
80 {
81  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
82  CppClassParent::class_init_function(klass, class_data);
83 
84 
85 }
86 
87 
88 Glib::ObjectBase* ValueDisplay_Class::wrap_new(GObject* o)
89 {
90  return manage(new ValueDisplay((GxValueDisplay*)(o)));
91 
92 }
93 
94 
95 /* The implementation: */
96 
97 ValueDisplay::ValueDisplay(const Glib::ConstructParams& construct_params)
98 :
99  Gxw::Regler(construct_params)
100 {
101  }
102 
104 :
105  Gxw::Regler((GxRegler*)(castitem))
106 {
107  }
108 
110 {
111  destroy_();
112 }
113 
114 ValueDisplay::CppClassType ValueDisplay::valuedisplay_class_; // initialize static member
115 
117 {
118  return valuedisplay_class_.init().get_type();
119 }
120 
121 
123 {
124  return gx_value_display_get_type();
125 }
126 
127 
129 :
130  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
131  Glib::ObjectBase(0),
132  Gxw::Regler(Glib::ConstructParams(valuedisplay_class_.init()))
133 {
134 
135 
136 }
137 
138 
139 } // namespace Gxw
140 
141 
Glib
Definition: bigknob.cc:41
cabinet_impulse_former::init
void init(int samplingFreq)
Definition: cabinet_impulse_former.cc:37
gx_value_display_get_type
GType gx_value_display_get_type(void)
Glib::wrap
Gxw::ValueDisplay * wrap(GxValueDisplay *object, bool take_copy)
Definition: valuedisplay.cc:44
Gxw::ValueDisplay::~ValueDisplay
virtual ~ValueDisplay()
Definition: valuedisplay.cc:109
Gxw::ValueDisplay::ValueDisplay
ValueDisplay()
Definition: valuedisplay.cc:128
Gxw::ValueDisplay::get_type
static GType get_type() G_GNUC_CONST
Definition: valuedisplay.cc:116
Gxw::ValueDisplay_Class::wrap_new
static Glib::ObjectBase * wrap_new(GObject *)
Definition: valuedisplay.cc:88
Gxw::ValueDisplay_Class
Definition: wrap_init.cc:108
Gxw
Definition: bigknob.cc:51
Gxw::ValueDisplay::get_base_type
static GType get_base_type() G_GNUC_CONST
Definition: valuedisplay.cc:122
Gxw::ValueDisplay
Definition: valuedisplay.h:43
GxRegler
struct _GxRegler GxRegler
Definition: regler.h:35
Gxw::Regler
Definition: regler.h:45
GxValueDisplay
struct _GxValueDisplay GxValueDisplay
Definition: valuedisplay.h:33