Trait relm4::RelmObjectExt

source ·
pub trait RelmObjectExt {
    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§

source§

impl<T: IsA<Object>> RelmObjectExt for T