#[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 seat_focused: bool,
pub visited: bool,
pub backdrop: bool,
pub dragging: bool,
pub drag_over: bool,
pub placeholder: 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§seat_focused: boolA NON-primary pointer seat focuses the node (:seat-focus).
visited: bool§backdrop: boolWindow is not focused (equivalent to GTK :backdrop)
dragging: boolElement is currently being dragged (:dragging)
drag_over: boolA dragged element is over this drop target (:drag-over)
placeholder: boolThe PROMPT of an empty editable is being styled (::placeholder).
A pseudo-ELEMENT, not a state of the node: it is never set on a real
node during the cascade. The engine turns it on for the one resolve
that produces the prompt’s own style, which is why it rides here -
the whole ::placeholder rule set then flows through the SAME
bucketing, inheritance and lookup path as :hover and :focus,
with no parallel storage to keep in sync.
Implementations§
Source§impl PseudoStateFlags
impl PseudoStateFlags
Sourcepub const fn has_state(&self, state: PseudoStateType) -> bool
pub const 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more