ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
use crate::reactive::IDisposable;
use std::rc::Rc;

/// Something that tells when it has been closed.
pub trait ICloseable {
    /// Raised when the object has been closed. Disposing the returned
    /// handle unsubscribes.
    fn closed(&self, handler: Rc<dyn Fn()>) -> Rc<dyn IDisposable>;
}