check

fnint check() nothrow @nogc

Checks for and processes pending events without blocking.

This is useful for integrating FLTK with other event loops or for doing background processing while keeping the UI responsive.

Returns

Non-zero if there are still visible windows

Example:

while (check()) {
   // Do some work
   doBackgroundTask();
}