pub enum WidgetState {
Hovered,
Focused,
Pressed,
Dragged,
Selected,
ScrolledUnder,
Disabled,
Error,
}Expand description
One thing a widget can be doing (widget_state.dart:168).
The reference’s eight, unchanged. Not all of them are answerable from outside a
widget — see Status::states.
Variants§
Hovered
A pointer is over it.
Focused
The keyboard has reached it.
Pressed
It is being held down.
Dragged
It is being dragged from one place to another — not that something is being dragged over it, which is the drop target’s business.
Selected
It is one of a set and it is the chosen one: a tab, a radio, a checked box.
ScrolledUnder
It overlaps the content of a scrollable passing beneath it — what an app bar goes by to decide it is no longer flush with the page.
Disabled
It cannot be interacted with, and so is in none of the four states above.
Error
It holds something invalid.
Trait Implementations§
Source§impl BitOr for WidgetState
impl BitOr for WidgetState
Source§type Output = WidgetStates
type Output = WidgetStates
The resulting type after applying the
| operator.Source§fn bitor(self, other: WidgetState) -> WidgetStates
fn bitor(self, other: WidgetState) -> WidgetStates
Performs the
| operation. Read moreSource§impl BitOr<WidgetState> for WidgetStates
impl BitOr<WidgetState> for WidgetStates
Source§type Output = WidgetStates
type Output = WidgetStates
The resulting type after applying the
| operator.Source§fn bitor(self, state: WidgetState) -> WidgetStates
fn bitor(self, state: WidgetState) -> WidgetStates
Performs the
| operation. Read moreSource§impl Clone for WidgetState
impl Clone for WidgetState
impl Copy for WidgetState
Source§impl Debug for WidgetState
impl Debug for WidgetState
impl Eq for WidgetState
Source§impl From<WidgetState> for WidgetStates
impl From<WidgetState> for WidgetStates
Source§fn from(state: WidgetState) -> Self
fn from(state: WidgetState) -> Self
Converts to this type from the input type.
Source§impl From<WidgetState> for StateFilter
impl From<WidgetState> for StateFilter
Source§fn from(state: WidgetState) -> Self
fn from(state: WidgetState) -> Self
Converts to this type from the input type.
Source§impl Hash for WidgetState
impl Hash for WidgetState
Source§impl PartialEq for WidgetState
impl PartialEq for WidgetState
impl StructuralPartialEq for WidgetState
Auto Trait Implementations§
impl Freeze for WidgetState
impl RefUnwindSafe for WidgetState
impl Send for WidgetState
impl Sync for WidgetState
impl Unpin for WidgetState
impl UnsafeUnpin for WidgetState
impl UnwindSafe for WidgetState
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