2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FUi_ITouchPanningGestureEventListener.h
19 * @brief This is the header file for the %_ITouchPanningGestureEventListener interface.
21 * This header file contains the declarations of the %_ITouchPanningGestureEventListener interface.
23 #ifndef _FUI_INTERNAL_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_
24 #define _FUI_INTERNAL_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_
26 #include "FUi_ITouchGestureEventListener.h"
27 #include "FUi_TouchPanningGestureDetector.h"
29 namespace Tizen { namespace Ui
33 * @interface _ITouchPanningGestureEventListener
34 * @brief This interface is used as the argument to the panning gesture event listener.
37 * The listener interface for receiving gesture events. The class that processes a panning gesture event
38 * implements this interface, and the instance created with that class is registered with a UI controls, using the gesture's
39 * AddGestureEventListener() method. When the gesture is recognized, OnGestureTapRecognized method of that instance is invoked.
41 class _ITouchPanningGestureEventListener
42 : virtual public _ITouchGestureEventListener
46 virtual ~_ITouchPanningGestureEventListener(void) {}
49 * Notifies when the gesture is started to recognition.
52 * @param[in] gesture the gesture instance
54 virtual bool OnPanningGestureStarted(_TouchPanningGestureDetector& gesture) = 0;
57 * Notifies when the gesture is recognized.
60 * @param[in] gesture the gesture instance
62 virtual bool OnPanningGestureChanged(_TouchPanningGestureDetector& gesture) = 0;
65 * Notifies when the gesture recognition is finished.
68 * @param[in] gesture the gesture instance
70 virtual bool OnPanningGestureFinished(_TouchPanningGestureDetector& gesture) = 0;
73 * Notifies when the gesture recognition is canceled.
76 * @param[in] gesture the gesture instance
78 virtual bool OnPanningGestureCanceled(_TouchPanningGestureDetector& gesture) = 0;
79 }; // _ITouchPanningGestureEventListener
83 #endif // _FUI_INTERNAL_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_