pub struct VisualState(/* private fields */);Expand description
Visual state the tree tracks on the widget’s behalf.
Widgets do not track hover or press themselves. The tree does, and it marks the node dirty when any of these change — which is the whole reason a stale-pixel bug cannot come from a widget forgetting to invalidate on hover.
Implementations§
Source§impl VisualState
impl VisualState
Trait Implementations§
Source§impl BitOr for VisualState
impl BitOr for VisualState
Source§impl Clone for VisualState
impl Clone for VisualState
Source§fn clone(&self) -> VisualState
fn clone(&self) -> VisualState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VisualState
Source§impl Debug for VisualState
impl Debug for VisualState
Source§impl Default for VisualState
impl Default for VisualState
Source§fn default() -> VisualState
fn default() -> VisualState
Returns the “default value” for a type. Read more
impl Eq for VisualState
Source§impl Hash for VisualState
impl Hash for VisualState
Source§impl PartialEq for VisualState
impl PartialEq for VisualState
impl StructuralPartialEq for VisualState
Auto Trait Implementations§
impl Freeze for VisualState
impl RefUnwindSafe for VisualState
impl Send for VisualState
impl Sync for VisualState
impl Unpin for VisualState
impl UnsafeUnpin for VisualState
impl UnwindSafe for VisualState
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