1 // Generated by gmmproc 2.64.2 -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <gxwmm/iredit.h>
7 #include <gxwmm/private/iredit_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/GxIREdit.h>
29 
30 namespace Gxw
31 {
32 
set_state(float * data,int chan,int data_len,int samplerate,int cutoff_low,int cutoff_high,int offset,const Gainline & gain)33 void IREdit::set_state(
34 	float *data, int chan, int data_len, int samplerate, int cutoff_low,
35 	int cutoff_high, int offset, const Gainline& gain)
36 {
37 	gx_ir_edit_set_state(
38 		gobj(), data, chan, data_len, samplerate, cutoff_low, cutoff_high,
39 		offset, gain.points(), gain.size());
40 }
41 
get_gain()42 Gainline IREdit::get_gain()
43 {
44 	gain_points* p;
45 	int n;
46 	gx_ir_edit_get_gain(gobj(), &p, &n);
47 	return Gainline(p, n);
48 }
49 
set_gain(const Gainline & g)50 void IREdit::set_gain(const Gainline& g)
51 {
52 	gx_ir_edit_set_gain(gobj(), g.points(), g.size());
53 }
54 
55 } // namespace Gxw
56 
57 namespace
58 {
59 
60 
IREdit_signal_delay_changed_callback(GxIREdit * self,gint p0,gint p1,void * data)61 static void IREdit_signal_delay_changed_callback(GxIREdit* self, gint p0,gint p1,void* data)
62 {
63   using namespace Gxw;
64   using SlotType = sigc::slot< void,int,int >;
65 
66   auto obj = dynamic_cast<IREdit*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
67   // Do not try to call a signal on a disassociated wrapper.
68   if(obj)
69   {
70     try
71     {
72       if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
73         (*static_cast<SlotType*>(slot))(p0
74 , p1
75 );
76     }
77     catch(...)
78     {
79        Glib::exception_handlers_invoke();
80     }
81   }
82 }
83 
84 static const Glib::SignalProxyInfo IREdit_signal_delay_changed_info =
85 {
86   "delay-changed",
87   (GCallback) &IREdit_signal_delay_changed_callback,
88   (GCallback) &IREdit_signal_delay_changed_callback
89 };
90 
91 
IREdit_signal_offset_changed_callback(GxIREdit * self,gint p0,gint p1,void * data)92 static void IREdit_signal_offset_changed_callback(GxIREdit* self, gint p0,gint p1,void* data)
93 {
94   using namespace Gxw;
95   using SlotType = sigc::slot< void,int,int >;
96 
97   auto obj = dynamic_cast<IREdit*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
98   // Do not try to call a signal on a disassociated wrapper.
99   if(obj)
100   {
101     try
102     {
103       if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
104         (*static_cast<SlotType*>(slot))(p0
105 , p1
106 );
107     }
108     catch(...)
109     {
110        Glib::exception_handlers_invoke();
111     }
112   }
113 }
114 
115 static const Glib::SignalProxyInfo IREdit_signal_offset_changed_info =
116 {
117   "offset-changed",
118   (GCallback) &IREdit_signal_offset_changed_callback,
119   (GCallback) &IREdit_signal_offset_changed_callback
120 };
121 
122 
IREdit_signal_length_changed_callback(GxIREdit * self,gint p0,gint p1,void * data)123 static void IREdit_signal_length_changed_callback(GxIREdit* self, gint p0,gint p1,void* data)
124 {
125   using namespace Gxw;
126   using SlotType = sigc::slot< void,int,int >;
127 
128   auto obj = dynamic_cast<IREdit*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
129   // Do not try to call a signal on a disassociated wrapper.
130   if(obj)
131   {
132     try
133     {
134       if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
135         (*static_cast<SlotType*>(slot))(p0
136 , p1
137 );
138     }
139     catch(...)
140     {
141        Glib::exception_handlers_invoke();
142     }
143   }
144 }
145 
146 static const Glib::SignalProxyInfo IREdit_signal_length_changed_info =
147 {
148   "length-changed",
149   (GCallback) &IREdit_signal_length_changed_callback,
150   (GCallback) &IREdit_signal_length_changed_callback
151 };
152 
153 
IREdit_signal_scale_max_reached_callback(GxIREdit * self,gboolean p0,void * data)154 static void IREdit_signal_scale_max_reached_callback(GxIREdit* self, gboolean p0,void* data)
155 {
156   using namespace Gxw;
157   using SlotType = sigc::slot< void,bool >;
158 
159   auto obj = dynamic_cast<IREdit*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
160   // Do not try to call a signal on a disassociated wrapper.
161   if(obj)
162   {
163     try
164     {
165       if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
166         (*static_cast<SlotType*>(slot))(p0
167 );
168     }
169     catch(...)
170     {
171        Glib::exception_handlers_invoke();
172     }
173   }
174 }
175 
176 static const Glib::SignalProxyInfo IREdit_signal_scale_max_reached_info =
177 {
178   "scale-max-reached",
179   (GCallback) &IREdit_signal_scale_max_reached_callback,
180   (GCallback) &IREdit_signal_scale_max_reached_callback
181 };
182 
183 
IREdit_signal_scale_min_reached_callback(GxIREdit * self,gboolean p0,void * data)184 static void IREdit_signal_scale_min_reached_callback(GxIREdit* self, gboolean p0,void* data)
185 {
186   using namespace Gxw;
187   using SlotType = sigc::slot< void,bool >;
188 
189   auto obj = dynamic_cast<IREdit*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
190   // Do not try to call a signal on a disassociated wrapper.
191   if(obj)
192   {
193     try
194     {
195       if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
196         (*static_cast<SlotType*>(slot))(p0
197 );
198     }
199     catch(...)
200     {
201        Glib::exception_handlers_invoke();
202     }
203   }
204 }
205 
206 static const Glib::SignalProxyInfo IREdit_signal_scale_min_reached_info =
207 {
208   "scale-min-reached",
209   (GCallback) &IREdit_signal_scale_min_reached_callback,
210   (GCallback) &IREdit_signal_scale_min_reached_callback
211 };
212 
213 
214 } // anonymous namespace
215 
216 
217 namespace Glib
218 {
219 
wrap(GxIREdit * object,bool take_copy)220 Gxw::IREdit* wrap(GxIREdit* object, bool take_copy)
221 {
222   return dynamic_cast<Gxw::IREdit *> (Glib::wrap_auto ((GObject*)(object), take_copy));
223 }
224 
225 } /* namespace Glib */
226 
227 namespace Gxw
228 {
229 
230 
231 /* The *_Class implementation: */
232 
init()233 const Glib::Class& IREdit_Class::init()
234 {
235   if(!gtype_) // create the GType if necessary
236   {
237     // Glib::Class has to know the class init function to clone custom types.
238     class_init_func_ = &IREdit_Class::class_init_function;
239 
240     // This is actually just optimized away, apparently with no harm.
241     // Make sure that the parent type has been created.
242     //CppClassParent::CppObjectType::get_type();
243 
244     // Create the wrapper type, with the same class/instance size as the base type.
245     register_derived_type(gx_ir_edit_get_type());
246 
247     // Add derived versions of interfaces, if the C type implements any interfaces:
248 
249   }
250 
251   return *this;
252 }
253 
254 
class_init_function(void * g_class,void * class_data)255 void IREdit_Class::class_init_function(void* g_class, void* class_data)
256 {
257   const auto klass = static_cast<BaseClassType*>(g_class);
258   CppClassParent::class_init_function(klass, class_data);
259 
260 
261 }
262 
263 
wrap_new(GObject * o)264 Glib::ObjectBase* IREdit_Class::wrap_new(GObject* o)
265 {
266   return manage(new IREdit((GxIREdit*)(o)));
267 
268 }
269 
270 
271 /* The implementation: */
272 
IREdit(const Glib::ConstructParams & construct_params)273 IREdit::IREdit(const Glib::ConstructParams& construct_params)
274 :
275   Gtk::DrawingArea(construct_params)
276 {
277   }
278 
IREdit(GxIREdit * castitem)279 IREdit::IREdit(GxIREdit* castitem)
280 :
281   Gtk::DrawingArea((GtkDrawingArea*)(castitem))
282 {
283   }
284 
285 
IREdit(IREdit && src)286 IREdit::IREdit(IREdit&& src) noexcept
287 : Gtk::DrawingArea(std::move(src))
288 {}
289 
operator =(IREdit && src)290 IREdit& IREdit::operator=(IREdit&& src) noexcept
291 {
292   Gtk::DrawingArea::operator=(std::move(src));
293   return *this;
294 }
295 
~IREdit()296 IREdit::~IREdit() noexcept
297 {
298   destroy_();
299 }
300 
301 IREdit::CppClassType IREdit::iredit_class_; // initialize static member
302 
get_type()303 GType IREdit::get_type()
304 {
305   return iredit_class_.init().get_type();
306 }
307 
308 
get_base_type()309 GType IREdit::get_base_type()
310 {
311   return gx_ir_edit_get_type();
312 }
313 
314 
IREdit()315 IREdit::IREdit()
316 :
317   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
318   Glib::ObjectBase(nullptr),
319   Gtk::DrawingArea(Glib::ConstructParams(iredit_class_.init()))
320 {
321 
322 
323 }
324 
set_ir_data(float * p1,int p2,int p3,int p4)325 void IREdit::set_ir_data(float* p1, int p2, int p3, int p4)
326 {
327   gx_ir_edit_set_ir_data(gobj(), p1, p2, p3, p4);
328 }
329 
home()330 void IREdit::home()
331 {
332   gx_ir_edit_home(gobj());
333 }
334 
jump_zoom_mark()335 void IREdit::jump_zoom_mark()
336 {
337   gx_ir_edit_jump_zoom_mark(gobj());
338 }
339 
set_channel(int p1)340 void IREdit::set_channel(int p1)
341 {
342   gx_ir_edit_set_channel(gobj(), p1);
343 }
344 
incr_scale(double p1)345 void IREdit::incr_scale(double p1)
346 {
347   gx_ir_edit_incr_scale(gobj(), p1);
348 }
349 
decr_scale(double p1)350 void IREdit::decr_scale(double p1)
351 {
352   gx_ir_edit_decr_scale(gobj(), p1);
353 }
354 
set_log(bool p1)355 void IREdit::set_log(bool p1)
356 {
357   gx_ir_edit_set_log(gobj(), static_cast<int>(p1));
358 }
359 
get_delay()360 int IREdit::get_delay()
361 {
362   return gx_ir_edit_get_delay(gobj());
363 }
364 
set_delay(int p1)365 void IREdit::set_delay(int p1)
366 {
367   gx_ir_edit_set_delay(gobj(), p1);
368 }
369 
get_offset()370 int IREdit::get_offset()
371 {
372   return gx_ir_edit_get_offset(gobj());
373 }
374 
set_offset(int p1)375 void IREdit::set_offset(int p1)
376 {
377   gx_ir_edit_set_offset(gobj(), p1);
378 }
379 
get_length()380 int IREdit::get_length()
381 {
382   return gx_ir_edit_get_length(gobj());
383 }
384 
set_length(int p1)385 void IREdit::set_length(int p1)
386 {
387   gx_ir_edit_set_length(gobj(), p1);
388 }
389 
390 
signal_delay_changed()391 Glib::SignalProxy< void,int,int > IREdit::signal_delay_changed()
392 {
393   return Glib::SignalProxy< void,int,int >(this, &IREdit_signal_delay_changed_info);
394 }
395 
396 
signal_offset_changed()397 Glib::SignalProxy< void,int,int > IREdit::signal_offset_changed()
398 {
399   return Glib::SignalProxy< void,int,int >(this, &IREdit_signal_offset_changed_info);
400 }
401 
402 
signal_length_changed()403 Glib::SignalProxy< void,int,int > IREdit::signal_length_changed()
404 {
405   return Glib::SignalProxy< void,int,int >(this, &IREdit_signal_length_changed_info);
406 }
407 
408 
signal_scale_max_reached()409 Glib::SignalProxy< void,bool > IREdit::signal_scale_max_reached()
410 {
411   return Glib::SignalProxy< void,bool >(this, &IREdit_signal_scale_max_reached_info);
412 }
413 
414 
signal_scale_min_reached()415 Glib::SignalProxy< void,bool > IREdit::signal_scale_min_reached()
416 {
417   return Glib::SignalProxy< void,bool >(this, &IREdit_signal_scale_min_reached_info);
418 }
419 
420 
property_y_border_top()421 Glib::PropertyProxy< int > IREdit::property_y_border_top()
422 {
423   return Glib::PropertyProxy< int >(this, "y-border-top");
424 }
425 
property_y_border_top() const426 Glib::PropertyProxy_ReadOnly< int > IREdit::property_y_border_top() const
427 {
428   return Glib::PropertyProxy_ReadOnly< int >(this, "y-border-top");
429 }
430 
property_y_border_bottom()431 Glib::PropertyProxy< int > IREdit::property_y_border_bottom()
432 {
433   return Glib::PropertyProxy< int >(this, "y-border-bottom");
434 }
435 
property_y_border_bottom() const436 Glib::PropertyProxy_ReadOnly< int > IREdit::property_y_border_bottom() const
437 {
438   return Glib::PropertyProxy_ReadOnly< int >(this, "y-border-bottom");
439 }
440 
property_x_border()441 Glib::PropertyProxy< int > IREdit::property_x_border()
442 {
443   return Glib::PropertyProxy< int >(this, "x-border");
444 }
445 
property_x_border() const446 Glib::PropertyProxy_ReadOnly< int > IREdit::property_x_border() const
447 {
448   return Glib::PropertyProxy_ReadOnly< int >(this, "x-border");
449 }
450 
property_label_sep()451 Glib::PropertyProxy< int > IREdit::property_label_sep()
452 {
453   return Glib::PropertyProxy< int >(this, "label-sep");
454 }
455 
property_label_sep() const456 Glib::PropertyProxy_ReadOnly< int > IREdit::property_label_sep() const
457 {
458   return Glib::PropertyProxy_ReadOnly< int >(this, "label-sep");
459 }
460 
property_dot_diameter()461 Glib::PropertyProxy< double > IREdit::property_dot_diameter()
462 {
463   return Glib::PropertyProxy< double >(this, "dot-diameter");
464 }
465 
property_dot_diameter() const466 Glib::PropertyProxy_ReadOnly< double > IREdit::property_dot_diameter() const
467 {
468   return Glib::PropertyProxy_ReadOnly< double >(this, "dot-diameter");
469 }
470 
property_segment_distance()471 Glib::PropertyProxy< double > IREdit::property_segment_distance()
472 {
473   return Glib::PropertyProxy< double >(this, "segment-distance");
474 }
475 
property_segment_distance() const476 Glib::PropertyProxy_ReadOnly< double > IREdit::property_segment_distance() const
477 {
478   return Glib::PropertyProxy_ReadOnly< double >(this, "segment-distance");
479 }
480 
property_limit()481 Glib::PropertyProxy< double > IREdit::property_limit()
482 {
483   return Glib::PropertyProxy< double >(this, "limit");
484 }
485 
property_limit() const486 Glib::PropertyProxy_ReadOnly< double > IREdit::property_limit() const
487 {
488   return Glib::PropertyProxy_ReadOnly< double >(this, "limit");
489 }
490 
property_fs() const491 Glib::PropertyProxy_ReadOnly< int > IREdit::property_fs() const
492 {
493   return Glib::PropertyProxy_ReadOnly< int >(this, "fs");
494 }
495 
property_max_scale_fact()496 Glib::PropertyProxy< double > IREdit::property_max_scale_fact()
497 {
498   return Glib::PropertyProxy< double >(this, "max-scale-fact");
499 }
500 
property_max_scale_fact() const501 Glib::PropertyProxy_ReadOnly< double > IREdit::property_max_scale_fact() const
502 {
503   return Glib::PropertyProxy_ReadOnly< double >(this, "max-scale-fact");
504 }
505 
property_min_scale()506 Glib::PropertyProxy< double > IREdit::property_min_scale()
507 {
508   return Glib::PropertyProxy< double >(this, "min-scale");
509 }
510 
property_min_scale() const511 Glib::PropertyProxy_ReadOnly< double > IREdit::property_min_scale() const
512 {
513   return Glib::PropertyProxy_ReadOnly< double >(this, "min-scale");
514 }
515 
property_scale()516 Glib::PropertyProxy< double > IREdit::property_scale()
517 {
518   return Glib::PropertyProxy< double >(this, "scale");
519 }
520 
property_scale() const521 Glib::PropertyProxy_ReadOnly< double > IREdit::property_scale() const
522 {
523   return Glib::PropertyProxy_ReadOnly< double >(this, "scale");
524 }
525 
property_no_data_text()526 Glib::PropertyProxy< Glib::ustring > IREdit::property_no_data_text()
527 {
528   return Glib::PropertyProxy< Glib::ustring >(this, "no-data-text");
529 }
530 
property_no_data_text() const531 Glib::PropertyProxy_ReadOnly< Glib::ustring > IREdit::property_no_data_text() const
532 {
533   return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "no-data-text");
534 }
535 
536 
537 } // namespace Gxw
538 
539 
540