pub fn window(viewport: ViewportId) -> Option<Window>Expand description
The native window showing viewport, reached by its id: the main
window ([ViewportId::ROOT]) as soon as eframe created it, on every
system; another deferred viewport’s once it was painted for a redraw
request, an immediate viewport’s (a detached panel’s window) once its
window’s redraw came, and the window ids were verified
(ids_verified). None for a viewport not open (or closed since),
when called off the event loop’s thread, or when neither egui-pop nor
the host (host, feature host-loop) pairs the windows.