pub enum State {
Active,
Disabled,
Normal,
Readonly,
}
Expand description
The kinds of activity state for a widget, e.g. if it is currently available to use or disabled.
Variants§
Active
Used, e.g., for buttons, to highlight when a mouse pointer is over them.
Disabled
Used to prevent user-interaction with a widget.
Normal
The usual state of a widget, permitting user interactions.
Readonly
State cannot be changed, for those widgets with editable state.
Trait Implementations§
source§impl PartialEq for State
impl PartialEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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