cushy::styles

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