From d44b518c070b9b92f7aefca7e7a66c0b67366b62 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 1 Apr 2015 15:32:06 +0000 Subject: Added FL_ZOOM_GESTURE gesture for OS X. Sadly, I have not commited any code in years, and despite the rumour that I was hit by a train, or worse, move on to Qt, here I am, commmiting unwanted code. Hopefully there are equivalents for this on other platforms?! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Enumerations.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 6419b65a4..da479a327 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -300,7 +300,12 @@ enum Fl_Event { // events FL_SCREEN_CONFIGURATION_CHANGED = 24, /** The fullscreen state of the window has changed */ - FL_FULLSCREEN = 25 + FL_FULLSCREEN = 25, + /** The user has made a zoom/pinch/magnification gesture. + The Fl::event_dy() method can be used to find magnification amount, + Fl::event_x() and Fl::event_y() are set as well. + */ + FL_ZOOM_GESTURE = 26 }; /** \name When Conditions */ -- cgit v1.2.3