Expand description
Window events, on_window_open and on_window_close_requested.
These events are re-exported by Window! as on_open and on_close_requested, but you can
attach then in any widget inside a window using the property full name.
There is no event property for the WINDOW_CLOSE_EVENT because that event notifies
after the window is deinited. You can use on_deinit in the
Window! widget to handle a window closing, or create an app level handler for the
event using EVENTS.
Functionsยง
- on_
frame_ image_ ready POn window frame rendered.- on_ime
POn Input Method Editor event.- on_
pre_ frame_ image_ ready POn window frame rendered.- on_
pre_ ime POn Input Method Editor event.- on_
pre_ window_ changed POn window moved, resized or other state changed.- on_
pre_ window_ close POn window closed.- on_
pre_ window_ close_ requested POn window close requested.- on_
pre_ window_ exited_ fullscreen POn window state changed fromWindowState::is_fullscreen.- on_
pre_ window_ fullscreen POn window state changed toWindowState::is_fullscreen.- on_
pre_ window_ load POn window loaded.- on_
pre_ window_ maximized POn window state changed toWindowState::Maximized.- on_
pre_ window_ minimized POn window state changed toWindowState::Minimized.- on_
pre_ window_ moved POn window position changed.- on_
pre_ window_ open POn window opened.- on_
pre_ window_ resized POn window size changed.- on_
pre_ window_ restored POn window state changed toWindowState::Normal.- on_
pre_ window_ state_ changed POn window state changed.- on_
pre_ window_ unmaximized POn window state changed fromWindowState::Maximized.- on_
pre_ window_ unminimized POn window state changed fromWindowState::Minimized.- on_
window_ changed POn window moved, resized or other state changed.- on_
window_ close POn window closed.- on_
window_ close_ requested POn window close requested.- on_
window_ exited_ fullscreen POn window state changed fromWindowState::is_fullscreen.- on_
window_ fullscreen POn window state changed toWindowState::is_fullscreen.- on_
window_ load POn window loaded.- on_
window_ maximized POn window state changed toWindowState::Maximized.- on_
window_ minimized POn window state changed toWindowState::Minimized.- on_
window_ moved POn window position changed.- on_
window_ open POn window opened.- on_
window_ resized POn window size changed.- on_
window_ restored POn window state changed toWindowState::Normal.- on_
window_ state_ changed POn window state changed.- on_
window_ unmaximized POn window state changed fromWindowState::Maximized.- on_
window_ unminimized POn window state changed fromWindowState::Minimized.