Skip to main content

ElementClassExt

Trait 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>

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>

GInstanceInitFunc here.

§Returns

the GList of pad templates.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§