[dali_2.3.25] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / event-feeder.h
1 #ifndef DALI_EVENT_FEEDER_H
2 #define DALI_EVENT_FEEDER_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 class WheelEvent;
27 class KeyEvent;
28 struct TouchPoint;
29
30 namespace EventFeeder
31 {
32 /**
33  * Feed a touch point to the adaptor.
34  *
35  * @param[in] point touch point
36  * @param[in] timeStamp time value of event
37  *
38  * @note For testing/automation purposes only.
39  */
40 DALI_ADAPTOR_API void FeedTouchPoint(TouchPoint& point, int timeStamp);
41
42 /**
43  * Feed a wheel event to the adaptor.
44  *
45  * @param[in]  wheelEvent wheel event
46  *
47  * @note For testing/automation purposes only.
48  */
49 DALI_ADAPTOR_API void FeedWheelEvent(WheelEvent& wheelEvent);
50
51 /**
52  * Feed a key event to the adaptor.
53  *
54  * @param[in] keyEvent The key event holding the key information.
55  *
56  * @note For testing/automation purposes only.
57  */
58 DALI_ADAPTOR_API void FeedKeyEvent(KeyEvent& keyEvent);
59
60 } // namespace EventFeeder
61
62 } // namespace Dali
63
64 #endif // DALI_EVENT_FEEDER_H