Merge branch 'devel/master' into sandbox/dkdk/tizen
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / keyboard.h
1 #ifndef DALI_KEYBOARD_H
2 #define DALI_KEYBOARD_H
3
4 /*
5  * Copyright (c) 2020 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/dali-adaptor-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  * @brief Sets keyboard repeat information.
38  *
39  * @param[in] rate The key repeat rate value in seconds
40  * @param[in] delay The key repeat delay value in seconds
41  * @return true if setting the keyboard repeat succeeds
42  */
43 DALI_ADAPTOR_API bool SetRepeatInfo(float rate, float delay);
44
45 /**
46  * @brief Gets keyboard repeat information.
47  *
48  * @param[in] rate The key repeat rate value in seconds
49  * @param[in] delay The key repeat delay value in seconds
50  * @return true if getting the keyboard repeat succeeds, false otherwise
51  */
52 DALI_ADAPTOR_API bool GetRepeatInfo(float& rate, float& delay);
53
54 } // namespace Keyboard
55
56 /**
57  * @}
58  */
59 } // namespace Dali
60
61 #endif // DALI_KEYBOARD_H