pub enum ThemeState {
Normal,
Hovered,
Pressed,
Focused,
Disabled,
Selected,
Invalid,
}Expand description
Shared semantic widget states for theme-driven controls.
Values cover normal, hover, press, focus, disabled, selected, and invalid control states.
§Examples
use ailloli_ui_core::style::ThemeState;
assert_ne!(ThemeState::Normal, ThemeState::Invalid);Variants§
Normal
Idle enabled state.
Hovered
Pointer is over the control.
Pressed
An activation gesture is held.
Focused
Control owns keyboard focus.
Disabled
Control does not accept interaction.
Selected
Control or option is selected.
Invalid
Current value failed validation.
Trait Implementations§
Source§impl Clone for ThemeState
impl Clone for ThemeState
Source§fn clone(&self) -> ThemeState
fn clone(&self) -> ThemeState
Returns a copy 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 Debug for ThemeState
impl Debug for ThemeState
Source§impl PartialEq for ThemeState
impl PartialEq for ThemeState
impl Copy for ThemeState
impl Eq for ThemeState
impl StructuralPartialEq for ThemeState
Auto Trait Implementations§
impl Freeze for ThemeState
impl RefUnwindSafe for ThemeState
impl Send for ThemeState
impl Sync for ThemeState
impl Unpin for ThemeState
impl UnwindSafe for ThemeState
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