pub fn close_window(window_id: WindowId)Expand description
Closes the window unconditionally.
This bypasses any WindowCloseRequested handlers: no CloseRequested
event is dispatched to the view tree and cx.prevent_default() has no
effect. The window is destroyed immediately.
Use request_close_window instead if you want close-request handlers
to have the opportunity to cancel the close (e.g. to prompt for unsaved
changes).