mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
Remove Fl::run_also_windowless() and FL::wait_also_windowless() from planned public FLTK 1.4 API.
These were introduced at r12647, that is, during development of the 1.4 API. These functions provided windowless support only on the MacOS platform, where this can be obtained without those functions. Windowless support on other platforms would require changing the event loop. There's no evidence from STR's there's a demand for windowless mode on other platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -738,15 +738,12 @@ Apple "Quit" Event
|
||||
|
||||
\par
|
||||
When the user presses Cmd-Q or requests a termination of the
|
||||
application, FLTK reacts sending an \c FL_CLOSE event to all open
|
||||
application, FLTK sends an \c FL_CLOSE event to all open
|
||||
windows. If any window remains open, the termination request aborts.
|
||||
If all windows close, the application's event loop terminates,
|
||||
that is, Fl::run() returns. The application can then follow
|
||||
FLTK's normal termination path executing cleanup code that may be programmed
|
||||
after termination of the event loop, and returning from main().
|
||||
Function Fl::run_also_windowless() can be used instead of Fl::run() to keep
|
||||
the event loop running also after all windows are closed, a feature the MacOS platform supports.
|
||||
This function also returns after a successful Cmd-Q.
|
||||
Function Fl::program_should_quit() allows to detect whether the event loop
|
||||
terminated because of a program termination request.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user