From b3b29632fbd20e75f3b2bed9bb7050949940c1ff Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 30 Aug 2018 08:31:53 +0000 Subject: Doc only: better doc of recently added events: FL_SCREEN_CONFIGURATION_CHANGED, FL_FULLSCREEN,... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Enumerations.H | 10 +++++++--- src/Fl.cxx | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 68b38f242..a2e5030fc 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -396,15 +396,19 @@ enum Fl_Event { // events Use Fl::add_handler() to be notified of this event. */ FL_SCREEN_CONFIGURATION_CHANGED = 24, - /** The fullscreen state of the window has changed + /** The fullscreen state of the window has changed. + This event is sent to the window's handle method. */ FL_FULLSCREEN = 25, - /** The user has made a zoom/pinch/magnification gesture. + /** The user has made a zoom/pinch/magnification gesture (Mac OS platform only). The Fl::event_dy() method can be used to find magnification amount, Fl::event_x() and Fl::event_y() are set as well. + This event is sent to the window's handle method. */ FL_ZOOM_GESTURE = 26, - /** A zoom event (crtl-/+/-/0/) was processed */ + /** A zoom event (crtl/+/-/0/ or cmd/+/-/0/) was processed. + Use Fl::add_handler() to be notified of this event. + */ FL_ZOOM_EVENT = 27 // DEV NOTE: Keep this list in sync with FL/names.h }; diff --git a/src/Fl.cxx b/src/Fl.cxx index 4bd7ec497..b29b7a260 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -741,8 +741,7 @@ static handler_link *handlers = 0; - \ref FL_SCREEN_CONFIGURATION_CHANGED events. Under X11, this event requires the libXrandr.so shared library to be loadable at run-time and the X server to implement the RandR extension. - - \ref FL_FULLSCREEN events sent to a window that enters or leaves - fullscreen mode. + - \ref FL_ZOOM_EVENT events. - System events that FLTK does not recognize. See fl_xevent. - \e Some other events when the widget FLTK selected returns zero from its handle() method. Exactly which ones may change -- cgit v1.2.3