1 #ifndef __DALI_INTEGRATION_GESTURE_MANAGER_H__
2 #define __DALI_INTEGRATION_GESTURE_MANAGER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
21 #include <dali/public-api/events/gesture.h>
22 #include <dali/integration-api/events/gesture-requests.h>
31 * GestureManager is an abstract interface, used by Dali to register and unregister gestures provided
32 * by the adaptor. A concrete implementation must be created for each adaptor, and provided when creating
33 * the Dali::Integration::Core object.
35 class DALI_IMPORT_API GestureManager
40 * Called by Dali to enable the adaptor to start detecting the required gesture type.
41 * @param[in] request The required gesture and details.
43 virtual void Register(const GestureRequest& request) = 0;
46 * Called by Dali to inform the adaptor that it no longer requires a GestureEvent when the state
47 * gesture type is detected.
48 * @param[in] request The gesture that is no longer required.
50 virtual void Unregister(const GestureRequest& request) = 0;
53 * Called by Dali to inform the adaptor that the detection parameters of a previously requested
54 * gesture have now changed.
55 * @param[in] request The gesture and updated details.
57 virtual void Update(const GestureRequest& request) = 0;
59 }; // class GestureManager
61 } // namespace Integration
65 #endif // __DALI_INTEGRATION_GESTURE_MANAGER_H__