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 Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/events/gesture.h>
23 #include <dali/integration-api/events/gesture-requests.h>
32 * GestureManager is an abstract interface, used by Dali to register and unregister gestures provided
33 * by the adaptor. A concrete implementation must be created for each adaptor, and provided when creating
34 * the Dali::Integration::Core object.
36 class DALI_IMPORT_API GestureManager
41 * Called by Dali to enable the adaptor to start detecting the required gesture type.
42 * @param[in] request The required gesture and details.
44 virtual void Register(const GestureRequest& request) = 0;
47 * Called by Dali to inform the adaptor that it no longer requires a GestureEvent when the state
48 * gesture type is detected.
49 * @param[in] request The gesture that is no longer required.
51 virtual void Unregister(const GestureRequest& request) = 0;
54 * Called by Dali to inform the adaptor that the detection parameters of a previously requested
55 * gesture have now changed.
56 * @param[in] request The gesture and updated details.
58 virtual void Update(const GestureRequest& request) = 0;
60 }; // class GestureManager
62 } // namespace Integration
66 #endif // __DALI_INTEGRATION_GESTURE_MANAGER_H__