pub fn alert( window: &WindowRef, alert: Alert, on_response: impl FnOnce(usize) + 'static, )
Shows alert as a sheet on window; on_response gets the index of the button chosen.
alert
window
on_response