| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/padtemplate.h`/ |
| 2 | #ifndef _GSTREAMERMM_PADTEMPLATE_H |
| 3 | #define _GSTREAMERMM_PADTEMPLATE_Hcxx . . $ `gstreamer/gstreamermm/padtemplate.h:3:9`! |
| 4 | |
| 5 | |
| 6 | #include <glibmm/ustring.h> |
| 7 | #include <sigc++/sigc++.h> |
| 8 | |
| 9 | /* gstreamermm - a C++ wrapper for gstreamer |
| 10 | * |
| 11 | * Copyright 2008-2016 The gstreamermm Development Team |
| 12 | * |
| 13 | * This library is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU Lesser General Public |
| 15 | * License as published by the Free Software Foundation; either |
| 16 | * version 2.1 of the License, or (at your option) any later version. |
| 17 | * |
| 18 | * This library is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 | * Lesser General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU Lesser General Public |
| 24 | * License along with this library; if not, write to the Free |
| 25 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 26 | */ |
| 27 | |
| 28 | #include <gst/gst.h> |
| 29 | #include <gstreamermm/object.h>cxx . . $ `<file>/gstreamer/gstreamermm/object.h`/ |
| 30 | #include <gstreamermm/pad.h>cxx . . $ `<file>/gstreamer/gstreamermm/pad.h`/ |
| 31 | |
| 32 | |
| 33 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 34 | using GstPadTemplatecxx . . $ GstPadTemplate# = struct _GstPadTemplatecxx . . $ _GstPadTemplate#; |
| 35 | using GstPadTemplateClasscxx . . $ GstPadTemplateClass# = struct _GstPadTemplateClasscxx . . $ _GstPadTemplateClass#; |
| 36 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 37 | |
| 38 | |
| 39 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 40 | namespace Gstcxx . . $ Gst/ |
| 41 | { class PadTemplate_Classcxx . . $ Gst/PadTemplate_Class#; } // namespace Gst |
| 42 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 43 | |
| 44 | namespace Gstcxx . . $ Gst/ |
| 45 | { |
| 46 | |
| 47 | /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */ |
| 48 | |
| 49 | /** |
| 50 | * @var PadTemplateFlags PAD_TEMPLATE_FLAG_LAST |
| 51 | * First flag that can be used by subclasses. |
| 52 | * |
| 53 | * @enum PadTemplateFlags |
| 54 | * |
| 55 | * Flags for the padtemplate |
| 56 | * |
| 57 | * @ingroup gstreamermmEnums |
| 58 | * @par Bitwise operators: |
| 59 | * <tt>%PadTemplateFlags operator|(PadTemplateFlags, PadTemplateFlags)</tt><br> |
| 60 | * <tt>%PadTemplateFlags operator&(PadTemplateFlags, PadTemplateFlags)</tt><br> |
| 61 | * <tt>%PadTemplateFlags operator^(PadTemplateFlags, PadTemplateFlags)</tt><br> |
| 62 | * <tt>%PadTemplateFlags operator~(PadTemplateFlags)</tt><br> |
| 63 | * <tt>%PadTemplateFlags& operator|=(PadTemplateFlags&, PadTemplateFlags)</tt><br> |
| 64 | * <tt>%PadTemplateFlags& operator&=(PadTemplateFlags&, PadTemplateFlags)</tt><br> |
| 65 | * <tt>%PadTemplateFlags& operator^=(PadTemplateFlags&, PadTemplateFlags)</tt><br> |
| 66 | */ |
| 67 | enum PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# |
| 68 | { |
| 69 | PAD_TEMPLATE_FLAG_LASTcxx . . $ Gst/PAD_TEMPLATE_FLAG_LAST. = 0x100 |
| 70 | }; |
| 71 | |
| 72 | /** @ingroup gstreamermmEnums */ |
| 73 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# operatorcxx . . $ Gst/`operator|`(d74abf21c6ef094d).|(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 74 | { return static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); } |
| 75 | |
| 76 | /** @ingroup gstreamermmEnums */ |
| 77 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# operatorcxx . . $ Gst/`operator&`(d74abf21c6ef094d).&(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 78 | { return static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); } |
| 79 | |
| 80 | /** @ingroup gstreamermmEnums */ |
| 81 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# operatorcxx . . $ Gst/`operator^`(d74abf21c6ef094d).^(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 82 | { return static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); } |
| 83 | |
| 84 | /** @ingroup gstreamermmEnums */ |
| 85 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# operatorcxx . . $ Gst/`operator~`(d70d4214f8ccd33a).~(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# flags) |
| 86 | { return static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(~static_cast<unsigned>(flags)); } |
| 87 | |
| 88 | /** @ingroup gstreamermmEnums */ |
| 89 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& operatorcxx . . $ Gst/`operator|=`(bf76286cd3089c40).|=(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 90 | { return (lhs = static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); } |
| 91 | |
| 92 | /** @ingroup gstreamermmEnums */ |
| 93 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& operatorcxx . . $ Gst/`operator&=`(bf76286cd3089c40).&=(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 94 | { return (lhs = static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); } |
| 95 | |
| 96 | /** @ingroup gstreamermmEnums */ |
| 97 | inline PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& operatorcxx . . $ Gst/`operator^=`(bf76286cd3089c40).^=(PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#& lhs, PadTemplateFlagscxx . . $ Gst/PadTemplateFlags# rhs) |
| 98 | { return (lhs = static_cast<PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); } |
| 99 | |
| 100 | } // namespace Gst |
| 101 | |
| 102 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 103 | namespace Glibcxx . . $ Glib/ |
| 104 | { |
| 105 | |
| 106 | template <> |
| 107 | class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#> : public Glibcxx . . $ Glib/::Value_Flagscxx . . $ Glib/Value_Flags#<Gstcxx . . $ Gst/::PadTemplateFlagscxx . . $ Gst/PadTemplateFlags#> |
| 108 | { |
| 109 | public: |
| 110 | static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 111 | }; |
| 112 | |
| 113 | } // namespace Glib |
| 114 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 115 | |
| 116 | namespace Gstcxx . . $ Gst/ |
| 117 | { |
| 118 | |
| 119 | /** |
| 120 | * @var PadPresence PAD_ALWAYS |
| 121 | * The pad is always available. |
| 122 | * |
| 123 | * @var PadPresence PAD_SOMETIMES |
| 124 | * The pad will become available depending on the media stream. |
| 125 | * |
| 126 | * @var PadPresence PAD_REQUEST |
| 127 | * The pad is only available on request with |
| 128 | * Gst::Element::request_pad(). |
| 129 | * |
| 130 | * @enum PadPresence |
| 131 | * |
| 132 | * Indicates when this pad will become available. |
| 133 | * |
| 134 | * @ingroup gstreamermmEnums |
| 135 | */ |
| 136 | enum PadPresencecxx . . $ Gst/PadPresence# |
| 137 | { |
| 138 | PAD_ALWAYScxx . . $ Gst/PAD_ALWAYS., |
| 139 | PAD_SOMETIMEScxx . . $ Gst/PAD_SOMETIMES., |
| 140 | PAD_REQUESTcxx . . $ Gst/PAD_REQUEST. |
| 141 | }; |
| 142 | |
| 143 | } // namespace Gst |
| 144 | |
| 145 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 146 | namespace Glibcxx . . $ Glib/ |
| 147 | { |
| 148 | |
| 149 | template <> |
| 150 | class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::PadPresencecxx . . $ Gst/PadPresence#> : public Glibcxx . . $ Glib/::Value_Enumcxx . . $ Glib/Value_Enum#<Gstcxx . . $ Gst/::PadPresencecxx . . $ Gst/PadPresence#> |
| 151 | { |
| 152 | public: |
| 153 | static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 154 | }; |
| 155 | |
| 156 | } // namespace Glib |
| 157 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 158 | |
| 159 | namespace Gstcxx . . $ Gst/ |
| 160 | { |
| 161 | |
| 162 | |
| 163 | class Capscxx . . $ Gst/Caps#; |
| 164 | class Padcxx . . $ Gst/Pad#; |
| 165 | |
| 166 | /** A class that describes the media type of a pad. |
| 167 | * Padtemplates describe the possible media types a pad or an elementfactory |
| 168 | * can handle. This allows for both inspection of handled types before loading |
| 169 | * the element plugin as well as identifying pads on elements that are not yet |
| 170 | * created (request or sometimes pads). |
| 171 | * |
| 172 | * Gst::Pad and PadTemplates have Gst::Caps attached to it to describe the |
| 173 | * media type they are capable of dealing with. get_caps() is used to get the |
| 174 | * caps of a padtemplate. It's not possible to modify the caps of a padtemplate |
| 175 | * after creation. |
| 176 | * |
| 177 | * PadTemplates have a Gst::PadPresence property which identifies the lifetime |
| 178 | * of the pad and that can be retrieved with get_presence(). Also the direction |
| 179 | * of the pad can be retrieved from the GstPadTemplate with get_direction(). |
| 180 | * |
| 181 | * The get_name_template() method is important for Gst::PAD_REQUEST pads |
| 182 | * because it has to be used as the name in the |
| 183 | * Gst::Element::get_request_pad() call to instantiate a pad from this |
| 184 | * template. |
| 185 | * |
| 186 | * Padtemplates can be created with create(). |
| 187 | |
| 188 | * A padtemplate can be used to create a pad (see Gst::Pad::create() methods). |
| 189 | * |
| 190 | * Last reviewed on 2016-06-06 (1.8.0) |
| 191 | */ |
| 192 | |
| 193 | class PadTemplatecxx . . $ Gst/PadTemplate# : public Objectcxx . . $ Gst/Object# |
| 194 | { |
| 195 | |
| 196 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 197 | |
| 198 | public: |
| 199 | using CppObjectTypecxx . . $ Gst/PadTemplate#CppObjectType# = PadTemplatecxx . . $ Gst/PadTemplate#; |
| 200 | using CppClassTypecxx . . $ Gst/PadTemplate#CppClassType# = PadTemplate_Classcxx . . $ Gst/PadTemplate_Class#; |
| 201 | using BaseObjectTypecxx . . $ Gst/PadTemplate#BaseObjectType# = GstPadTemplatecxx . . $ GstPadTemplate#; |
| 202 | using BaseClassTypecxx . . $ Gst/PadTemplate#BaseClassType# = GstPadTemplateClasscxx . . $ GstPadTemplateClass#; |
| 203 | |
| 204 | // noncopyable |
| 205 | PadTemplatecxx . . $ Gst/PadTemplate#PadTemplate(b1c28a87e3e9bf76).(const PadTemplatecxx . . $ Gst/PadTemplate#&) = delete; |
| 206 | PadTemplatecxx . . $ Gst/PadTemplate#& operatorcxx . . $ Gst/PadTemplate#`operator=`(f0a354f9556d97b).=(const PadTemplatecxx . . $ Gst/PadTemplate#&) = delete; |
| 207 | |
| 208 | private: friend class PadTemplate_Classcxx . . $ Gst/PadTemplate_Class#; |
| 209 | static CppClassTypecxx . . $ Gst/PadTemplate#CppClassType# padtemplate_class_cxx . . $ Gst/PadTemplate#padtemplate_class_.; |
| 210 | |
| 211 | protected: |
| 212 | explicit PadTemplatecxx . . $ Gst/PadTemplate#PadTemplate(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params); |
| 213 | explicit PadTemplatecxx . . $ Gst/PadTemplate#PadTemplate(8d2c9cdbb1623732).(GstPadTemplatecxx . . $ GstPadTemplate#* castitem); |
| 214 | |
| 215 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 216 | |
| 217 | public: |
| 218 | |
| 219 | PadTemplatecxx . . $ Gst/PadTemplate#PadTemplate(fc67ed6b2e778e21).(PadTemplatecxx . . $ Gst/PadTemplate#&& src) noexcept; |
| 220 | PadTemplatecxx . . $ Gst/PadTemplate#& operatorcxx . . $ Gst/PadTemplate#`operator=`(459834b5b245bc2f).=(PadTemplatecxx . . $ Gst/PadTemplate#&& src) noexcept; |
| 221 | |
| 222 | ~cxx . . $ Gst/PadTemplate#`~PadTemplate`(ced63f7c635d850d).PadTemplatecxx . . $ Gst/PadTemplate#() noexcept override; |
| 223 | |
| 224 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 225 | */ |
| 226 | static GType get_typecxx . . $ Gst/PadTemplate#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 227 | |
| 228 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 229 | |
| 230 | |
| 231 | static GType get_base_typecxx . . $ Gst/PadTemplate#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 232 | #endif |
| 233 | |
| 234 | ///Provides access to the underlying C GObject. |
| 235 | GstPadTemplatecxx . . $ GstPadTemplate#* gobjcxx . . $ Gst/PadTemplate#gobj(a178b52555038b7a).() { return reinterpret_cast<GstPadTemplatecxx . . $ GstPadTemplate#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); } |
| 236 | |
| 237 | ///Provides access to the underlying C GObject. |
| 238 | const GstPadTemplatecxx . . $ GstPadTemplate#* gobjcxx . . $ Gst/PadTemplate#gobj(f8a104415d690da6).() const { return reinterpret_cast<GstPadTemplatecxx . . $ GstPadTemplate#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); } |
| 239 | |
| 240 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 241 | GstPadTemplatecxx . . $ GstPadTemplate#* gobj_copycxx . . $ Gst/PadTemplate#gobj_copy(a178b52555038b7a).(); |
| 242 | |
| 243 | private: |
| 244 | |
| 245 | |
| 246 | protected: |
| 247 | explicit PadTemplatecxx . . $ Gst/PadTemplate#PadTemplate(5fae1805ad3d96d8).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name_template, PadDirectioncxx . . $ Gst/PadDirection# direction, PadPresencecxx . . $ Gst/PadPresence# presence, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps); |
| 248 | |
| 249 | |
| 250 | public: |
| 251 | /** Creates a new pad template with a name according to the given template |
| 252 | * and with the given arguments. This functions takes ownership of the |
| 253 | * provided caps, so be sure to not use them afterwards. |
| 254 | * |
| 255 | * @param name_template The name template. |
| 256 | * @param direction The Gst::PadDirection of the template. |
| 257 | * @param presence The Gst::PadPresence of the pad. |
| 258 | * @param caps A Gst::Caps set for the template. The caps are taken ownership |
| 259 | * of. |
| 260 | * @return A new Gst::PadTemplate. |
| 261 | */ |
| 262 | |
| 263 | static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<PadTemplatecxx . . $ Gst/PadTemplate#> createcxx . . $ Gst/PadTemplate#create(f4b02866a8f5ecf).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name_template, PadDirectioncxx . . $ Gst/PadDirection# direction, PadPresencecxx . . $ Gst/PadPresence# presence, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps); |
| 264 | |
| 265 | |
| 266 | /** Gets the capabilities of the pad template. |
| 267 | * |
| 268 | * @return The Gst::Caps of the pad template. |
| 269 | * Unref after usage. |
| 270 | */ |
| 271 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> get_capscxx . . $ Gst/PadTemplate#get_caps(22811ab509ec2061).(); |
| 272 | |
| 273 | /** Gets the capabilities of the pad template. |
| 274 | * |
| 275 | * @return The Gst::Caps of the pad template. |
| 276 | * Unref after usage. |
| 277 | */ |
| 278 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> get_capscxx . . $ Gst/PadTemplate#get_caps(b365bf96c1803900).() const; |
| 279 | |
| 280 | /** Get the nametemplate of the padtemplate. |
| 281 | */ |
| 282 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# get_name_templatecxx . . $ Gst/PadTemplate#get_name_template(fff0f585954e56f3).() const; |
| 283 | |
| 284 | /** Get the Gst::PadDirection of the padtemplate. |
| 285 | */ |
| 286 | PadDirectioncxx . . $ Gst/PadDirection# get_directioncxx . . $ Gst/PadTemplate#get_direction(f7efc382e3c5b6e8).() const; |
| 287 | |
| 288 | /** Get the Gst::PadPresence of the padtemplate. |
| 289 | */ |
| 290 | PadPresencecxx . . $ Gst/PadPresence# get_presencecxx . . $ Gst/PadTemplate#get_presence(d3147174e7ab054d).() const; |
| 291 | |
| 292 | /** The capabilities of the pad described by the pad template. |
| 293 | * |
| 294 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 295 | * or receive notification when the value of the property changes. |
| 296 | */ |
| 297 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> > property_capscxx . . $ Gst/PadTemplate#property_caps(e0fc34847650ee7e).() const; |
| 298 | |
| 299 | |
| 300 | /** The direction of the pad described by the pad template. |
| 301 | * |
| 302 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 303 | * or receive notification when the value of the property changes. |
| 304 | */ |
| 305 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Gstcxx . . $ Gst/::PadDirectioncxx . . $ Gst/PadDirection# > property_directioncxx . . $ Gst/PadTemplate#property_direction(dc50ea6d86fb99f7).() const; |
| 306 | |
| 307 | |
| 308 | /** The name template of the pad template. |
| 309 | * |
| 310 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 311 | * or receive notification when the value of the property changes. |
| 312 | */ |
| 313 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# > property_name_templatecxx . . $ Gst/PadTemplate#property_name_template(a4e4efe7e17f9e88).() const; |
| 314 | |
| 315 | |
| 316 | /** When the pad described by the pad template will become available. |
| 317 | * |
| 318 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 319 | * or receive notification when the value of the property changes. |
| 320 | */ |
| 321 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Gstcxx . . $ Gst/::PadPresencecxx . . $ Gst/PadPresence# > property_presencecxx . . $ Gst/PadTemplate#property_presence(2f3ca4be3b0a7546).() const; |
| 322 | |
| 323 | |
| 324 | /** |
| 325 | * @par Slot Prototype: |
| 326 | * <tt>void on_my_%pad_created(const Glib::RefPtr<Gst::Pad>& pad)</tt> |
| 327 | * |
| 328 | * This signal is fired when an element creates a pad from this template. |
| 329 | * |
| 330 | * @param pad The pad that was created. |
| 331 | */ |
| 332 | |
| 333 | Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void,const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Padcxx . . $ Gst/Pad#>& > signal_pad_createdcxx . . $ Gst/PadTemplate#signal_pad_created(b8ac1dfc5db9f846).(); |
| 334 | |
| 335 | |
| 336 | //gst_pad_template_pad_created emits the "pad-created" signal. It seems |
| 337 | //internal to C API (it is not found in API docs) so ignore it. |
| 338 | |
| 339 | |
| 340 | public: |
| 341 | |
| 342 | public: |
| 343 | //C++ methods used to invoke GTK+ virtual functions: |
| 344 | |
| 345 | protected: |
| 346 | //GTK+ Virtual Functions (override these to change behaviour): |
| 347 | |
| 348 | //Default Signal Handlers:: |
| 349 | /// This is a default handler for the signal signal_pad_created(). |
| 350 | virtual void on_pad_createdcxx . . $ Gst/PadTemplate#on_pad_created(6d8541f3277dd441).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Padcxx . . $ Gst/Pad#>& pad); |
| 351 | |
| 352 | |
| 353 | }; |
| 354 | |
| 355 | |
| 356 | class StaticPadTemplatecxx . . $ Gst/StaticPadTemplate# |
| 357 | { |
| 358 | public: |
| 359 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 360 | using CppObjectTypecxx . . $ Gst/StaticPadTemplate#CppObjectType# = StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#; |
| 361 | using BaseObjectTypecxx . . $ Gst/StaticPadTemplate#BaseObjectType# = GstStaticPadTemplate; |
| 362 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 363 | |
| 364 | StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#StaticPadTemplate(1bf4293e328b3d02).(const StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& other) noexcept; |
| 365 | StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& operatorcxx . . $ Gst/StaticPadTemplate#`operator=`(6f78882d58d0e639).=(const StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& other) noexcept; |
| 366 | |
| 367 | StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#StaticPadTemplate(219ae700d9ebd709).(StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#&& other) noexcept; |
| 368 | StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& operatorcxx . . $ Gst/StaticPadTemplate#`operator=`(4c6438862914f3f4).=(StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#&& other) noexcept; |
| 369 | |
| 370 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 371 | */ |
| 372 | static GType get_typecxx . . $ Gst/StaticPadTemplate#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 373 | |
| 374 | StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#StaticPadTemplate(49f6e7a06ebc5aa8).(); |
| 375 | |
| 376 | explicit StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#StaticPadTemplate(32b2c4d48dcd5c69).(const GstStaticPadTemplate* gobject); // always takes a copy |
| 377 | |
| 378 | ///Provides access to the underlying C instance. |
| 379 | GstStaticPadTemplate* gobjcxx . . $ Gst/StaticPadTemplate#gobj(3af04e42fe8920d7).() { return &gobject_cxx . . $ Gst/StaticPadTemplate#gobject_.; } |
| 380 | |
| 381 | ///Provides access to the underlying C instance. |
| 382 | const GstStaticPadTemplate* gobjcxx . . $ Gst/StaticPadTemplate#gobj(f834d7bda755cb55).() const { return &gobject_cxx . . $ Gst/StaticPadTemplate#gobject_.; } |
| 383 | |
| 384 | protected: |
| 385 | GstStaticPadTemplate gobject_cxx . . $ Gst/StaticPadTemplate#gobject_.; |
| 386 | |
| 387 | private: |
| 388 | |
| 389 | |
| 390 | public: |
| 391 | |
| 392 | |
| 393 | /** Gets the capabilities of the static pad template. |
| 394 | * |
| 395 | * @return The Gst::Caps of the static pad template. |
| 396 | * Unref after usage. Since the core holds an additional |
| 397 | * ref to the returned caps, use gst_caps_make_writable() |
| 398 | * on the returned caps to modify it. |
| 399 | */ |
| 400 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> get_capscxx . . $ Gst/StaticPadTemplate#get_caps(22811ab509ec2061).(); |
| 401 | |
| 402 | /** Gets the capabilities of the static pad template. |
| 403 | * |
| 404 | * @return The Gst::Caps of the static pad template. |
| 405 | * Unref after usage. Since the core holds an additional |
| 406 | * ref to the returned caps, use gst_caps_make_writable() |
| 407 | * on the returned caps to modify it. |
| 408 | */ |
| 409 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> get_capscxx . . $ Gst/StaticPadTemplate#get_caps(b365bf96c1803900).() const; |
| 410 | |
| 411 | |
| 412 | /** Converts a Gst::StaticPadTemplate into a Gst::PadTemplate. |
| 413 | * |
| 414 | * @return A new Gst::PadTemplate. |
| 415 | */ |
| 416 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::PadTemplatecxx . . $ Gst/PadTemplate#> getcxx . . $ Gst/StaticPadTemplate#get(a45bef703c90203f).(); |
| 417 | |
| 418 | /** Get the nametemplate of the padtemplate. |
| 419 | */ |
| 420 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# get_name_templatecxx . . $ Gst/StaticPadTemplate#get_name_template(fff0f585954e56f3).() const; |
| 421 | |
| 422 | /** Get the Gst::PadDirection of the padtemplate. |
| 423 | */ |
| 424 | PadDirectioncxx . . $ Gst/PadDirection# get_directioncxx . . $ Gst/StaticPadTemplate#get_direction(f7efc382e3c5b6e8).() const; |
| 425 | |
| 426 | /** Get the Gst::PadPresence of the padtemplate. |
| 427 | */ |
| 428 | PadPresencecxx . . $ Gst/PadPresence# get_presencecxx . . $ Gst/StaticPadTemplate#get_presence(d3147174e7ab054d).() const; |
| 429 | |
| 430 | |
| 431 | }; |
| 432 | |
| 433 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 434 | struct StaticPadTemplateTraitscxx . . $ Gst/StaticPadTemplateTraits# |
| 435 | { |
| 436 | typedef const Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate# CppTypecxx . . $ Gst/StaticPadTemplateTraits#CppType#; |
| 437 | typedef const GstStaticPadTemplate * CTypecxx . . $ Gst/StaticPadTemplateTraits#CType#; |
| 438 | typedef GstStaticPadTemplate * CTypeNonConstcxx . . $ Gst/StaticPadTemplateTraits#CTypeNonConst#; |
| 439 | |
| 440 | static CTypecxx . . $ Gst/StaticPadTemplateTraits#CType# to_c_typecxx . . $ Gst/StaticPadTemplateTraits#to_c_type(f9082b085e9cdd2c). (CppTypecxx . . $ Gst/StaticPadTemplateTraits#CppType#& obj) { return obj.gobjcxx . . $ Gst/StaticPadTemplate#gobj(f834d7bda755cb55).(); } |
| 441 | static CTypecxx . . $ Gst/StaticPadTemplateTraits#CType# to_c_typecxx . . $ Gst/StaticPadTemplateTraits#to_c_type(75644f578e036b8a). (CTypecxx . . $ Gst/StaticPadTemplateTraits#CType# ptr) { return ptr; } |
| 442 | static CppTypecxx . . $ Gst/StaticPadTemplateTraits#CppType# to_cpp_typecxx . . $ Gst/StaticPadTemplateTraits#to_cpp_type(18b836904e202913). (CTypecxx . . $ Gst/StaticPadTemplateTraits#CType# ptr) |
| 443 | { |
| 444 | return CppTypecxx . . $ Gst/StaticPadTemplateTraits#CppType#(const_cast<CTypeNonConstcxx . . $ Gst/StaticPadTemplateTraits#CTypeNonConst#>(ptr)); |
| 445 | } |
| 446 | |
| 447 | static void release_c_typecxx . . $ Gst/StaticPadTemplateTraits#release_c_type(32b2c4d48dcd5c69). (CTypecxx . . $ Gst/StaticPadTemplateTraits#CType#) |
| 448 | { |
| 449 | } |
| 450 | }; |
| 451 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 452 | |
| 453 | } //namespace Gst |
| 454 | |
| 455 | |
| 456 | namespace Glibcxx . . $ Glib/ |
| 457 | { |
| 458 | /** A Glib::wrap() method for this object. |
| 459 | * |
| 460 | * @param object The C instance. |
| 461 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 462 | * @result A C++ instance that wraps this C instance. |
| 463 | * |
| 464 | * @relates Gst::PadTemplate |
| 465 | */ |
| 466 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::PadTemplatecxx . . $ Gst/PadTemplate#> wrapcxx . . $ Glib/wrap(3668c1526acfc0ed).(GstPadTemplatecxx . . $ GstPadTemplate#* object, bool take_copy = false); |
| 467 | } |
| 468 | |
| 469 | |
| 470 | namespace Glibcxx . . $ Glib/ |
| 471 | { |
| 472 | |
| 473 | /** @relates Gst::StaticPadTemplate |
| 474 | * @param object The C instance |
| 475 | * @result A C++ instance that wraps this C instance. |
| 476 | */ |
| 477 | Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& wrapcxx . . $ Glib/wrap(d3623727444d61d).(GstStaticPadTemplate* object); |
| 478 | |
| 479 | /** @relates Gst::StaticPadTemplate |
| 480 | * @param object The C instance |
| 481 | * @result A C++ instance that wraps this C instance. |
| 482 | */ |
| 483 | const Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#& wrapcxx . . $ Glib/wrap(58a65366c525b167).(const GstStaticPadTemplate* object); |
| 484 | |
| 485 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 486 | template <> |
| 487 | class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#> : public Glibcxx . . $ Glib/::Value_Boxedcxx . . $ Glib/Value_Boxed#<Gstcxx . . $ Gst/::StaticPadTemplatecxx . . $ Gst/StaticPadTemplate#> |
| 488 | {}; |
| 489 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 490 | |
| 491 | } // namespace Glib |
| 492 | |
| 493 | |
| 494 | #endif /* _GSTREAMERMM_PADTEMPLATE_H */ |
| 495 |