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
10
use crate::media::ITransform;
use crate::reactive::IDisposable;
use std::rc::Rc;

/// A transform whose value can change.
pub trait IMutableTransform: ITransform {
    /// Subscribes to changes of the transform. Disposing the returned handle
    /// unsubscribes.
    fn changed(&self, handler: Rc<dyn Fn()>) -> Rc<dyn IDisposable>;
}