pub struct DirtyFlags {
pub paint: bool,
}Expand description
Whether scene painting is pending.
This one-bit value is independent of retained element dirtiness and does not schedule work by itself.
§Examples
use ailloli_ui_runtime::scene::DirtyFlags;
assert_eq!(DirtyFlags::default(), DirtyFlags::clean());Fields§
§paint: booltrue when the scene should be repainted.
Implementations§
Trait Implementations§
Source§impl Clone for DirtyFlags
impl Clone for DirtyFlags
Source§fn clone(&self) -> DirtyFlags
fn clone(&self) -> DirtyFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirtyFlags
impl Debug for DirtyFlags
Source§impl Default for DirtyFlags
impl Default for DirtyFlags
Source§fn default() -> DirtyFlags
fn default() -> DirtyFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for DirtyFlags
impl PartialEq for DirtyFlags
impl Copy for DirtyFlags
impl Eq for DirtyFlags
impl StructuralPartialEq for DirtyFlags
Auto Trait Implementations§
impl Freeze for DirtyFlags
impl RefUnwindSafe for DirtyFlags
impl Send for DirtyFlags
impl Sync for DirtyFlags
impl Unpin for DirtyFlags
impl UnwindSafe for DirtyFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.