Function slint::run_event_loop#
Defined in File slint.h
Function Documentation#
-
inline void slint::run_event_loop(EventLoopMode mode = EventLoopMode::QuitOnLastWindowClosed)#
Enters the main event loop. This is necessary in order to receive events from the windowing system in order to render to the screen and react to user input.
The mode parameter determines the behavior of the event loop when all windows are closed. By default, it is set to QuitOnLastWindowClose, which means the event loop will quit when the last window is closed.