| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | #ifndef _GSTREAMERMM_TEXTRENDER_H |
| 3 | #define _GSTREAMERMM_TEXTRENDER_H |
| 4 | |
| 5 | #include <gstreamermmconfig.h> |
| 6 | |
| 7 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 8 | |
| 9 | |
| 10 | #include <glibmm/ustring.h> |
| 11 | #include <sigc++/sigc++.h> |
| 12 | |
| 13 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 14 | |
| 15 | |
| 16 | #include <gstreamermm/element.h> |
| 17 | |
| 18 | |
| 19 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 20 | using GstTextRender = struct _GstTextRender; |
| 21 | using GstTextRenderClass = struct _GstTextRenderClass; |
| 22 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 23 | |
| 24 | |
| 25 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 26 | namespace Gst |
| 27 | { class TextRender_Class; } // namespace Gst |
| 28 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 29 | |
| 30 | namespace Gst |
| 31 | { |
| 32 | |
| 33 | /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */ |
| 34 | |
| 35 | /** |
| 36 | * |
| 37 | * @ingroup gstreamermmEnums |
| 38 | */ |
| 39 | enum TextRenderHAlign |
| 40 | { |
| 41 | TEXT_RENDER_HALIGN_LEFT, |
| 42 | TEXT_RENDER_HALIGN_CENTER, |
| 43 | TEXT_RENDER_HALIGN_RIGHT |
| 44 | }; |
| 45 | |
| 46 | } // namespace Gst |
| 47 | |
| 48 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 49 | namespace Glib |
| 50 | { |
| 51 | |
| 52 | template <> |
| 53 | class Value<Gst::TextRenderHAlign> : public Glib::Value_Enum<Gst::TextRenderHAlign> |
| 54 | { |
| 55 | public: |
| 56 | static GType value_type() G_GNUC_CONST; |
| 57 | }; |
| 58 | |
| 59 | } // namespace Glib |
| 60 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 61 | |
| 62 | namespace Gst |
| 63 | { |
| 64 | |
| 65 | |
| 66 | /** |
| 67 | * |
| 68 | * @ingroup gstreamermmEnums |
| 69 | */ |
| 70 | enum TextRenderVAlign |
| 71 | { |
| 72 | TEXT_RENDER_VALIGN_BASELINE, |
| 73 | TEXT_RENDER_VALIGN_BOTTOM, |
| 74 | TEXT_RENDER_VALIGN_TOP |
| 75 | }; |
| 76 | |
| 77 | } // namespace Gst |
| 78 | |
| 79 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 80 | namespace Glib |
| 81 | { |
| 82 | |
| 83 | template <> |
| 84 | class Value<Gst::TextRenderVAlign> : public Glib::Value_Enum<Gst::TextRenderVAlign> |
| 85 | { |
| 86 | public: |
| 87 | static GType value_type() G_GNUC_CONST; |
| 88 | }; |
| 89 | |
| 90 | } // namespace Glib |
| 91 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 92 | |
| 93 | namespace Gst |
| 94 | { |
| 95 | |
| 96 | |
| 97 | /** |
| 98 | * |
| 99 | * @ingroup gstreamermmEnums |
| 100 | * @par Bitwise operators: |
| 101 | * <tt>%TextRenderLineAlign operator|(TextRenderLineAlign, TextRenderLineAlign)</tt><br> |
| 102 | * <tt>%TextRenderLineAlign operator&(TextRenderLineAlign, TextRenderLineAlign)</tt><br> |
| 103 | * <tt>%TextRenderLineAlign operator^(TextRenderLineAlign, TextRenderLineAlign)</tt><br> |
| 104 | * <tt>%TextRenderLineAlign operator~(TextRenderLineAlign)</tt><br> |
| 105 | * <tt>%TextRenderLineAlign& operator|=(TextRenderLineAlign&, TextRenderLineAlign)</tt><br> |
| 106 | * <tt>%TextRenderLineAlign& operator&=(TextRenderLineAlign&, TextRenderLineAlign)</tt><br> |
| 107 | * <tt>%TextRenderLineAlign& operator^=(TextRenderLineAlign&, TextRenderLineAlign)</tt><br> |
| 108 | */ |
| 109 | enum TextRenderLineAlign |
| 110 | { |
| 111 | TEXT_RENDER_LINE_ALIGN_LEFT = 0, |
| 112 | TEXT_RENDER_LINE_ALIGN_CENTER = 1, |
| 113 | TEXT_RENDER_LINE_ALIGN_RIGHT = 2 |
| 114 | }; |
| 115 | |
| 116 | /** @ingroup gstreamermmEnums */ |
| 117 | inline TextRenderLineAlign operator|(TextRenderLineAlign lhs, TextRenderLineAlign rhs) |
| 118 | { return static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); } |
| 119 | |
| 120 | /** @ingroup gstreamermmEnums */ |
| 121 | inline TextRenderLineAlign operator&(TextRenderLineAlign lhs, TextRenderLineAlign rhs) |
| 122 | { return static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); } |
| 123 | |
| 124 | /** @ingroup gstreamermmEnums */ |
| 125 | inline TextRenderLineAlign operator^(TextRenderLineAlign lhs, TextRenderLineAlign rhs) |
| 126 | { return static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); } |
| 127 | |
| 128 | /** @ingroup gstreamermmEnums */ |
| 129 | inline TextRenderLineAlign operator~(TextRenderLineAlign flags) |
| 130 | { return static_cast<TextRenderLineAlign>(~static_cast<unsigned>(flags)); } |
| 131 | |
| 132 | /** @ingroup gstreamermmEnums */ |
| 133 | inline TextRenderLineAlign& operator|=(TextRenderLineAlign& lhs, TextRenderLineAlign rhs) |
| 134 | { return (lhs = static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); } |
| 135 | |
| 136 | /** @ingroup gstreamermmEnums */ |
| 137 | inline TextRenderLineAlign& operator&=(TextRenderLineAlign& lhs, TextRenderLineAlign rhs) |
| 138 | { return (lhs = static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); } |
| 139 | |
| 140 | /** @ingroup gstreamermmEnums */ |
| 141 | inline TextRenderLineAlign& operator^=(TextRenderLineAlign& lhs, TextRenderLineAlign rhs) |
| 142 | { return (lhs = static_cast<TextRenderLineAlign>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); } |
| 143 | |
| 144 | } // namespace Gst |
| 145 | |
| 146 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 147 | namespace Glib |
| 148 | { |
| 149 | |
| 150 | template <> |
| 151 | class Value<Gst::TextRenderLineAlign> : public Glib::Value_Flags<Gst::TextRenderLineAlign> |
| 152 | { |
| 153 | public: |
| 154 | static GType value_type() G_GNUC_CONST; |
| 155 | }; |
| 156 | |
| 157 | } // namespace Glib |
| 158 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 159 | |
| 160 | namespace Gst |
| 161 | { |
| 162 | |
| 163 | |
| 164 | /** A Wrapper for the textrender plugin. |
| 165 | * Please note that not all plug-ins are available on all systems so care |
| 166 | * must be taken that they exist before they are used otherwise there will |
| 167 | * be errors and possibly a crash. |
| 168 | * |
| 169 | * @ingroup GstPlugins |
| 170 | * @deprecated Plugins API is deprecated, and should not be used in a new code. |
| 171 | */ |
| 172 | |
| 173 | class TextRender |
| 174 | : public Gst::Element |
| 175 | { |
| 176 | |
| 177 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 178 | |
| 179 | public: |
| 180 | using CppObjectType = TextRender; |
| 181 | using CppClassType = TextRender_Class; |
| 182 | using BaseObjectType = GstTextRender; |
| 183 | using BaseClassType = GstTextRenderClass; |
| 184 | |
| 185 | // noncopyable |
| 186 | TextRender(const TextRender&) = delete; |
| 187 | TextRender& operator=(const TextRender&) = delete; |
| 188 | |
| 189 | private: friend class TextRender_Class; |
| 190 | static CppClassType textrender_class_; |
| 191 | |
| 192 | protected: |
| 193 | explicit TextRender(const Glib::ConstructParams& construct_params); |
| 194 | explicit TextRender(GstTextRender* castitem); |
| 195 | |
| 196 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 197 | |
| 198 | public: |
| 199 | |
| 200 | TextRender(TextRender&& src) noexcept; |
| 201 | TextRender& operator=(TextRender&& src) noexcept; |
| 202 | |
| 203 | ~TextRender() noexcept override; |
| 204 | |
| 205 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 206 | */ |
| 207 | static GType get_type() G_GNUC_CONST; |
| 208 | |
| 209 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 210 | |
| 211 | |
| 212 | static GType get_base_type() G_GNUC_CONST; |
| 213 | #endif |
| 214 | |
| 215 | ///Provides access to the underlying C GObject. |
| 216 | GstTextRender* gobj() { return reinterpret_cast<GstTextRender*>(gobject_); } |
| 217 | |
| 218 | ///Provides access to the underlying C GObject. |
| 219 | const GstTextRender* gobj() const { return reinterpret_cast<GstTextRender*>(gobject_); } |
| 220 | |
| 221 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 222 | GstTextRender* gobj_copy(); |
| 223 | |
| 224 | private: |
| 225 | |
| 226 | |
| 227 | protected: |
| 228 | TextRender(); |
| 229 | explicit TextRender(const Glib::ustring& name); |
| 230 | |
| 231 | public: |
| 232 | /** Creates a new textrender plugin with a unique name. |
| 233 | */ |
| 234 | |
| 235 | static Glib::RefPtr<TextRender> create(); |
| 236 | |
| 237 | |
| 238 | /** Creates a new textrender plugin with the given name. |
| 239 | */ |
| 240 | |
| 241 | static Glib::RefPtr<TextRender> create(const Glib::ustring& name); |
| 242 | |
| 243 | |
| 244 | /** Horizontal alignment of the text. |
| 245 | * |
| 246 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 247 | * or receive notification when the value of the property changes. |
| 248 | */ |
| 249 | Glib::PropertyProxy< Gst::TextRenderHAlign > property_halignment() ; |
| 250 | |
| 251 | /** Horizontal alignment of the text. |
| 252 | * |
| 253 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 254 | * or receive notification when the value of the property changes. |
| 255 | */ |
| 256 | Glib::PropertyProxy_ReadOnly< Gst::TextRenderHAlign > property_halignment() const; |
| 257 | |
| 258 | /** Vertical alignment of the text. |
| 259 | * |
| 260 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 261 | * or receive notification when the value of the property changes. |
| 262 | */ |
| 263 | Glib::PropertyProxy< Gst::TextRenderVAlign > property_valignment() ; |
| 264 | |
| 265 | /** Vertical alignment of the text. |
| 266 | * |
| 267 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 268 | * or receive notification when the value of the property changes. |
| 269 | */ |
| 270 | Glib::PropertyProxy_ReadOnly< Gst::TextRenderVAlign > property_valignment() const; |
| 271 | |
| 272 | /** Alignment of text lines relative to each other. |
| 273 | * |
| 274 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 275 | * or receive notification when the value of the property changes. |
| 276 | */ |
| 277 | Glib::PropertyProxy< Gst::TextRenderLineAlign > property_line_alignment() ; |
| 278 | |
| 279 | /** Alignment of text lines relative to each other. |
| 280 | * |
| 281 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 282 | * or receive notification when the value of the property changes. |
| 283 | */ |
| 284 | Glib::PropertyProxy_ReadOnly< Gst::TextRenderLineAlign > property_line_alignment() const; |
| 285 | |
| 286 | /** Horizontal paddding when using left/right alignment. |
| 287 | * |
| 288 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 289 | * or receive notification when the value of the property changes. |
| 290 | */ |
| 291 | Glib::PropertyProxy< int > property_xpad() ; |
| 292 | |
| 293 | /** Horizontal paddding when using left/right alignment. |
| 294 | * |
| 295 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 296 | * or receive notification when the value of the property changes. |
| 297 | */ |
| 298 | Glib::PropertyProxy_ReadOnly< int > property_xpad() const; |
| 299 | |
| 300 | /** Vertical padding when using top/bottom alignment. |
| 301 | * |
| 302 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 303 | * or receive notification when the value of the property changes. |
| 304 | */ |
| 305 | Glib::PropertyProxy< int > property_ypad() ; |
| 306 | |
| 307 | /** Vertical padding when using top/bottom alignment. |
| 308 | * |
| 309 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 310 | * or receive notification when the value of the property changes. |
| 311 | */ |
| 312 | Glib::PropertyProxy_ReadOnly< int > property_ypad() const; |
| 313 | |
| 314 | /** Pango font description of font to be used for rendering. See documentation of pango_font_description_from_string for syntax. |
| 315 | * |
| 316 | * @return A PropertyProxy_WriteOnly that allows you to set the value of the property, |
| 317 | * or receive notification when the value of the property changes. |
| 318 | */ |
| 319 | Glib::PropertyProxy_WriteOnly< Glib::ustring > property_font_desc() ; |
| 320 | |
| 321 | |
| 322 | public: |
| 323 | |
| 324 | public: |
| 325 | //C++ methods used to invoke GTK+ virtual functions: |
| 326 | |
| 327 | protected: |
| 328 | //GTK+ Virtual Functions (override these to change behaviour): |
| 329 | |
| 330 | //Default Signal Handlers:: |
| 331 | |
| 332 | |
| 333 | }; |
| 334 | |
| 335 | } // namespace Gst |
| 336 | |
| 337 | |
| 338 | namespace Glib |
| 339 | { |
| 340 | /** A Glib::wrap() method for this object. |
| 341 | * |
| 342 | * @param object The C instance. |
| 343 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 344 | * @result A C++ instance that wraps this C instance. |
| 345 | * |
| 346 | * @relates Gst::TextRender |
| 347 | */ |
| 348 | Glib::RefPtr<Gst::TextRender> wrap(GstTextRender* object, bool take_copy = false); |
| 349 | } |
| 350 | |
| 351 | |
| 352 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 353 | |
| 354 | |
| 355 | #endif /* _GSTREAMERMM_TEXTRENDER_H */ |
| 356 |