Function sixtyfps_corelib::item_tree::visit_items
source · [−]pub fn visit_items<State>(
component: &ComponentRc,
order: TraversalOrder,
visitor: impl FnMut(&ComponentRc, Pin<ItemRef<'_>>, usize, &State) -> ItemVisitorResult<State>,
state: State
) -> VisitChildrenResult
Expand description
Visit each items recursively
The state parameter returned by the visitor is passed to each children.
Returns the index of the item that cancelled, or -1 if nobody cancelled