Guitarix
playhead.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/playhead.h>
7 #include <gxwmm/private/playhead_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/GxPlayHead.h>
29 
30 
31 Gxw::PlayHead::PlayHead(Gtk::Adjustment& adjustment):
32  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
33  Glib::ObjectBase(0),
34  Gxw::Regler(Glib::ConstructParams(playhead_class_.init(), "adjustment",adjustment.gobj(), static_cast<char*>(0)))
35 {}
36 
37 namespace
38 {
39 } // anonymous namespace
40 
41 
42 namespace Glib
43 {
44 
45 Gxw::PlayHead* wrap(GxPlayHead* object, bool take_copy)
46 {
47  return dynamic_cast<Gxw::PlayHead *> (Glib::wrap_auto ((GObject*)(object), take_copy));
48 }
49 
50 } /* namespace Glib */
51 
52 namespace Gxw
53 {
54 
55 
56 /* The *_Class implementation: */
57 
58 const Glib::Class& PlayHead_Class::init()
59 {
60  if(!gtype_) // create the GType if necessary
61  {
62  // Glib::Class has to know the class init function to clone custom types.
63  class_init_func_ = &PlayHead_Class::class_init_function;
64 
65  // This is actually just optimized away, apparently with no harm.
66  // Make sure that the parent type has been created.
67  //CppClassParent::CppObjectType::get_type();
68 
69  // Create the wrapper type, with the same class/instance size as the base type.
70  register_derived_type(gx_play_head_get_type());
71 
72  // Add derived versions of interfaces, if the C type implements any interfaces:
73 
74  }
75 
76  return *this;
77 }
78 
79 
80 void PlayHead_Class::class_init_function(void* g_class, void* class_data)
81 {
82  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
83  CppClassParent::class_init_function(klass, class_data);
84 
85 
86 }
87 
88 
89 Glib::ObjectBase* PlayHead_Class::wrap_new(GObject* o)
90 {
91  return manage(new PlayHead((GxPlayHead*)(o)));
92 
93 }
94 
95 
96 /* The implementation: */
97 
98 PlayHead::PlayHead(const Glib::ConstructParams& construct_params)
99 :
100  Gxw::Regler(construct_params)
101 {
102  }
103 
105 :
106  Gxw::Regler((GxRegler*)(castitem))
107 {
108  }
109 
111 {
112  destroy_();
113 }
114 
115 PlayHead::CppClassType PlayHead::playhead_class_; // initialize static member
116 
118 {
119  return playhead_class_.init().get_type();
120 }
121 
122 
124 {
125  return gx_play_head_get_type();
126 }
127 
128 
130 :
131  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
132  Glib::ObjectBase(0),
133  Gxw::Regler(Glib::ConstructParams(playhead_class_.init()))
134 {
135 
136 
137 }
138 
139 
140 } // namespace Gxw
141 
142 
Glib
Definition: bigknob.cc:41
cabinet_impulse_former::init
void init(int samplingFreq)
Definition: cabinet_impulse_former.cc:37
Gxw::PlayHead
Definition: playhead.h:43
Gxw::PlayHead::get_base_type
static GType get_base_type() G_GNUC_CONST
Definition: playhead.cc:123
Gxw::PlayHead::get_type
static GType get_type() G_GNUC_CONST
Definition: playhead.cc:117
Gxw::PlayHead::~PlayHead
virtual ~PlayHead()
Definition: playhead.cc:110
Glib::wrap
Gxw::PlayHead * wrap(GxPlayHead *object, bool take_copy)
Definition: playhead.cc:45
gx_play_head_get_type
GType gx_play_head_get_type(void)
Gxw::PlayHead_Class::wrap_new
static Glib::ObjectBase * wrap_new(GObject *)
Definition: playhead.cc:89
Gxw
Definition: bigknob.cc:51
GxPlayHead
struct _GxPlayHead GxPlayHead
Definition: playhead.h:33
GxRegler
struct _GxRegler GxRegler
Definition: regler.h:35
Gxw::Regler
Definition: regler.h:45
Gxw::PlayHead_Class
Definition: wrap_init.cc:113
Gxw::PlayHead::PlayHead
PlayHead()
Definition: playhead.cc:129