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§

source

fn metadata<'a>(&self, key: &str) -> Option<&'a str>

Get metadata with key in self.

§key

the key to get

§Returns

the metadata for key.

source

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.

source

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.

Implementations on Foreign Types§

source§

impl<T: IsA<Element> + IsClass> ElementClassExt for Class<T>

Implementors§