pub struct WidgetStates(/* private fields */);Implementations§
Source§impl WidgetStates
impl WidgetStates
pub const DISABLED: Self
pub const HOVERED: Self
pub const ACTIVE: Self
pub const FOCUSED: Self
pub const FOCUS_VISIBLE: Self
pub const SELECTED: Self
pub const OPEN: Self
pub const fn empty() -> Self
pub const fn contains(self, other: Self) -> bool
pub fn has(self, state: WidgetState) -> bool
pub fn insert(&mut self, state: WidgetState)
pub fn remove(&mut self, state: WidgetState)
pub fn set(&mut self, state: WidgetState, enabled: bool)
pub fn from_pressable<H: UiHost>( cx: &mut ElementContext<'_, H>, st: PressableState, enabled: bool, ) -> Self
Trait Implementations§
Source§impl BitOr for WidgetStates
impl BitOr for WidgetStates
Source§impl BitOrAssign for WidgetStates
impl BitOrAssign for WidgetStates
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for WidgetStates
impl Clone for WidgetStates
Source§fn clone(&self) -> WidgetStates
fn clone(&self) -> WidgetStates
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 Debug for WidgetStates
impl Debug for WidgetStates
Source§impl Default for WidgetStates
impl Default for WidgetStates
Source§fn default() -> WidgetStates
fn default() -> WidgetStates
Returns the “default value” for a type. Read more
Source§impl From<WidgetState> for WidgetStates
impl From<WidgetState> for WidgetStates
Source§fn from(value: WidgetState) -> Self
fn from(value: WidgetState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WidgetStates
impl PartialEq for WidgetStates
impl Copy for WidgetStates
impl Eq for WidgetStates
impl StructuralPartialEq for WidgetStates
Auto Trait Implementations§
impl Freeze for WidgetStates
impl RefUnwindSafe for WidgetStates
impl Send for WidgetStates
impl Sync for WidgetStates
impl Unpin for WidgetStates
impl UnsafeUnpin for WidgetStates
impl UnwindSafe for WidgetStates
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