#[repr(C)]pub struct PseudoStateFlags {
pub hover: bool,
pub active: bool,
pub focused: bool,
pub disabled: bool,
pub checked: bool,
pub focus_within: bool,
pub visited: bool,
}Expand description
State flags for pseudo-classes (used in DynamicSelectorContext) Note: This is a CSS-only version. See azul_core::styled_dom::StyledNodeState for the main type.
Fields§
§hover: bool§active: bool§focused: bool§disabled: bool§checked: bool§focus_within: bool§visited: boolImplementations§
Source§impl PseudoStateFlags
impl PseudoStateFlags
Sourcepub fn has_state(&self, state: PseudoStateType) -> bool
pub fn has_state(&self, state: PseudoStateType) -> bool
Check if a specific pseudo-state is active
Trait Implementations§
Source§impl Clone for PseudoStateFlags
impl Clone for PseudoStateFlags
Source§fn clone(&self) -> PseudoStateFlags
fn clone(&self) -> PseudoStateFlags
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 PseudoStateFlags
impl Debug for PseudoStateFlags
Source§impl Default for PseudoStateFlags
impl Default for PseudoStateFlags
Source§fn default() -> PseudoStateFlags
fn default() -> PseudoStateFlags
Returns the “default value” for a type. Read more
Source§impl Hash for PseudoStateFlags
impl Hash for PseudoStateFlags
Source§impl PartialEq for PseudoStateFlags
impl PartialEq for PseudoStateFlags
impl Copy for PseudoStateFlags
impl Eq for PseudoStateFlags
impl StructuralPartialEq for PseudoStateFlags
Auto Trait Implementations§
impl Freeze for PseudoStateFlags
impl RefUnwindSafe for PseudoStateFlags
impl Send for PseudoStateFlags
impl Sync for PseudoStateFlags
impl Unpin for PseudoStateFlags
impl UnwindSafe for PseudoStateFlags
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