pub trait Trackable: Trackable {
// Provided methods
fn redraw_when_changed(&self, context: &WidgetContext<'_>)
where Self: Sized { ... }
fn invalidate_when_changed(&self, context: &WidgetContext<'_>)
where Self: Sized { ... }
}
Expand description
A type that can be tracked to refresh or invalidate widgets.
Provided Methods§
sourcefn redraw_when_changed(&self, context: &WidgetContext<'_>)where
Self: Sized,
fn redraw_when_changed(&self, context: &WidgetContext<'_>)where
Self: Sized,
Marks the widget for redraw when this value is updated.
This function has no effect if the value is constant.
sourcefn invalidate_when_changed(&self, context: &WidgetContext<'_>)where
Self: Sized,
fn invalidate_when_changed(&self, context: &WidgetContext<'_>)where
Self: Sized,
Marks the widget for redraw when this value is updated.
This function has no effect if the value is constant.