| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/navigation.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/navigation.h>cxx . . $ `<file>/gstreamer/gstreamermm/navigation.h`/ |
| 7 | #include <gstreamermm/private/navigation_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/navigation_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 | #include <gstreamermm/structure.h>cxx . . $ `<file>/gstreamer/gstreamermm/structure.h`/ |
| 30 | #include <gst/video/video-enumtypes.h> |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | void Navigation_Classcxx . . $ Gst/Navigation_Class#::send_event_vfunc_callbackcxx . . $ Gst/Navigation_Class#send_event_vfunc_callback(b003d7dba34dd7d2).(GstNavigationcxx . . $ GstNavigation#* self, GstStructure* structure) |
| 36 | { |
| 37 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 38 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 39 | |
| 40 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 41 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 42 | // generated classes can use this optimisation, which avoids the unnecessary |
| 43 | // parameter conversions if there is no possibility of the virtual function |
| 44 | // being overridden: |
| 45 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 46 | { |
| 47 | CppObjectTypecxx . . $ Gst/Navigation_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Navigation_Class#CppObjectType#* const>(obj_base); |
| 48 | if(obj) // This can be NULL during destruction. |
| 49 | { |
| 50 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 51 | { |
| 52 | // Call the virtual member method, which derived classes might override. |
| 53 | obj->send_event_vfunccxx . . $ Gst/Navigation#send_event_vfunc(1ee7a862bcd63096).(Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#(structure)); |
| 54 | return; |
| 55 | } |
| 56 | catch(...) |
| 57 | { |
| 58 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | BaseClassTypecxx . . $ Gst/Navigation_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Navigation_Class#BaseClassType#*>( |
| 64 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 65 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self), CppObjectTypecxx . . $ Gst/Navigation_Class#CppObjectType#::get_typecxx . . $ Gst/Navigation#get_type(f708dce9a8856c70).()) // Get the interface. |
| 66 | ) ); |
| 67 | |
| 68 | // Call the original underlying C function: |
| 69 | if(base && base->send_eventcxx . . $ _GstNavigationInterface#send_event.) |
| 70 | (*base->send_eventcxx . . $ _GstNavigationInterface#send_event.)(self, structure); |
| 71 | |
| 72 | } |
| 73 | void Gstcxx . . $ Gst/::Navigationcxx . . $ Gst/Navigation#::send_event_vfunccxx . . $ Gst/Navigation#send_event_vfunc(1ee7a862bcd63096).(Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#&& structure) |
| 74 | { |
| 75 | BaseClassTypecxx . . $ Gst/Navigation#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Navigation#BaseClassType#*>( |
| 76 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 77 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_), CppObjectTypecxx . . $ Gst/Navigation#CppObjectType#::get_typecxx . . $ Gst/Navigation#get_type(f708dce9a8856c70).()) // Get the interface. |
| 78 | ) ); |
| 79 | |
| 80 | if(base && base->send_eventcxx . . $ _GstNavigationInterface#send_event.) |
| 81 | (*base->send_eventcxx . . $ _GstNavigationInterface#send_event.)(gobjcxx . . $ Gst/Navigation#gobj(202fc8c4db7ee04d).(), structure ? structure.releasecxx . . $ Gst/Structure#release(2691563db4321b22).() : nullptr); |
| 82 | } |
| 83 | |
| 84 | } // namespace Gst |
| 85 | |
| 86 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/navigation.cc`/ |
| 87 | { |
| 88 | } // anonymous namespace |
| 89 | |
| 90 | // static |
| 91 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::NavigationCommand>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 92 | { |
| 93 | return gst_navigation_command_get_type(); |
| 94 | } |
| 95 | |
| 96 | // static |
| 97 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::NavigationEventType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 98 | { |
| 99 | return gst_navigation_event_type_get_type(); |
| 100 | } |
| 101 | |
| 102 | // static |
| 103 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::NavigationMessageType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 104 | { |
| 105 | return gst_navigation_message_type_get_type(); |
| 106 | } |
| 107 | |
| 108 | // static |
| 109 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::NavigationQueryType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 110 | { |
| 111 | return gst_navigation_query_type_get_type(); |
| 112 | } |
| 113 | |
| 114 | |
| 115 | namespace Glibcxx . . $ Glib/ |
| 116 | { |
| 117 | |
| 118 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Navigationcxx . . $ Gst/Navigation#> wrapcxx . . $ Glib/wrap(c28bfe15ea7a7c56).(GstNavigationcxx . . $ GstNavigation#* object, bool take_copy) |
| 119 | { |
| 120 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Navigationcxx . . $ Gst/Navigation#>( dynamic_cast<Gstcxx . . $ Gst/::Navigationcxx . . $ Gst/Navigation#*> (Glibcxx . . $ Glib/::wrap_auto_interfacecxx . . $ Glib/wrap_auto_interface(895573aecd4fc9a4).<Gstcxx . . $ Gst/::Navigationcxx . . $ Gst/Navigation#> ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 121 | //We use dynamic_cast<> in case of multiple inheritance. |
| 122 | } |
| 123 | |
| 124 | } // namespace Glib |
| 125 | |
| 126 | |
| 127 | namespace Gstcxx . . $ Gst/ |
| 128 | { |
| 129 | |
| 130 | |
| 131 | /* The *_Class implementation: */ |
| 132 | |
| 133 | const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& Navigation_Classcxx . . $ Gst/Navigation_Class#::initcxx . . $ Gst/Navigation_Class#init(abc04d6bda8aa5b8).() |
| 134 | { |
| 135 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 136 | { |
| 137 | // Glib::Interface_Class has to know the interface init function |
| 138 | // in order to add interfaces to implementing types. |
| 139 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &Navigation_Classcxx . . $ Gst/Navigation_Class#::iface_init_functioncxx . . $ Gst/Navigation_Class#iface_init_function(6c58c5e2437d25a2).; |
| 140 | |
| 141 | // We can not derive from another interface, and it is not necessary anyway. |
| 142 | gtype_cxx . . $ Glib/Class#gtype_. = gst_navigation_get_type(); |
| 143 | } |
| 144 | |
| 145 | return *this; |
| 146 | } |
| 147 | |
| 148 | void Navigation_Classcxx . . $ Gst/Navigation_Class#::iface_init_functioncxx . . $ Gst/Navigation_Class#iface_init_function(6c58c5e2437d25a2).(void* g_iface, void*) |
| 149 | { |
| 150 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/Navigation_Class#BaseClassType#*>(g_iface); |
| 151 | |
| 152 | //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect. |
| 153 | //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc |
| 154 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`!(klass != nullptr); |
| 155 | |
| 156 | klass->send_eventcxx . . $ _GstNavigationInterface#send_event. = &send_event_vfunc_callbackcxx . . $ Gst/Navigation_Class#send_event_vfunc_callback(b003d7dba34dd7d2).; |
| 157 | |
| 158 | } |
| 159 | |
| 160 | |
| 161 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* Navigation_Classcxx . . $ Gst/Navigation_Class#::wrap_newcxx . . $ Gst/Navigation_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 162 | { |
| 163 | return new Navigationcxx . . $ Gst/Navigation#((GstNavigationcxx . . $ GstNavigation#*)(object)); |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /* The implementation: */ |
| 168 | |
| 169 | Navigationcxx . . $ Gst/Navigation#::Navigationcxx . . $ Gst/Navigation#Navigation(49f6e7a06ebc5aa8).() |
| 170 | : |
| 171 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(navigation_class_cxx . . $ Gst/Navigation#navigation_class_..initcxx . . $ Gst/Navigation_Class#init(abc04d6bda8aa5b8).()) |
| 172 | {} |
| 173 | |
| 174 | Navigationcxx . . $ Gst/Navigation#::Navigationcxx . . $ Gst/Navigation#Navigation(c8f1dae32fa4168e).(GstNavigationcxx . . $ GstNavigation#* castitem) |
| 175 | : |
| 176 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#((GObjectcxx . . $ GObject#*)(castitem)) |
| 177 | {} |
| 178 | |
| 179 | Navigationcxx . . $ Gst/Navigation#::Navigationcxx . . $ Gst/Navigation#Navigation(2ae54c1e3e0dc4a8).(const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& interface_class) |
| 180 | : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(interface_class) |
| 181 | { |
| 182 | } |
| 183 | |
| 184 | Navigationcxx . . $ Gst/Navigation#::Navigationcxx . . $ Gst/Navigation#Navigation(d765f22ed1812d57).(Navigationcxx . . $ Gst/Navigation#&& src) noexcept |
| 185 | : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 186 | {} |
| 187 | |
| 188 | Navigationcxx . . $ Gst/Navigation#& Navigationcxx . . $ Gst/Navigation#::operatorcxx . . $ Gst/Navigation#`operator=`(29807930d07e1c82).=(Navigationcxx . . $ Gst/Navigation#&& src) noexcept |
| 189 | { |
| 190 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 191 | return *this; |
| 192 | } |
| 193 | |
| 194 | Navigationcxx . . $ Gst/Navigation#::~cxx . . $ Gst/Navigation#`~Navigation`(ced63f7c635d850d).Navigationcxx . . $ Gst/Navigation#() noexcept |
| 195 | {} |
| 196 | |
| 197 | // static |
| 198 | void Navigationcxx . . $ Gst/Navigation#::add_interfacecxx . . $ Gst/Navigation#add_interface(2c44cd906ae4e829).(GType gtype_implementer) |
| 199 | { |
| 200 | navigation_class_cxx . . $ Gst/Navigation#navigation_class_..initcxx . . $ Gst/Navigation_Class#init(abc04d6bda8aa5b8).().add_interfacecxx . . $ Glib/Interface_Class#add_interface(cf8bf0a838713cc4).(gtype_implementer); |
| 201 | } |
| 202 | |
| 203 | Navigationcxx . . $ Gst/Navigation#::CppClassTypecxx . . $ Gst/Navigation#CppClassType# Navigationcxx . . $ Gst/Navigation#::navigation_class_cxx . . $ Gst/Navigation#navigation_class_.; // initialize static member |
| 204 | |
| 205 | GType Navigationcxx . . $ Gst/Navigation#::get_typecxx . . $ Gst/Navigation#get_type(f708dce9a8856c70).() |
| 206 | { |
| 207 | return navigation_class_cxx . . $ Gst/Navigation#navigation_class_..initcxx . . $ Gst/Navigation_Class#init(abc04d6bda8aa5b8).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 208 | } |
| 209 | |
| 210 | |
| 211 | GType Navigationcxx . . $ Gst/Navigation#::get_base_typecxx . . $ Gst/Navigation#get_base_type(f708dce9a8856c70).() |
| 212 | { |
| 213 | return gst_navigation_get_type(); |
| 214 | } |
| 215 | |
| 216 | |
| 217 | void Navigationcxx . . $ Gst/Navigation#::send_eventcxx . . $ Gst/Navigation#send_event(f791e69c8ffee142).(Gstcxx . . $ Gst/::Structurecxx . . $ Gst/Structure#& structure) |
| 218 | { |
| 219 | gst_navigation_send_event(gobjcxx . . $ Gst/Navigation#gobj(202fc8c4db7ee04d).(), structure.gobjcxx . . $ Gst/Structure#gobj(f801621683f3ec38).()); |
| 220 | } |
| 221 | |
| 222 | void Navigationcxx . . $ Gst/Navigation#::send_key_eventcxx . . $ Gst/Navigation#send_key_event(a774a3a463cfc512).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& event, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& key) |
| 223 | { |
| 224 | gst_navigation_send_key_event(gobjcxx . . $ Gst/Navigation#gobj(202fc8c4db7ee04d).(), event.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), key.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()); |
| 225 | } |
| 226 | |
| 227 | void Navigationcxx . . $ Gst/Navigation#::send_mouse_eventcxx . . $ Gst/Navigation#send_mouse_event(7786f1381950ee0b).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& event, int button, double x, double y) |
| 228 | { |
| 229 | gst_navigation_send_mouse_event(gobjcxx . . $ Gst/Navigation#gobj(202fc8c4db7ee04d).(), event.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), button, x, y); |
| 230 | } |
| 231 | |
| 232 | void Navigationcxx . . $ Gst/Navigation#::send_commandcxx . . $ Gst/Navigation#send_command(24e12f4e7defb4ba).(Gstcxx . . $ Gst/::NavigationCommandcxx . . $ Gst/NavigationCommand# command) |
| 233 | { |
| 234 | gst_navigation_send_command(gobjcxx . . $ Gst/Navigation#gobj(202fc8c4db7ee04d).(), ((GstNavigationCommand)(command))); |
| 235 | } |
| 236 | |
| 237 | |
| 238 | } // namespace Gst |
| 239 | |
| 240 |