Struct flo_ui::DiffViewModel
[−]
[src]
pub struct DiffViewModel { /* fields omitted */ }
Tracks differences in the viewmodel attached to a controller and its subtree
Methods
impl DiffViewModel
[src]
pub fn new(controller: Arc<Controller>) -> DiffViewModel
[src]
Creates a new viewmodel tracker for a particular controller
pub fn watch(&self) -> WatchViewModel
[src]
Reads the current state of the controller and creates a watcher for any changes that might occur to it.
pub fn rotate_watch(
&self,
last_watch: WatchViewModel
) -> (Vec<ViewModelUpdate>, WatchViewModel)
[src]
&self,
last_watch: WatchViewModel
) -> (Vec<ViewModelUpdate>, WatchViewModel)
Reads the updates from a WatchViewModel and create a new one that will see future updates