Safeguard when Actor size is too big.
[platform/core/uifw/dali-core.git] / dali / integration-api / input-options.h
1 #ifndef __DALI_INTEGRATION_INPUT_OPTIONS_H__
2 #define __DALI_INTEGRATION_INPUT_OPTIONS_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali/public-api/common/dali-common.h>
25
26 namespace Dali
27 {
28
29 namespace Integration
30 {
31
32 /**
33  * @brief Called by adaptor to set the pan gesture prediction mode from
34  * an environment variable
35  *
36  * @pre Should be called after Core creation.
37  * @param mode The pan gesture prediction mode.
38  */
39 DALI_IMPORT_API void SetPanGesturePredictionMode( int mode );
40
41 /**
42  * @brief Called by adaptor to set the prediction amount of the pan gesture from an environment variable
43  *
44  * @param[in] amount The prediction amount in milliseconds
45  */
46 DALI_IMPORT_API void SetPanGesturePredictionAmount(unsigned int amount);
47
48 /**
49  * @brief Called to set how pan gestures smooth input
50  *
51  * @param[in] mode The smoothing mode to use
52  */
53 DALI_IMPORT_API void SetPanGestureSmoothingMode( int mode );
54
55 /**
56  * @brief Sets the prediction amount of the pan gesture
57  *
58  * @param[in] amount The smoothing amount [0.0f,1.0f] - 0.0f would be no smoothing, 1.0f maximum smoothing
59  */
60 DALI_IMPORT_API void SetPanGestureSmoothingAmount( float amount );
61
62 } // namespace Integration
63
64 } // namespace Dali
65
66 #endif // __DALI_INTEGRATION_INPUT_OPTIONS_H__