diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-29 22:40:13 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-29 22:40:18 +0100 |
| commit | b7189192e2e31ce5ca1f2eaac2a303f9b8216ded (patch) | |
| tree | 06d38b355a35fa1bcd11a215d467130e2d9aa0a7 /FL/Enumerations.H | |
| parent | cb86a37676e26a8de209a371132d8154986b457a (diff) | |
Adds a new event FL_TOOLTIP_EVENT...
... and Fl_Tootip::override_text() to allow users to dynamically
generate tooltips.
Diffstat (limited to 'FL/Enumerations.H')
| -rw-r--r-- | FL/Enumerations.H | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 2478a8c58..db6465096 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -414,7 +414,11 @@ enum Fl_Event { // events /** A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed. Use Fl::add_handler() to be notified of this event. */ - FL_ZOOM_EVENT = 27 + FL_ZOOM_EVENT = 27, + /** 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 // DEV NOTE: Keep this list in sync with FL/names.h }; |
