run

fnint run() nothrow @nogc

Runs the FLTK event loop until all windows are closed.

This function blocks and processes events until there are no more visible windows. It should be called after creating and showing your application's windows.

Returns

0 on normal exit

Example:

auto window = new Window(300, 200, "App");
window.show();
run();  // Returns when window is closed