| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/colorbalancechannel.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/colorbalancechannel.h>cxx . . $ `<file>/gstreamer/gstreamermm/colorbalancechannel.h`/ |
| 7 | #include <gstreamermm/private/colorbalancechannel_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/colorbalancechannel_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 The gstreamermm Development Team |
| 13 | * |
| 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. |
| 18 | * |
| 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. |
| 23 | * |
| 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. |
| 27 | */ |
| 28 | |
| 29 | |
| 30 | #include <gst/video/colorbalancechannel.h> |
| 31 | |
| 32 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ |
| 33 | { |
| 34 | |
| 35 | |
| 36 | static void ColorBalanceChannel_signal_value_changed_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_callback(f262ed0cbb8f4d14).(GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#* self, gint p0,void* data) |
| 37 | { |
| 38 | using namespace Gst; |
| 39 | using SlotTypecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_callback(f262ed0cbb8f4d14).SlotType# = sigccxx . . $ sigc/::slotcxx . . $ sigc/slot#< void,int >; |
| 40 | |
| 41 | auto obj = dynamic_cast<ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#*>(Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*) self)); |
| 42 | // Do not try to call a signal on a disassociated wrapper. |
| 43 | if(obj) |
| 44 | { |
| 45 | try |
| 46 | { |
| 47 | if(const auto slot = Glibcxx . . $ Glib/::SignalProxyNormalcxx . . $ Glib/SignalProxyNormal#::data_to_slotcxx . . $ Glib/SignalProxyBase#data_to_slot(1b18816c898558ea).(data)) |
| 48 | (*static_cast<SlotTypecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_callback(f262ed0cbb8f4d14).SlotType#*>(slot))(cxx . . $ sigc/slot1#`operator()`(9ee06a69519573d9).p0 |
| 49 | ); |
| 50 | } |
| 51 | catch(...) |
| 52 | { |
| 53 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | static const Glibcxx . . $ Glib/::SignalProxyInfocxx . . $ Glib/SignalProxyInfo# ColorBalanceChannel_signal_value_changed_infocxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_info. = |
| 59 | { |
| 60 | "value-changed", |
| 61 | (GCallback) &ColorBalanceChannel_signal_value_changed_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_callback(f262ed0cbb8f4d14)., |
| 62 | (GCallback) &ColorBalanceChannel_signal_value_changed_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_callback(f262ed0cbb8f4d14). |
| 63 | }; |
| 64 | |
| 65 | |
| 66 | } // anonymous namespace |
| 67 | |
| 68 | |
| 69 | namespace Glibcxx . . $ Glib/ |
| 70 | { |
| 71 | |
| 72 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#> wrapcxx . . $ Glib/wrap(c685fe8f95bdb1c).(GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#* object, bool take_copy) |
| 73 | { |
| 74 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#>( dynamic_cast<Gstcxx . . $ Gst/::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 75 | //We use dynamic_cast<> in case of multiple inheritance. |
| 76 | } |
| 77 | |
| 78 | } /* namespace Glib */ |
| 79 | |
| 80 | |
| 81 | namespace Gstcxx . . $ Gst/ |
| 82 | { |
| 83 | |
| 84 | |
| 85 | /* The *_Class implementation: */ |
| 86 | |
| 87 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& ColorBalanceChannel_Classcxx . . $ Gst/ColorBalanceChannel_Class#::initcxx . . $ Gst/ColorBalanceChannel_Class#init(bf348c0cd369184d).() |
| 88 | { |
| 89 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 90 | { |
| 91 | // Glib::Class has to know the class init function to clone custom types. |
| 92 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &ColorBalanceChannel_Classcxx . . $ Gst/ColorBalanceChannel_Class#::class_init_functioncxx . . $ Gst/ColorBalanceChannel_Class#class_init_function(6c58c5e2437d25a2).; |
| 93 | |
| 94 | // This is actually just optimized away, apparently with no harm. |
| 95 | // Make sure that the parent type has been created. |
| 96 | //CppClassParent::CppObjectType::get_type(); |
| 97 | |
| 98 | // Create the wrapper type, with the same class/instance size as the base type. |
| 99 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_color_balance_channel_get_type()); |
| 100 | |
| 101 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 102 | |
| 103 | } |
| 104 | |
| 105 | return *this; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | void ColorBalanceChannel_Classcxx . . $ Gst/ColorBalanceChannel_Class#::class_init_functioncxx . . $ Gst/ColorBalanceChannel_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 110 | { |
| 111 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/ColorBalanceChannel_Class#BaseClassType#*>(g_class); |
| 112 | CppClassParentcxx . . $ Gst/ColorBalanceChannel_Class#CppClassParent#::class_init_functioncxx . . $ Glib/Object_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 113 | |
| 114 | |
| 115 | klass->value_changedcxx . . $ _GstColorBalanceChannelClass#value_changed. = &value_changed_callbackcxx . . $ Gst/ColorBalanceChannel_Class#value_changed_callback(7608ae742dbdc90e).; |
| 116 | } |
| 117 | |
| 118 | |
| 119 | void ColorBalanceChannel_Classcxx . . $ Gst/ColorBalanceChannel_Class#::value_changed_callbackcxx . . $ Gst/ColorBalanceChannel_Class#value_changed_callback(7608ae742dbdc90e).(GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#* self, gint p0) |
| 120 | { |
| 121 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 122 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 123 | |
| 124 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 125 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 126 | // generated classes can use this optimisation, which avoids the unnecessary |
| 127 | // parameter conversions if there is no possibility of the virtual function |
| 128 | // being overridden: |
| 129 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 130 | { |
| 131 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/ColorBalanceChannel_Class#CppObjectType#* const>(obj_base); |
| 132 | if(obj) // This can be NULL during destruction. |
| 133 | { |
| 134 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 135 | { |
| 136 | // Call the virtual member method, which derived classes might override. |
| 137 | obj->on_value_changedcxx . . $ Gst/ColorBalanceChannel#on_value_changed(d4f767463ce0a6b3).(p0 |
| 138 | ); |
| 139 | return; |
| 140 | } |
| 141 | catch(...) |
| 142 | { |
| 143 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/ColorBalanceChannel_Class#BaseClassType#*>( |
| 149 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 150 | ); |
| 151 | |
| 152 | // Call the original underlying C function: |
| 153 | if(base && base->value_changedcxx . . $ _GstColorBalanceChannelClass#value_changed.) |
| 154 | (*base->value_changedcxx . . $ _GstColorBalanceChannelClass#value_changed.)(self, p0); |
| 155 | } |
| 156 | |
| 157 | |
| 158 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* ColorBalanceChannel_Classcxx . . $ Gst/ColorBalanceChannel_Class#::wrap_newcxx . . $ Gst/ColorBalanceChannel_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 159 | { |
| 160 | return new ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#((GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#*)object); |
| 161 | } |
| 162 | |
| 163 | |
| 164 | /* The implementation: */ |
| 165 | |
| 166 | GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#* ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::gobj_copycxx . . $ Gst/ColorBalanceChannel#gobj_copy(d4837a877d11c94f).() |
| 167 | { |
| 168 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 169 | return gobjcxx . . $ Gst/ColorBalanceChannel#gobj(d4837a877d11c94f).(); |
| 170 | } |
| 171 | |
| 172 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#ColorBalanceChannel(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 173 | : |
| 174 | Glibcxx . . $ Glib/::Objectcxx . . $ Glib/Object#(construct_params) |
| 175 | { |
| 176 | |
| 177 | } |
| 178 | |
| 179 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#ColorBalanceChannel(1a100cd6009b0ab4).(GstColorBalanceChannelcxx . . $ GstColorBalanceChannel#* castitem) |
| 180 | : |
| 181 | Glibcxx . . $ Glib/::Objectcxx . . $ Glib/Object#((GObjectcxx . . $ GObject#*)(castitem)) |
| 182 | {} |
| 183 | |
| 184 | |
| 185 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#ColorBalanceChannel(d492aa10688c3af8).(ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#&& src) noexcept |
| 186 | : Glibcxx . . $ Glib/::Objectcxx . . $ Glib/Object#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 187 | {} |
| 188 | |
| 189 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#& ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::operatorcxx . . $ Gst/ColorBalanceChannel#`operator=`(43d1132577a12f35).=(ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#&& src) noexcept |
| 190 | { |
| 191 | Glibcxx . . $ Glib/::Objectcxx . . $ Glib/Object#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 192 | return *this; |
| 193 | } |
| 194 | |
| 195 | |
| 196 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::~cxx . . $ Gst/ColorBalanceChannel#`~ColorBalanceChannel`(ced63f7c635d850d).ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#() noexcept |
| 197 | {} |
| 198 | |
| 199 | |
| 200 | ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::CppClassTypecxx . . $ Gst/ColorBalanceChannel#CppClassType# ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::colorbalancechannel_class_cxx . . $ Gst/ColorBalanceChannel#colorbalancechannel_class_.; // initialize static member |
| 201 | |
| 202 | GType ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::get_typecxx . . $ Gst/ColorBalanceChannel#get_type(f708dce9a8856c70).() |
| 203 | { |
| 204 | return colorbalancechannel_class_cxx . . $ Gst/ColorBalanceChannel#colorbalancechannel_class_..initcxx . . $ Gst/ColorBalanceChannel_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 205 | } |
| 206 | |
| 207 | |
| 208 | GType ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::get_base_typecxx . . $ Gst/ColorBalanceChannel#get_base_type(f708dce9a8856c70).() |
| 209 | { |
| 210 | return gst_color_balance_channel_get_type(); |
| 211 | } |
| 212 | |
| 213 | |
| 214 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::get_labelcxx . . $ Gst/ColorBalanceChannel#get_label(fff0f585954e56f3).() const |
| 215 | { |
| 216 | return Glibcxx . . $ Glib/::convert_const_gchar_ptr_to_ustringcxx . . $ Glib/convert_const_gchar_ptr_to_ustring(cf5f32d7f0671127).(gobjcxx . . $ Gst/ColorBalanceChannel#gobj(d2345a18c860dd73).()->labelcxx . . $ _GstColorBalanceChannel#label.); |
| 217 | } |
| 218 | |
| 219 | int ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::get_min_valuecxx . . $ Gst/ColorBalanceChannel#get_min_value(455f465bc33b4cdf).() const |
| 220 | { |
| 221 | return gobjcxx . . $ Gst/ColorBalanceChannel#gobj(d2345a18c860dd73).()->min_valuecxx . . $ _GstColorBalanceChannel#min_value.; |
| 222 | } |
| 223 | |
| 224 | int ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::get_max_valuecxx . . $ Gst/ColorBalanceChannel#get_max_value(455f465bc33b4cdf).() const |
| 225 | { |
| 226 | return gobjcxx . . $ Gst/ColorBalanceChannel#gobj(d2345a18c860dd73).()->max_valuecxx . . $ _GstColorBalanceChannel#max_value.; |
| 227 | } |
| 228 | |
| 229 | |
| 230 | Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void,int > ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::signal_value_changedcxx . . $ Gst/ColorBalanceChannel#signal_value_changed(3ef21198a019bfc3).() |
| 231 | { |
| 232 | return Glibcxx . . $ Glib/SignalProxy#SignalProxy(99c0b07349c102a).::SignalProxycxx . . $ Glib/SignalProxy#< void,int >(this, &ColorBalanceChannel_signal_value_changed_infocxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/colorbalancechannel.cc`/ColorBalanceChannel_signal_value_changed_info.); |
| 233 | } |
| 234 | |
| 235 | |
| 236 | void Gstcxx . . $ Gst/::ColorBalanceChannelcxx . . $ Gst/ColorBalanceChannel#::on_value_changedcxx . . $ Gst/ColorBalanceChannel#on_value_changed(d4f767463ce0a6b3).(int value) |
| 237 | { |
| 238 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/ColorBalanceChannel#BaseClassType#*>( |
| 239 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 240 | ); |
| 241 | |
| 242 | if(base && base->value_changedcxx . . $ _GstColorBalanceChannelClass#value_changed.) |
| 243 | (*base->value_changedcxx . . $ _GstColorBalanceChannelClass#value_changed.)(gobjcxx . . $ Gst/ColorBalanceChannel#gobj(d4837a877d11c94f).(),value); |
| 244 | } |
| 245 | |
| 246 | |
| 247 | } // namespace Gst |
| 248 | |
| 249 |