Skip to main content

has_visual_interaction_effect

Function has_visual_interaction_effect 

Source
pub fn has_visual_interaction_effect(
    store: &NodeStore,
    id: NodeId,
    dirty_paint_paras: &[NodeId],
) -> bool
Expand description

Returns true when an interaction state change (:hover/:active/:focus/:disabled) on id can actually alter painted output (either id is an inline node lifted to a paragraph, a dirty paragraph root, carries StateRules, or can draw a focus ring / text caret).

Filtering out plain ancestor containers (e.g. NodeId::ROOT or wrapper view {} nodes with no StateRules) keeps inline :hover toggles strictly on the O(1) zero-allocation try_update_paragraphs_in_place fast path.