summaryrefslogtreecommitdiff
path: root/FL/Enumerations.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-29 23:36:09 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-29 23:36:19 +0100
commit5dd1062df53c747339b875c8cb0c13df576ad4b8 (patch)
tree9c618866ea1159cf53ed6bdadeda48b4efff808f /FL/Enumerations.H
parentb7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff)
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'FL/Enumerations.H')
-rw-r--r--FL/Enumerations.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H
index db6465096..5bc2951aa 100644
--- a/FL/Enumerations.H
+++ b/FL/Enumerations.H
@@ -418,7 +418,11 @@ enum Fl_Event { // events
/** A tooltip is about to pop up for this widget. The mouse coordinates are
available in Fl::event_x() and Fl::event_y(). Change the widget tooltip
as needed. */
- FL_TOOLTIP_EVENT = 28
+ FL_BEFORE_TOOLTIP = 28,
+ /** 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
// DEV NOTE: Keep this list in sync with FL/names.h
};