Guitarix
waveview.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/waveview.h>
7 #include <gxwmm/private/waveview_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/GxWaveView.h>
29 
30 namespace
31 {
32 } // anonymous namespace
33 
34 
35 namespace Glib
36 {
37 
38 Gxw::WaveView* wrap(GxWaveView* object, bool take_copy)
39 {
40  return dynamic_cast<Gxw::WaveView *> (Glib::wrap_auto ((GObject*)(object), take_copy));
41 }
42 
43 } /* namespace Glib */
44 
45 namespace Gxw
46 {
47 
48 
49 /* The *_Class implementation: */
50 
51 const Glib::Class& WaveView_Class::init()
52 {
53  if(!gtype_) // create the GType if necessary
54  {
55  // Glib::Class has to know the class init function to clone custom types.
56  class_init_func_ = &WaveView_Class::class_init_function;
57 
58  // This is actually just optimized away, apparently with no harm.
59  // Make sure that the parent type has been created.
60  //CppClassParent::CppObjectType::get_type();
61 
62  // Create the wrapper type, with the same class/instance size as the base type.
63  register_derived_type(gx_wave_view_get_type());
64 
65  // Add derived versions of interfaces, if the C type implements any interfaces:
66 
67  }
68 
69  return *this;
70 }
71 
72 
73 void WaveView_Class::class_init_function(void* g_class, void* class_data)
74 {
75  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
76  CppClassParent::class_init_function(klass, class_data);
77 
78 
79 }
80 
81 
82 Glib::ObjectBase* WaveView_Class::wrap_new(GObject* o)
83 {
84  return manage(new WaveView((GxWaveView*)(o)));
85 
86 }
87 
88 
89 /* The implementation: */
90 
91 WaveView::WaveView(const Glib::ConstructParams& construct_params)
92 :
93  Gtk::DrawingArea(construct_params)
94 {
95  }
96 
98 :
99  Gtk::DrawingArea((GtkDrawingArea*)(castitem))
100 {
101  }
102 
104 {
105  destroy_();
106 }
107 
108 WaveView::CppClassType WaveView::waveview_class_; // initialize static member
109 
111 {
112  return waveview_class_.init().get_type();
113 }
114 
115 
117 {
118  return gx_wave_view_get_type();
119 }
120 
121 
123 :
124  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
125  Glib::ObjectBase(0),
126  Gtk::DrawingArea(Glib::ConstructParams(waveview_class_.init()))
127 {
128 
129 
130 }
131 
132 void WaveView::set_multiplicator(double p1, double p2)
133 {
134  gx_wave_view_set_multiplicator(gobj(), p1, p2);
135 }
136 
137 void WaveView::set_frame(const float* p1, int p2)
138 {
139  gx_wave_view_set_frame(gobj(), p1, p2);
140 }
141 
142 void WaveView::set_text(const Glib::ustring& p1, Gtk::CornerType p2)
143 {
144  gx_wave_view_set_text(gobj(), p1.c_str(), ((GtkCornerType)(p2)));
145 }
146 
147 
148 #ifdef GLIBMM_PROPERTIES_ENABLED
149 Glib::PropertyProxy< Glib::ustring > WaveView::property_text_top_left()
150 {
151  return Glib::PropertyProxy< Glib::ustring >(this, "text-top-left");
152 }
153 #endif //GLIBMM_PROPERTIES_ENABLED
154 
155 #ifdef GLIBMM_PROPERTIES_ENABLED
156 Glib::PropertyProxy_ReadOnly< Glib::ustring > WaveView::property_text_top_left() const
157 {
158  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "text-top-left");
159 }
160 #endif //GLIBMM_PROPERTIES_ENABLED
161 
162 #ifdef GLIBMM_PROPERTIES_ENABLED
163 Glib::PropertyProxy< Glib::ustring > WaveView::property_text_top_right()
164 {
165  return Glib::PropertyProxy< Glib::ustring >(this, "text-top-right");
166 }
167 #endif //GLIBMM_PROPERTIES_ENABLED
168 
169 #ifdef GLIBMM_PROPERTIES_ENABLED
170 Glib::PropertyProxy_ReadOnly< Glib::ustring > WaveView::property_text_top_right() const
171 {
172  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "text-top-right");
173 }
174 #endif //GLIBMM_PROPERTIES_ENABLED
175 
176 #ifdef GLIBMM_PROPERTIES_ENABLED
177 Glib::PropertyProxy< Glib::ustring > WaveView::property_text_bottom_left()
178 {
179  return Glib::PropertyProxy< Glib::ustring >(this, "text-bottom-left");
180 }
181 #endif //GLIBMM_PROPERTIES_ENABLED
182 
183 #ifdef GLIBMM_PROPERTIES_ENABLED
184 Glib::PropertyProxy_ReadOnly< Glib::ustring > WaveView::property_text_bottom_left() const
185 {
186  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "text-bottom-left");
187 }
188 #endif //GLIBMM_PROPERTIES_ENABLED
189 
190 #ifdef GLIBMM_PROPERTIES_ENABLED
191 Glib::PropertyProxy< Glib::ustring > WaveView::property_text_bottom_right()
192 {
193  return Glib::PropertyProxy< Glib::ustring >(this, "text-bottom-right");
194 }
195 #endif //GLIBMM_PROPERTIES_ENABLED
196 
197 #ifdef GLIBMM_PROPERTIES_ENABLED
198 Glib::PropertyProxy_ReadOnly< Glib::ustring > WaveView::property_text_bottom_right() const
199 {
200  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "text-bottom-right");
201 }
202 #endif //GLIBMM_PROPERTIES_ENABLED
203 
204 #ifdef GLIBMM_PROPERTIES_ENABLED
205 Glib::PropertyProxy< double > WaveView::property_text_pos_left()
206 {
207  return Glib::PropertyProxy< double >(this, "text-pos-left");
208 }
209 #endif //GLIBMM_PROPERTIES_ENABLED
210 
211 #ifdef GLIBMM_PROPERTIES_ENABLED
212 Glib::PropertyProxy_ReadOnly< double > WaveView::property_text_pos_left() const
213 {
214  return Glib::PropertyProxy_ReadOnly< double >(this, "text-pos-left");
215 }
216 #endif //GLIBMM_PROPERTIES_ENABLED
217 
218 #ifdef GLIBMM_PROPERTIES_ENABLED
219 Glib::PropertyProxy< double > WaveView::property_text_pos_right()
220 {
221  return Glib::PropertyProxy< double >(this, "text-pos-right");
222 }
223 #endif //GLIBMM_PROPERTIES_ENABLED
224 
225 #ifdef GLIBMM_PROPERTIES_ENABLED
226 Glib::PropertyProxy_ReadOnly< double > WaveView::property_text_pos_right() const
227 {
228  return Glib::PropertyProxy_ReadOnly< double >(this, "text-pos-right");
229 }
230 #endif //GLIBMM_PROPERTIES_ENABLED
231 
232 
233 } // namespace Gxw
234 
235 
virtual ~WaveView()
Definition: waveview.cc:103
void set_frame(const float *p1, int p2)
Definition: waveview.cc:137
void init(int samplingFreq)
void set_multiplicator(double p1, double p2)
Definition: waveview.cc:132
static GType get_type() G_GNUC_CONST
Definition: waveview.cc:110
GxWaveView * gobj()
Provides access to the underlying C GtkObject.
Definition: waveview.h:78
void set_text(const Glib::ustring &p1, Gtk::CornerType p2)
Definition: waveview.cc:142
Definition: bigknob.cc:51
static GType get_base_type() G_GNUC_CONST
Definition: waveview.cc:116
Gxw::BigKnob * wrap(GxBigKnob *object, bool take_copy)
Definition: bigknob.cc:44
GType gx_wave_view_get_type(void)
Definition: bigknob.cc:41
struct _GxWaveView GxWaveView
Definition: waveview.h:32