gtk4::subclass::widget

Trait CompositeTemplateClass

Source
pub trait CompositeTemplateClass {
    // Required method
    fn bind_template(&mut self);
}
Expand description

An extension trait for ClassStruct types to allow binding a composite template directly on self. This is a convenience wrapper around the CompositeTemplate trait.

Required Methods§

Source

fn bind_template(&mut self)

Binds the template callbacks from this type into the default template scope for self.

Implementors§

Source§

impl<T, U> CompositeTemplateClass for T
where T: ClassStruct<Type = U>, U: ObjectSubclass<Class = T> + CompositeTemplate,