Trait gstreamer::prelude::ElementClassExt
source · pub unsafe trait ElementClassExt {
// Provided methods
fn metadata<'a>(&self, key: &str) -> Option<&'a str> { ... }
fn pad_template(&self, name: &str) -> Option<PadTemplate> { ... }
fn pad_template_list(&self) -> List<PadTemplate> { ... }
}
Provided Methods§
sourcefn pad_template(&self, name: &str) -> Option<PadTemplate>
fn pad_template(&self, name: &str) -> Option<PadTemplate>
Retrieves a padtemplate from self
with the given name.
If you use this function in the GInstanceInitFunc of an object class that has subclasses, make sure to pass the g_class parameter of the GInstanceInitFunc here.
§name
the name of the PadTemplate
to get.
§Returns
the PadTemplate
with the
given name, or None
if none was found. No unreferencing is
necessary.
sourcefn pad_template_list(&self) -> List<PadTemplate>
fn pad_template_list(&self) -> List<PadTemplate>
Retrieves a list of the pad templates associated with self
. The
list must not be modified by the calling code.
If you use this function in the GInstanceInitFunc of an object class that has subclasses, make sure to pass the g_class parameter of the GInstanceInitFunc here.
§Returns
the GList
of
pad templates.