Struct
WindowClosing
pub struct WindowClosing { /* private fields */ }A window of the application’s closing, passed to
App::on_window_closing. It says which
window it is and where it was, to open it there again with
WindowOptions::placement.
Methods
#pub fn window(&self) -> WindowId
The window
AppInstance::create_window
returned or the start window.
#pub fn name(&self) -> Option<&str>
The name its options gave it
(WindowOptions::name); none for a
window opened without one, as a page’s is. The name is free from
this report on. A window opened now may take it.
#pub fn placement(&self) -> WindowPlacement
Where the window was and how it showed. A window maximized,
minimized or fullscreen gives the place and size it restores to, not
the display it fills. The state is Normal, Maximized or
Fullscreen. A window minimized or never shown gives the state it
shows in once restored. The placement given back opens a window the
user sees.
Under xfwm4 a window the user maximized can give its maximized place
and size as Normal because xfwm4 sends a maximize’s geometry before
its state.
Trait implementations
impl Clone for WindowClosingimpl Debug for WindowClosingimpl Eq for WindowClosingimpl PartialEq for WindowClosing