pub enum StyleState<S: AsRef<str>> {
Hover,
Pressed,
Checked,
Disabled,
Focused,
Open,
Closed,
Drag,
Drop,
DropDenied,
Custom(S),
}
Expand description
Widget states
Variants§
Hover
When the mouse is over the widget
Pressed
When the mouse is clicking on the widget
Checked
When the widget is in a checked state (checkbox, radio button)
Disabled
When a widget is disabled
Focused
When a widget has input focus
Open
When a widget in an expanded state
Closed
When a widget is in a collapsed state
Drag
When a drag widget is being dragged
Drop
When a drop widget accepts a dragged widget before it’s dropped
DropDenied
When a drop widget denies a dragged widget
Custom(S)
Custom state for custom widgets
Trait Implementations§
Source§impl<S: Clone + AsRef<str>> Clone for StyleState<S>
impl<S: Clone + AsRef<str>> Clone for StyleState<S>
Source§fn clone(&self) -> StyleState<S>
fn clone(&self) -> StyleState<S>
Returns a duplicate 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<A: AsRef<str>, B: AsRef<str>> PartialEq<StyleState<B>> for StyleState<A>
impl<A: AsRef<str>, B: AsRef<str>> PartialEq<StyleState<B>> for StyleState<A>
Auto Trait Implementations§
impl<S> Freeze for StyleState<S>where
S: Freeze,
impl<S> RefUnwindSafe for StyleState<S>where
S: RefUnwindSafe,
impl<S> Send for StyleState<S>where
S: Send,
impl<S> Sync for StyleState<S>where
S: Sync,
impl<S> Unpin for StyleState<S>where
S: Unpin,
impl<S> UnwindSafe for StyleState<S>where
S: UnwindSafe,
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