Debian Codegraph @

gstreamer/gstreamermm/streamvolume.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/streamvolume.cc`/
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/streamvolume.h>cxx . . $ `<file>/gstreamer/gstreamermm/streamvolume.h`/
7 #include <gstreamermm/private/streamvolume_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/streamvolume_p.h`/
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 2009 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 <gst/video/video-enumtypes.h>
30
31 namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/streamvolume.cc`/
32 {
33 } // anonymous namespace
34
35
36 namespace Glibcxx . . $ Glib/
37 {
38
39 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::StreamVolumecxx . . $ Gst/StreamVolume#> wrapcxx . . $ Glib/wrap(c27cb9f5be49a3ce).(GstStreamVolumecxx . . $ GstStreamVolume#* object, bool take_copy)
40 {
41 return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::StreamVolumecxx . . $ Gst/StreamVolume#>( dynamic_cast<Gstcxx . . $ Gst/::StreamVolumecxx . . $ Gst/StreamVolume#*> (Glibcxx . . $ Glib/::wrap_auto_interfacecxx . . $ Glib/wrap_auto_interface(895573aecd4fc9a4).<Gstcxx . . $ Gst/::StreamVolumecxx . . $ Gst/StreamVolume#> ((GObjectcxx . . $ GObject#*)(object), take_copy)) );
42 //We use dynamic_cast<> in case of multiple inheritance.
43 }
44
45 } // namespace Glib
46
47
48 namespace Gstcxx . . $ Gst/
49 {
50
51
52 /* The *_Class implementation: */
53
54 const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#::initcxx . . $ Gst/StreamVolume_Class#init(abc04d6bda8aa5b8).()
55 {
56 if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary
57 {
58 // Glib::Interface_Class has to know the interface init function
59 // in order to add interfaces to implementing types.
60 class_init_func_cxx . . $ Glib/Class#class_init_func_. = &StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#::iface_init_functioncxx . . $ Gst/StreamVolume_Class#iface_init_function(6c58c5e2437d25a2).;
61
62 // We can not derive from another interface, and it is not necessary anyway.
63 gtype_cxx . . $ Glib/Class#gtype_. = gst_stream_volume_get_type();
64 }
65
66 return *this;
67 }
68
69 void StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#::iface_init_functioncxx . . $ Gst/StreamVolume_Class#iface_init_function(6c58c5e2437d25a2).(void* g_iface, void*)
70 {
71 const auto klass = static_cast<BaseClassTypecxx . . $ Gst/StreamVolume_Class#BaseClassType#*>(g_iface);
72
73 //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
74 //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
75 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`!(klass != nullptr);
76
77
78 }
79
80
81 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#::wrap_newcxx . . $ Gst/StreamVolume_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object)
82 {
83 return new StreamVolumecxx . . $ Gst/StreamVolume#((GstStreamVolumecxx . . $ GstStreamVolume#*)(object));
84 }
85
86
87 /* The implementation: */
88
89 StreamVolumecxx . . $ Gst/StreamVolume#::StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(49f6e7a06ebc5aa8).()
90 :
91 Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(streamvolume_class_cxx . . $ Gst/StreamVolume#streamvolume_class_..initcxx . . $ Gst/StreamVolume_Class#init(abc04d6bda8aa5b8).())
92 {}
93
94 StreamVolumecxx . . $ Gst/StreamVolume#::StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(1de901533b52ee48).(GstStreamVolumecxx . . $ GstStreamVolume#* castitem)
95 :
96 Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#((GObjectcxx . . $ GObject#*)(castitem))
97 {}
98
99 StreamVolumecxx . . $ Gst/StreamVolume#::StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(2ae54c1e3e0dc4a8).(const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& interface_class)
100 : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(interface_class)
101 {
102 }
103
104 StreamVolumecxx . . $ Gst/StreamVolume#::StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(86fe5bf3a9c56e65).(StreamVolumecxx . . $ Gst/StreamVolume#&& src) noexcept
105 : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src))
106 {}
107
108 StreamVolumecxx . . $ Gst/StreamVolume#& StreamVolumecxx . . $ Gst/StreamVolume#::operatorcxx . . $ Gst/StreamVolume#`operator=`(8ce1c94e06336546).=(StreamVolumecxx . . $ Gst/StreamVolume#&& src) noexcept
109 {
110 Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src));
111 return *this;
112 }
113
114 StreamVolumecxx . . $ Gst/StreamVolume#::~cxx . . $ Gst/StreamVolume#`~StreamVolume`(ced63f7c635d850d).StreamVolumecxx . . $ Gst/StreamVolume#() noexcept
115 {}
116
117 // static
118 void StreamVolumecxx . . $ Gst/StreamVolume#::add_interfacecxx . . $ Gst/StreamVolume#add_interface(2c44cd906ae4e829).(GType gtype_implementer)
119 {
120 streamvolume_class_cxx . . $ Gst/StreamVolume#streamvolume_class_..initcxx . . $ Gst/StreamVolume_Class#init(abc04d6bda8aa5b8).().add_interfacecxx . . $ Glib/Interface_Class#add_interface(cf8bf0a838713cc4).(gtype_implementer);
121 }
122
123 StreamVolumecxx . . $ Gst/StreamVolume#::CppClassTypecxx . . $ Gst/StreamVolume#CppClassType# StreamVolumecxx . . $ Gst/StreamVolume#::streamvolume_class_cxx . . $ Gst/StreamVolume#streamvolume_class_.; // initialize static member
124
125 GType StreamVolumecxx . . $ Gst/StreamVolume#::get_typecxx . . $ Gst/StreamVolume#get_type(f708dce9a8856c70).()
126 {
127 return streamvolume_class_cxx . . $ Gst/StreamVolume#streamvolume_class_..initcxx . . $ Gst/StreamVolume_Class#init(abc04d6bda8aa5b8).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).();
128 }
129
130
131 GType StreamVolumecxx . . $ Gst/StreamVolume#::get_base_typecxx . . $ Gst/StreamVolume#get_base_type(f708dce9a8856c70).()
132 {
133 return gst_stream_volume_get_type();
134 }
135
136
137 double StreamVolumecxx . . $ Gst/StreamVolume#::get_volumecxx . . $ Gst/StreamVolume#get_volume(95724c082abe79e4).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# format)
138 {
139 return gst_stream_volume_get_volume(gobjcxx . . $ Gst/StreamVolume#gobj(813e66bc8a17a17).(), ((GstStreamVolumeFormat)(format)));
140 }
141
142 void StreamVolumecxx . . $ Gst/StreamVolume#::set_volumecxx . . $ Gst/StreamVolume#set_volume(7ac87ad860c7e4de).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# format, double val)
143 {
144 gst_stream_volume_set_volume(gobjcxx . . $ Gst/StreamVolume#gobj(813e66bc8a17a17).(), ((GstStreamVolumeFormat)(format)), val);
145 }
146
147 bool StreamVolumecxx . . $ Gst/StreamVolume#::get_mutecxx . . $ Gst/StreamVolume#get_mute(c9857a73d68e59ba).()
148 {
149 return gst_stream_volume_get_mute(gobjcxx . . $ Gst/StreamVolume#gobj(813e66bc8a17a17).());
150 }
151
152 void StreamVolumecxx . . $ Gst/StreamVolume#::set_mutecxx . . $ Gst/StreamVolume#set_mute(b45ddcbc8423892c).(bool mute)
153 {
154 gst_stream_volume_set_mute(gobjcxx . . $ Gst/StreamVolume#gobj(813e66bc8a17a17).(), static_cast<int>(mute));
155 }
156
157 double StreamVolumecxx . . $ Gst/StreamVolume#::convert_volumecxx . . $ Gst/StreamVolume#convert_volume(3f1e6be7fdfc728c).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# from, Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# to, double val)
158 {
159 return gst_stream_volume_convert_volume(((GstStreamVolumeFormat)(from)), ((GstStreamVolumeFormat)(to)), val);
160 }
161
162
163 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > StreamVolumecxx . . $ Gst/StreamVolume#::property_mutecxx . . $ Gst/StreamVolume#property_mute(962e4b383dc974dc).()
164 {
165 return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< bool >(this, "mute");
166 }
167
168 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > StreamVolumecxx . . $ Gst/StreamVolume#::property_mutecxx . . $ Gst/StreamVolume#property_mute(bb701360c56d84c7).() const
169 {
170 return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool >(this, "mute");
171 }
172
173 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< double > StreamVolumecxx . . $ Gst/StreamVolume#::property_volumecxx . . $ Gst/StreamVolume#property_volume(5902f01579e2dcb0).()
174 {
175 return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< double >(this, "volume");
176 }
177
178 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< double > StreamVolumecxx . . $ Gst/StreamVolume#::property_volumecxx . . $ Gst/StreamVolume#property_volume(f7f19ddbcc831471).() const
179 {
180 return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< double >(this, "volume");
181 }
182
183
184 } // namespace Gst
185
186