Debian Codegraph @

gstreamer/gstreamermm/ximagesink.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <gstreamermmconfig.h>
5 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
6
7
8 #include <glibmm.h>
9
10 #include <gstreamermm/ximagesink.h>
11 #include <gstreamermm/private/ximagesink_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 GType gst_x_image_sink_gstreamermm_get_type()
21 {
22 static GType type = 0;
23 GstElementFactory* factory = 0;
24 GstPluginFeature* feature = 0;
25
26 if(!type)
27 {
28 factory = gst_element_factory_find("ximagesink");
29 // Make sure that the feature is actually loaded:
30 if(factory)
31 {
32 feature =
33 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
34
35 g_object_unref(factory);
36 factory = GST_ELEMENT_FACTORY(feature);
37 type = gst_element_factory_get_element_type(factory);
38 g_object_unref(factory);
39 }
40 }
41
42 return type;
43 }
44
45 } // extern "C"
46
47 namespace Gst
48 {
49
50 XImageSink::XImageSink()
51 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
52 Glib::ObjectBase(nullptr),
53 Gst::VideoSink(Glib::ConstructParams(ximagesink_class_.init(), "name",static_cast<char*>(0), nullptr))
54 {}
55
56 XImageSink::XImageSink(const Glib::ustring& name)
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::VideoSink(Glib::ConstructParams(ximagesink_class_.init(), "name",name.c_str(), nullptr))
60 {}
61
62 }
63
64 namespace
65 {
66 } // anonymous namespace
67
68
69 namespace Glib
70 {
71
72 Glib::RefPtr<Gst::XImageSink> wrap(GstXImageSink* object, bool take_copy)
73 {
74 return Glib::RefPtr<Gst::XImageSink>( dynamic_cast<Gst::XImageSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
75 //We use dynamic_cast<> in case of multiple inheritance.
76 }
77
78 } /* namespace Glib */
79
80
81 namespace Gst
82 {
83
84
85 /* The *_Class implementation: */
86
87 const Glib::Class& XImageSink_Class::init()
88 {
89 if(!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_ = &XImageSink_Class::class_init_function;
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_type(gst_x_image_sink_gstreamermm_get_type());
100
101 // Add derived versions of interfaces, if the C type implements any interfaces:
102 Gst::Navigation::add_interface(get_type());
103 Gst::VideoOverlay::add_interface(get_type());
104
105 }
106
107 return *this;
108 }
109
110
111 void XImageSink_Class::class_init_function(void* g_class, void* class_data)
112 {
113 const auto klass = static_cast<BaseClassType*>(g_class);
114 CppClassParent::class_init_function(klass, class_data);
115
116
117 }
118
119
120 Glib::ObjectBase* XImageSink_Class::wrap_new(GObject* object)
121 {
122 return new XImageSink((GstXImageSink*)object);
123 }
124
125
126 /* The implementation: */
127
128 GstXImageSink* XImageSink::gobj_copy()
129 {
130 reference();
131 return gobj();
132 }
133
134 XImageSink::XImageSink(const Glib::ConstructParams& construct_params)
135 :
136 Gst::VideoSink(construct_params)
137 {
138
139 }
140
141 XImageSink::XImageSink(GstXImageSink* castitem)
142 :
143 Gst::VideoSink((GstVideoSink*)(castitem))
144 {}
145
146
147 XImageSink::XImageSink(XImageSink&& src) noexcept
148 : Gst::VideoSink(std::move(src))
149 , Gst::Navigation(std::move(src))
150 , Gst::VideoOverlay(std::move(src))
151 {}
152
153 XImageSink& XImageSink::operator=(XImageSink&& src) noexcept
154 {
155 Gst::VideoSink::operator=(std::move(src));
156 Gst::Navigation::operator=(std::move(src));
157 Gst::VideoOverlay::operator=(std::move(src));
158 return *this;
159 }
160
161
162 XImageSink::~XImageSink() noexcept
163 {}
164
165
166 XImageSink::CppClassType XImageSink::ximagesink_class_; // initialize static member
167
168 GType XImageSink::get_type()
169 {
170 return ximagesink_class_.init().get_type();
171 }
172
173
174 GType XImageSink::get_base_type()
175 {
176 return gst_x_image_sink_gstreamermm_get_type();
177 }
178
179
180 Glib::RefPtr<XImageSink> XImageSink::create()
181 {
182 return Glib::RefPtr<XImageSink>( new XImageSink() );
183 }
184
185 Glib::RefPtr<XImageSink> XImageSink::create(const Glib::ustring& name)
186 {
187 return Glib::RefPtr<XImageSink>( new XImageSink(name) );
188 }
189
190
191 Glib::PropertyProxy< Glib::ustring > XImageSink::property_display()
192 {
193 return Glib::PropertyProxy< Glib::ustring >(this, "display");
194 }
195
196 Glib::PropertyProxy_ReadOnly< Glib::ustring > XImageSink::property_display() const
197 {
198 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "display");
199 }
200
201 Glib::PropertyProxy< bool > XImageSink::property_synchronous()
202 {
203 return Glib::PropertyProxy< bool >(this, "synchronous");
204 }
205
206 Glib::PropertyProxy_ReadOnly< bool > XImageSink::property_synchronous() const
207 {
208 return Glib::PropertyProxy_ReadOnly< bool >(this, "synchronous");
209 }
210
211 Glib::PropertyProxy< Glib::ustring > XImageSink::property_pixel_aspect_ratio()
212 {
213 return Glib::PropertyProxy< Glib::ustring >(this, "pixel-aspect-ratio");
214 }
215
216 Glib::PropertyProxy_ReadOnly< Glib::ustring > XImageSink::property_pixel_aspect_ratio() const
217 {
218 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "pixel-aspect-ratio");
219 }
220
221 Glib::PropertyProxy< bool > XImageSink::property_force_aspect_ratio()
222 {
223 return Glib::PropertyProxy< bool >(this, "force-aspect-ratio");
224 }
225
226 Glib::PropertyProxy_ReadOnly< bool > XImageSink::property_force_aspect_ratio() const
227 {
228 return Glib::PropertyProxy_ReadOnly< bool >(this, "force-aspect-ratio");
229 }
230
231 Glib::PropertyProxy< bool > XImageSink::property_handle_events()
232 {
233 return Glib::PropertyProxy< bool >(this, "handle-events");
234 }
235
236 Glib::PropertyProxy_ReadOnly< bool > XImageSink::property_handle_events() const
237 {
238 return Glib::PropertyProxy_ReadOnly< bool >(this, "handle-events");
239 }
240
241 Glib::PropertyProxy< bool > XImageSink::property_handle_expose()
242 {
243 return Glib::PropertyProxy< bool >(this, "handle-expose");
244 }
245
246 Glib::PropertyProxy_ReadOnly< bool > XImageSink::property_handle_expose() const
247 {
248 return Glib::PropertyProxy_ReadOnly< bool >(this, "handle-expose");
249 }
250
251 Glib::PropertyProxy_ReadOnly< guint64 > XImageSink::property_window_width() const
252 {
253 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "window-width");
254 }
255
256 Glib::PropertyProxy_ReadOnly< guint64 > XImageSink::property_window_height() const
257 {
258 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "window-height");
259 }
260
261
262 } // namespace Gst
263
264 #endif // GSTREAMERMM_DISABLE_DEPRECATED
265
266