Debian Codegraph @

gstreamer/gstreamermm/textrender.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/textrender.h>
11 #include <gstreamermm/private/textrender_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 static GType gst_text_render_h_align_get_type()
21 {
22 static GType const type = g_type_from_name("GstTextRenderHAlign");
23 return type;
24 }
25
26 static GType gst_text_render_v_align_get_type()
27 {
28 static GType const type = g_type_from_name("GstTextRenderVAlign");
29 return type;
30 }
31
32 static GType gst_text_render_line_align_get_type()
33 {
34 static GType const type = g_type_from_name("GstTextRenderLineAlign");
35 return type;
36 }
37
38 GType gst_text_render_gstreamermm_get_type()
39 {
40 static GType type = 0;
41 GstElementFactory* factory = 0;
42 GstPluginFeature* feature = 0;
43
44 if(!type)
45 {
46 factory = gst_element_factory_find("textrender");
47 // Make sure that the feature is actually loaded:
48 if(factory)
49 {
50 feature =
51 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
52
53 g_object_unref(factory);
54 factory = GST_ELEMENT_FACTORY(feature);
55 type = gst_element_factory_get_element_type(factory);
56 g_object_unref(factory);
57 }
58 }
59
60 return type;
61 }
62
63 } // extern "C"
64
65 namespace Gst
66 {
67
68 TextRender::TextRender()
69 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
70 Glib::ObjectBase(nullptr),
71 Gst::Element(Glib::ConstructParams(textrender_class_.init(), "name",static_cast<char*>(0), nullptr))
72 {}
73
74 TextRender::TextRender(const Glib::ustring& name)
75 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
76 Glib::ObjectBase(nullptr),
77 Gst::Element(Glib::ConstructParams(textrender_class_.init(), "name",name.c_str(), nullptr))
78 {}
79
80 }
81
82 namespace
83 {
84 } // anonymous namespace
85
86 // static
87 GType Glib::Value<Gst::TextRenderHAlign>::value_type()
88 {
89 return gst_text_render_h_align_get_type();
90 }
91
92 // static
93 GType Glib::Value<Gst::TextRenderVAlign>::value_type()
94 {
95 return gst_text_render_v_align_get_type();
96 }
97
98 // static
99 GType Glib::Value<Gst::TextRenderLineAlign>::value_type()
100 {
101 return gst_text_render_line_align_get_type();
102 }
103
104
105 namespace Glib
106 {
107
108 Glib::RefPtr<Gst::TextRender> wrap(GstTextRender* object, bool take_copy)
109 {
110 return Glib::RefPtr<Gst::TextRender>( dynamic_cast<Gst::TextRender*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
111 //We use dynamic_cast<> in case of multiple inheritance.
112 }
113
114 } /* namespace Glib */
115
116
117 namespace Gst
118 {
119
120
121 /* The *_Class implementation: */
122
123 const Glib::Class& TextRender_Class::init()
124 {
125 if(!gtype_) // create the GType if necessary
126 {
127 // Glib::Class has to know the class init function to clone custom types.
128 class_init_func_ = &TextRender_Class::class_init_function;
129
130 // This is actually just optimized away, apparently with no harm.
131 // Make sure that the parent type has been created.
132 //CppClassParent::CppObjectType::get_type();
133
134 // Create the wrapper type, with the same class/instance size as the base type.
135 register_derived_type(gst_text_render_gstreamermm_get_type());
136
137 // Add derived versions of interfaces, if the C type implements any interfaces:
138
139 }
140
141 return *this;
142 }
143
144
145 void TextRender_Class::class_init_function(void* g_class, void* class_data)
146 {
147 const auto klass = static_cast<BaseClassType*>(g_class);
148 CppClassParent::class_init_function(klass, class_data);
149
150
151 }
152
153
154 Glib::ObjectBase* TextRender_Class::wrap_new(GObject* object)
155 {
156 return new TextRender((GstTextRender*)object);
157 }
158
159
160 /* The implementation: */
161
162 GstTextRender* TextRender::gobj_copy()
163 {
164 reference();
165 return gobj();
166 }
167
168 TextRender::TextRender(const Glib::ConstructParams& construct_params)
169 :
170 Gst::Element(construct_params)
171 {
172
173 }
174
175 TextRender::TextRender(GstTextRender* castitem)
176 :
177 Gst::Element((GstElement*)(castitem))
178 {}
179
180
181 TextRender::TextRender(TextRender&& src) noexcept
182 : Gst::Element(std::move(src))
183 {}
184
185 TextRender& TextRender::operator=(TextRender&& src) noexcept
186 {
187 Gst::Element::operator=(std::move(src));
188 return *this;
189 }
190
191
192 TextRender::~TextRender() noexcept
193 {}
194
195
196 TextRender::CppClassType TextRender::textrender_class_; // initialize static member
197
198 GType TextRender::get_type()
199 {
200 return textrender_class_.init().get_type();
201 }
202
203
204 GType TextRender::get_base_type()
205 {
206 return gst_text_render_gstreamermm_get_type();
207 }
208
209
210 Glib::RefPtr<TextRender> TextRender::create()
211 {
212 return Glib::RefPtr<TextRender>( new TextRender() );
213 }
214
215 Glib::RefPtr<TextRender> TextRender::create(const Glib::ustring& name)
216 {
217 return Glib::RefPtr<TextRender>( new TextRender(name) );
218 }
219
220
221 Glib::PropertyProxy< Gst::TextRenderHAlign > TextRender::property_halignment()
222 {
223 return Glib::PropertyProxy< Gst::TextRenderHAlign >(this, "halignment");
224 }
225
226 Glib::PropertyProxy_ReadOnly< Gst::TextRenderHAlign > TextRender::property_halignment() const
227 {
228 return Glib::PropertyProxy_ReadOnly< Gst::TextRenderHAlign >(this, "halignment");
229 }
230
231 Glib::PropertyProxy< Gst::TextRenderVAlign > TextRender::property_valignment()
232 {
233 return Glib::PropertyProxy< Gst::TextRenderVAlign >(this, "valignment");
234 }
235
236 Glib::PropertyProxy_ReadOnly< Gst::TextRenderVAlign > TextRender::property_valignment() const
237 {
238 return Glib::PropertyProxy_ReadOnly< Gst::TextRenderVAlign >(this, "valignment");
239 }
240
241 Glib::PropertyProxy< Gst::TextRenderLineAlign > TextRender::property_line_alignment()
242 {
243 return Glib::PropertyProxy< Gst::TextRenderLineAlign >(this, "line-alignment");
244 }
245
246 Glib::PropertyProxy_ReadOnly< Gst::TextRenderLineAlign > TextRender::property_line_alignment() const
247 {
248 return Glib::PropertyProxy_ReadOnly< Gst::TextRenderLineAlign >(this, "line-alignment");
249 }
250
251 Glib::PropertyProxy< int > TextRender::property_xpad()
252 {
253 return Glib::PropertyProxy< int >(this, "xpad");
254 }
255
256 Glib::PropertyProxy_ReadOnly< int > TextRender::property_xpad() const
257 {
258 return Glib::PropertyProxy_ReadOnly< int >(this, "xpad");
259 }
260
261 Glib::PropertyProxy< int > TextRender::property_ypad()
262 {
263 return Glib::PropertyProxy< int >(this, "ypad");
264 }
265
266 Glib::PropertyProxy_ReadOnly< int > TextRender::property_ypad() const
267 {
268 return Glib::PropertyProxy_ReadOnly< int >(this, "ypad");
269 }
270
271 Glib::PropertyProxy_WriteOnly< Glib::ustring > TextRender::property_font_desc()
272 {
273 return Glib::PropertyProxy_WriteOnly< Glib::ustring >(this, "font-desc");
274 }
275
276
277 } // namespace Gst
278
279 #endif // GSTREAMERMM_DISABLE_DEPRECATED
280
281