FutureBasic Logo

<<    Index    >> FutureBasic

GestureRecognizer   object



Description
An object that monitors events and calls its action method when a predefined sequence of events occur.

To trigger user on dialog events, call ViewSetXxxxGestureRecognizer on the view. To pick up events via a callback function, call ViewSetXxxxGestureRecognizerCallback on the view.

Dialog events
_gestureRecognizerClick- ViewSetClickGestureRecognizer must be called on the view in order to trigger this event
_gestureRecognizerMagnification- ViewSetMagnificationGestureRecognizer must be called on the view in order to trigger this event
_gestureRecognizerPan- ViewSetPanGestureRecognizer must be called on the view in order to trigger this event
_gestureRecognizerPress- ViewSetPressGestureRecognizer must be called on the view in order to trigger this event
_gestureRecognizerRotation- ViewSetRotationGestureRecognizer must be called on the view in order to trigger this event

Callback example
void local fn MyGestureRecognizerCallback( ref as GestureRecognizerRef, theViewTag as NSInteger, userData as ptr )

// ...

end fn

 
Apple documentation
NSGestureRecognizer
NSClickGestureRecognizer
NSMagnificationGestureRecognizer
NSPanGestureRecognizer
NSPressGestureRecognizer
NSRotationGestureRecognizer