pub fn restore(
dir: impl Into<PathBuf>,
options: &mut NativeOptions,
) -> Option<WindowState>Expand description
Gives a native window the place kept in a settings directory (the
one given to AppBuilder::persist), repaired: the screens are not
known before the window exists, so only its size is bounded and a
position far away dropped. Returns the place given, if one was kept.
AppBuilder::run_native does it; an application running eframe
itself calls it.
The window’s place then has one owner, egui-pop: eframe’s own copy
(NativeOptions::persist_window, kept with its persistence feature)
is turned off, kept place or not, or it would be put over this one as
the window is created.