Skip to main content

Module interaction

Module interaction 

Source
Expand description

Platform-agnostic interaction visual-effect filtering shared by retained scene backends.

Enums§

VisualInteractionDirty
Stack-first inline-32 buffer of nodes whose paint can change under interaction pseudo-state transitions (0 heap allocations for <= 32 dirty nodes; spills to Vec only above 32).

Functions§

filter_visual_interaction_dirty
Filters dirty to nodes that can visually change under interaction pseudo-state transitions with zero heap allocations for <= 32 dirty nodes.
has_visual_interaction_effect
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).