gtk4::subclass::widget

Trait CompositeTemplate

Source
pub trait CompositeTemplate: WidgetImpl {
    // Required methods
    fn bind_template(klass: &mut Self::Class);
    fn check_template_children(widget: &<Self as ObjectSubclass>::Type);
}
Expand description

A trait for setting up template children inside class_init. This trait is implemented automatically by the CompositeTemplate macro.

Required Methods§

Source

fn bind_template(klass: &mut Self::Class)

Source

fn check_template_children(widget: &<Self as ObjectSubclass>::Type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§