cushy::context

Trait Trackable

source
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§

source

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.

source

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.

Implementors§

source§

impl<T> Trackable for T
where T: Trackable,