|
FLTK
|
Mac OS X-specific symbols declared in <FL/platform.H> More...
Classes | |
| class | Fl_Mac_App_Menu |
Functions | |
| void | fl_mac_set_about (Fl_Callback *cb, void *user_data, int shortcut=0) |
| Attaches a callback to the "About myprog" item of the system application menu. More... | |
| void | fl_open_callback (void(*cb)(const char *)) |
| Register a function called for each file dropped onto an application icon. More... | |
Variables | |
| int | fl_mac_os_version |
| The version number of the running Mac OS X (e.g., 100604 for 10.6.4, 101300 for 10.13). More... | |
Mac OS X-specific symbols declared in <FL/platform.H>
| void fl_mac_set_about | ( | Fl_Callback * | cb, |
| void * | user_data, | ||
| int | shortcut = 0 |
||
| ) |
Attaches a callback to the "About myprog" item of the system application menu.
For back-compatibility. Equivalent to Fl_Sys_Menu_Bar::about(Fl_Callback *cb, void *user_data).
| void fl_open_callback | ( | void(*)(const char *) | cb | ) |
Register a function called for each file dropped onto an application icon.
This function is effective only on the Mac OS X platform. cb will be called with a single Unix-style file name and path. If multiple files were dropped, cb will be called multiple times.
This function should be called before fl_open_display() is called, either directly or indirectly (this happens at the first show() of a window), to be effective for files dropped on the application icon at launch time. It can also be called at any point to change the function used to open dropped files. A call with a NULL argument, after a previous call, makes the app ignore files dropped later.
| int fl_mac_os_version |
The version number of the running Mac OS X (e.g., 100604 for 10.6.4, 101300 for 10.13).
FLTK initializes this global variable before main() begins running. If the value is needed in a static initializer, a previous call to Fl::system_driver() makes sure fl_mac_os_version has been initialized.