pub fn stack_nodes(
nodes: impl IntoUiNode,
index: impl IntoVar<usize>,
constraints: impl Fn(PxConstraints2d, usize, Size2D<Px, Px>) -> PxConstraints2d + Send + 'static,
) -> UiNodeExpand description
Basic Z-stack node sized by one of the items.
Creates a node that updates the nodes in the logical order they appear, renders them one on top of the other from back(0)
to front(len-1), but layouts the index item first and uses its size to get constraints for the other items.
The layout size is the largest item width and height, usually the index size.
Note that if you don’t need a custom index you can just use UiVec as a node directly, it implements basic Z-stack layout by default.