pub struct Dirty(/* private fields */);Expand description
What changed since the decoration was last drawn.
Reserved for a partial-redraw path, as upstream reserves it:
Renderer::draw reads none of these bits today
and repaints the whole decoration whatever is set.
A bitmask rather than a bool so a caller can already record what changed: redrawing a title bar because the pointer moved over a button needs only a rounded-rect fill, while redrawing it because the geometry changed needs a blur, and a bool could not tell the two apart.
Implementations§
Trait Implementations§
impl Copy for Dirty
impl Eq for Dirty
impl StructuralPartialEq for Dirty
Auto Trait Implementations§
impl Freeze for Dirty
impl RefUnwindSafe for Dirty
impl Send for Dirty
impl Sync for Dirty
impl Unpin for Dirty
impl UnsafeUnpin for Dirty
impl UnwindSafe for Dirty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more