pub fn show<R>(
ctx: &Context,
spec: &OverlaySpec,
open: &mut bool,
anchor: Option<Anchor>,
add: impl FnOnce(&mut Ui) -> R,
) -> Option<R>Expand description
Shows an overlay while *open; sets *open to false when it closes
(Escape, a click outside, or close), restoring the focus. A modal
is centred (moved by its offset) over a backdrop (dim); other
kinds are placed next to anchor (or at the pointer).