Struct sixtyfps_corelib::properties::PropertyTracker [−][src]
pub struct PropertyTracker<ChangeHandler = ()> { /* fields omitted */ }
Expand description
This structure allow to run a closure that queries properties, and can report if any property we accessed have become dirty
Implementations
Any of the properties accessed during the last evaluation of the closure called from the last call to evaluate is potentially dirty.
Evaluate the function, and record dependencies of properties accessed within this function. If this is called during the evaluation of another property binding or property tracker, then any changes to accessed properties will also mark the other binding/tracker dirty.
Evaluate the function, and record dependencies of properties accessed within this function. If this is called during the evaluation of another property binding or property tracker, then any changes to accessed properties will not propagate to the other tracker.
Call Self::evaluate
if and only if it is dirty.
But register a dependency in any case.
Sets the specified callback handler function, which will be called if any properties that this tracker depends on change their value.