00001
00002
00003 #ifndef _GSTREAMERMM_TEXTRENDER_H
00004 #define _GSTREAMERMM_TEXTRENDER_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gstreamermm/element.h>
00031
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _GstTextRender GstTextRender;
00035 typedef struct _GstTextRenderClass GstTextRenderClass;
00036 #endif
00037
00038
00039 namespace Gst
00040 { class TextRender_Class; }
00041 namespace Gst
00042 {
00043
00049 enum TextRenderHAlign
00050 {
00051 TEXT_RENDER_HALIGN_LEFT,
00052 TEXT_RENDER_HALIGN_CENTER,
00053 TEXT_RENDER_HALIGN_RIGHT
00054 };
00055
00056 }
00057
00058
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060 namespace Glib
00061 {
00062
00063 template <>
00064 class Value<Gst::TextRenderHAlign> : public Glib::Value_Enum<Gst::TextRenderHAlign>
00065 {
00066 public:
00067 static GType value_type() G_GNUC_CONST;
00068 };
00069
00070 }
00071 #endif
00072
00073
00074 namespace Gst
00075 {
00076
00077
00081 enum TextRenderVAlign
00082 {
00083 TEXT_RENDER_VALIGN_BASELINE,
00084 TEXT_RENDER_VALIGN_BOTTOM,
00085 TEXT_RENDER_VALIGN_TOP
00086 };
00087
00088 }
00089
00090
00091 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00092 namespace Glib
00093 {
00094
00095 template <>
00096 class Value<Gst::TextRenderVAlign> : public Glib::Value_Enum<Gst::TextRenderVAlign>
00097 {
00098 public:
00099 static GType value_type() G_GNUC_CONST;
00100 };
00101
00102 }
00103 #endif
00104
00105
00106 namespace Gst
00107 {
00108
00109
00113 enum TextRenderLineAlign
00114 {
00115 TEXT_RENDER_LINE_ALIGN_LEFT,
00116 TEXT_RENDER_LINE_ALIGN_CENTER,
00117 TEXT_RENDER_LINE_ALIGN_RIGHT
00118 };
00119
00120 }
00121
00122
00123 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00124 namespace Glib
00125 {
00126
00127 template <>
00128 class Value<Gst::TextRenderLineAlign> : public Glib::Value_Enum<Gst::TextRenderLineAlign>
00129 {
00130 public:
00131 static GType value_type() G_GNUC_CONST;
00132 };
00133
00134 }
00135 #endif
00136
00137
00138 namespace Gst
00139 {
00140
00141
00152 class TextRender
00153 : public Gst::Element
00154 {
00155
00156 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00157
00158 public:
00159 typedef TextRender CppObjectType;
00160 typedef TextRender_Class CppClassType;
00161 typedef GstTextRender BaseObjectType;
00162 typedef GstTextRenderClass BaseClassType;
00163
00164 private: friend class TextRender_Class;
00165 static CppClassType textrender_class_;
00166
00167 private:
00168
00169 TextRender(const TextRender&);
00170 TextRender& operator=(const TextRender&);
00171
00172 protected:
00173 explicit TextRender(const Glib::ConstructParams& construct_params);
00174 explicit TextRender(GstTextRender* castitem);
00175
00176 #endif
00177
00178 public:
00179 virtual ~TextRender();
00180
00181 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00182 static GType get_type() G_GNUC_CONST;
00183
00184
00185 static GType get_base_type() G_GNUC_CONST;
00186 #endif
00187
00189 GstTextRender* gobj() { return reinterpret_cast<GstTextRender*>(gobject_); }
00190
00192 const GstTextRender* gobj() const { return reinterpret_cast<GstTextRender*>(gobject_); }
00193
00195 GstTextRender* gobj_copy();
00196
00197 private:
00198
00199
00200 protected:
00201 TextRender();
00202 TextRender(const Glib::ustring& name);
00203
00204 public:
00208 static Glib::RefPtr<TextRender> create();
00209
00210
00214 static Glib::RefPtr<TextRender> create(const Glib::ustring& name);
00215
00216
00217 #ifdef GLIBMM_PROPERTIES_ENABLED
00218
00224 Glib::PropertyProxy<Gst::TextRenderHAlign> property_halignment() ;
00225 #endif //#GLIBMM_PROPERTIES_ENABLED
00226
00227 #ifdef GLIBMM_PROPERTIES_ENABLED
00228
00234 Glib::PropertyProxy_ReadOnly<Gst::TextRenderHAlign> property_halignment() const;
00235 #endif //#GLIBMM_PROPERTIES_ENABLED
00236
00237 #ifdef GLIBMM_PROPERTIES_ENABLED
00238
00244 Glib::PropertyProxy<Gst::TextRenderVAlign> property_valignment() ;
00245 #endif //#GLIBMM_PROPERTIES_ENABLED
00246
00247 #ifdef GLIBMM_PROPERTIES_ENABLED
00248
00254 Glib::PropertyProxy_ReadOnly<Gst::TextRenderVAlign> property_valignment() const;
00255 #endif //#GLIBMM_PROPERTIES_ENABLED
00256
00257 #ifdef GLIBMM_PROPERTIES_ENABLED
00258
00264 Glib::PropertyProxy<Gst::TextRenderLineAlign> property_line_alignment() ;
00265 #endif //#GLIBMM_PROPERTIES_ENABLED
00266
00267 #ifdef GLIBMM_PROPERTIES_ENABLED
00268
00274 Glib::PropertyProxy_ReadOnly<Gst::TextRenderLineAlign> property_line_alignment() const;
00275 #endif //#GLIBMM_PROPERTIES_ENABLED
00276
00277 #ifdef GLIBMM_PROPERTIES_ENABLED
00278
00284 Glib::PropertyProxy<int> property_xpad() ;
00285 #endif //#GLIBMM_PROPERTIES_ENABLED
00286
00287 #ifdef GLIBMM_PROPERTIES_ENABLED
00288
00294 Glib::PropertyProxy_ReadOnly<int> property_xpad() const;
00295 #endif //#GLIBMM_PROPERTIES_ENABLED
00296
00297 #ifdef GLIBMM_PROPERTIES_ENABLED
00298
00304 Glib::PropertyProxy<int> property_ypad() ;
00305 #endif //#GLIBMM_PROPERTIES_ENABLED
00306
00307 #ifdef GLIBMM_PROPERTIES_ENABLED
00308
00314 Glib::PropertyProxy_ReadOnly<int> property_ypad() const;
00315 #endif //#GLIBMM_PROPERTIES_ENABLED
00316
00317 #ifdef GLIBMM_PROPERTIES_ENABLED
00318
00324 Glib::PropertyProxy_WriteOnly<Glib::ustring> property_font_desc() ;
00325 #endif //#GLIBMM_PROPERTIES_ENABLED
00326
00327
00328 public:
00329
00330 public:
00331
00332 #ifdef GLIBMM_VFUNCS_ENABLED
00333 #endif //GLIBMM_VFUNCS_ENABLED
00334
00335 protected:
00336
00337 #ifdef GLIBMM_VFUNCS_ENABLED
00338 #endif //GLIBMM_VFUNCS_ENABLED
00339
00340
00341 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00342 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00343
00344
00345 };
00346
00347 }
00348
00349
00350 namespace Glib
00351 {
00360 Glib::RefPtr<Gst::TextRender> wrap(GstTextRender* object, bool take_copy = false);
00361 }
00362
00363
00364 #endif
00365