Trait relm4::RelmObjectExt

source ·
pub trait RelmObjectExt {
    // Required method
    fn on_destroy<F: FnOnce() + 'static>(&self, func: F);
}
Expand description

Trait that extends gtk::prelude::ObjectExt.

Required Methods§

source

fn on_destroy<F: FnOnce() + 'static>(&self, func: F)

Runs the given function when the object is destroyed.

Implementors§