diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-12-21 22:49:09 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-12-21 22:49:42 +0100 |
| commit | 8ec5d86fe144528b47345d8defe1149a3b8deb87 (patch) | |
| tree | a3535ccb93ba9bc06b3cd9803c532c6d8e562240 /FL/Enumerations.H | |
| parent | 31760a98aca6daeee846906ef7af20395f641b65 (diff) | |
MacOS: Add FL_APP_ACTIVATE and DEACTIVATE.
This event is sent on application level. Add a handler
with Fl::add_handler to receive the event.
Diffstat (limited to 'FL/Enumerations.H')
| -rw-r--r-- | FL/Enumerations.H | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H index a2434bb19..34244004d 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -337,7 +337,13 @@ enum Fl_Event { // events /** Triggered just before a menu is displayed. Widgets derived from Fl_Menu_ receive this event right before the menu appears, providing an opportunity to update menu item states and activation. */ - FL_BEFORE_MENU = 29 + FL_BEFORE_MENU = 29, + /** Sent when the application is activate an becomes topmost and focused. + \see Fl::add_handler() */ + FL_APP_ACTIVATE = 30, + /** Sent when the application is sent to the background and deactivated. + \see Fl::add_handler() */ + FL_APP_DEACTIVATE = 31, // DEV NOTE: Keep this list in sync with FL/names.h }; |
