[4.0] Add to set / get Keyboard Repeat value
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / keyboard.h
1 #ifndef __DALI_KEYBOARD_H__
2 #define __DALI_KEYBOARD_H__
3
4 /*
5  * Copyright (c) 2018 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 // INTERNAL INCLUDES
22 #include <dali/public-api/common/dali-common.h>
23
24 namespace Dali
25 {
26 /**
27  * @addtogroup dali_adaptor_framework
28  * @{
29  */
30
31 /**
32  * @brief Keyboard functions.
33  */
34 namespace Keyboard
35 {
36
37 /**
38  * @brief Sets keyboard repeat information.
39  *
40  * @param[in] rate The key repeat rate value in seconds
41  * @param[in] delay The key repeat delay value in seconds
42  * @return true if setting the keyboard repeat succeeds
43  */
44 DALI_IMPORT_API bool SetKeyboardRepeatInfo( double rate, double delay );
45
46
47 /**
48  * @brief Gets keyboard repeat information.
49  *
50  * @param[in] rate The key repeat rate value in seconds
51  * @param[in] delay The key repeat delay value in seconds
52  * @return true if getting the keyboard repeat succeeds, false otherwise
53  */
54 DALI_IMPORT_API bool GetKeyboardRepeatInfo( double& rate, double& delay );
55
56 } // namespace Keyboard
57
58 /**
59  * @}
60  */
61 } // namespace Dali
62
63 #endif // __DALI_KEYBOARD_H__