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§
sourcefn on_destroy<F: FnOnce() + 'static>(&self, func: F)
fn on_destroy<F: FnOnce() + 'static>(&self, func: F)
Runs the given function when the object is destroyed.