Expand description
Overlay container (a.k.a. ZStack / Layer). Holds children as
Vec<Element> and stacks them on the same region:
- Draw order is insertion order — the first child is painted at the bottom, the last child on top.
- Touch routing is top-first — children are polled in reverse insertion order, so an overlay (modal, dropdown, menu) placed last intercepts input before the widgets beneath it.
- Positioning is per-child alignment: each child is measured against
the stack’s region and placed at its requested
Horizontal/Verticalalignment (default center). A child that asks to fill simply covers the whole stack.
It backs the overlay widgets (Dropdown, MessageBox, Menu) and is kept deliberately general.
Structs§
- Stack
- Overlay container. Children share one region; later children draw on top of and receive touches before earlier ones.