Skip to main content

Module modifier_node

Module modifier_node 

Source
Expand description

Persistent modifier nodes: state attached to a modifier that survives recomposition.

A ModifierNodeElement describes a node; Modifier::node attaches it. During reconciliation the tree keeps the previous node when the element type and key match, and calls ModifierNodeElement::update on it instead of building a new one. Node state therefore survives the modifier being rebuilt every frame, which is what gestures, timers, and scroll physics need.

Structs§

ModifierNodeHandle
One element and its node, stored on a Modifier.

Traits§

ModifierNode
A live modifier node.
ModifierNodeElement
A description of one modifier node.