pub struct Variants {
pub hovered: Option<StylePatch>,
pub focused: Option<StylePatch>,
pub pressed: Option<StylePatch>,
pub disabled: Option<StylePatch>,
}Expand description
The style patches of one node, one per interaction state.
An element builds this through its
hover,
focused,
pressed and
disabled_style methods. A node
without any patch never changes its style with its interaction state.
Fields§
§hovered: Option<StylePatch>Applied while the node is in the hovered chain.
focused: Option<StylePatch>Applied while the node holds the keyboard focus and the focus last moved by keyboard navigation.
pressed: Option<StylePatch>Applied while a primary press is held on the node.
disabled: Option<StylePatch>Applied while the node is disabled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Variants
impl !Send for Variants
impl !Sync for Variants
impl !UnwindSafe for Variants
impl Forget for Variants
impl Freeze for Variants
impl Move for Variants
impl Unpin for Variants
impl UnsafeUnpin for Variants
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