Enum EventLoopMode

Enum Documentation

enum class slint::EventLoopMode

Enum for the event loop mode parameter of the slint::run_event_loop() function. It is used to determine when the event loop quits.

Values:

enumerator QuitOnLastWindowClosed

The event loop quits when the last window is closed and the last visible system tray icon is hidden, or when slint::quit_event_loop() is called. A visible SystemTrayIcon keeps the loop alive on its own.

enumerator RunUntilQuit

The event loop keeps running until slint::quit_event_loop() is called, even when no windows or system tray icons are visible.