pub trait RequireInvalidation {
// Required method
fn requires_invalidation(&self) -> bool;
}
Expand description
Describes whether a type should invalidate a widget.
Required Methods§
sourcefn requires_invalidation(&self) -> bool
fn requires_invalidation(&self) -> bool
Cushy tracks two different states:
- Whether to repaint the window
- Whether to relayout a widget
If a value change of self
may require a relayout, this should return
true.