diff options
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index ca629ab94..e6af1297b 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -589,6 +589,22 @@ int Fl::ready() return screen_driver()->ready(); } +/** Run the event loop even without any mapped window if the platform supports it. + \return zero indicates the event loop has been terminated. + */ +int Fl::run_also_windowless() { + return Fl::system_driver()->run_also_windowless(); +} + +/** Wait for \p delay seconds or until an event occurs, even without any mapped window if the platform supports it. + \return non zero indicates the event loop should be terminated + */ +int Fl::wait_also_windowless(double delay) { + return Fl::system_driver()->wait_also_windowless(delay); +} + +int Fl::program_should_quit_ = 0; + //////////////////////////////////////////////////////////////// // Window list management: |
