pub fn run_event_loop() -> Result<(), PlatformError>Expand description
Enters the main event loop. This is necessary in order to receive events from the windowing system for rendering to the screen and reacting to user input.
This function will run until the last window is closed and the last
visible system tray icon is hidden, or until quit_event_loop() is
called. A visible SystemTrayIcon keeps the loop alive on its own, so a
tray-only program can use this variant directly.
See also run_event_loop_until_quit() to keep the loop running even
when nothing visible is left.