Trait cushy::styles::RequireInvalidation

source ·
pub trait RequireInvalidation {
    // Required method
    fn requires_invalidation(&self) -> bool;
}
Expand description

Describes whether a type should invalidate a widget.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl RequireInvalidation for Lp

source§

impl RequireInvalidation for Px

Implementors§