92c9aa1496697c9c77a21d4fc1870e3a82a452e5
[platform/core/uifw/dali-adaptor.git] / adaptors / base / interfaces / window-event-interface.h
1 #ifndef __DALI_INTERNAL_BASE_WINDOW_EVENT_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_WINDOW_EVENT_INTERFACE_H__
3
4 /*
5  * Copyright (c) 2015 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 #include <dali/public-api/events/key-event.h>
23 #include <dali/public-api/events/wheel-event.h>
24 #include <dali/integration-api/events/point.h>
25
26 namespace Dali
27 {
28
29 namespace Internal
30 {
31
32 namespace Adaptor
33 {
34
35 /**
36  * @brief Abstract interface for handling DALi events received from the native window system
37  *
38  */
39 class WindowEventInterface
40 {
41
42 public:
43
44   /**
45    * @brief Touch Event callback
46    * @param[in] point touch point
47    * @param[in] timeStamp time stamp
48    */
49   virtual void TouchEvent( Dali::Integration::Point& point, unsigned long timeStamp ) = 0;
50
51   /**
52    * @brief Key Event callback
53    * @param[in] keyEvent key event
54    */
55   virtual void KeyEvent( Dali::KeyEvent& keyEvent ) = 0;
56
57   /**
58    * @brief Wheel Event callback
59    * @param[in] wheelEvent wheel event
60    */
61   virtual void WheelEvent( Dali::WheelEvent& wheelEvent ) = 0;
62
63   /**
64    * @brief Window damage callback
65    * @param[in] damageArea Window damage area
66    */
67   virtual void DamageEvent( Dali::Rect<int>& damageArea ) = 0;
68
69   /**
70    * @brief Window Focused
71    */
72   virtual void WindowFocusIn() = 0;
73
74   /**
75    * @brief Window lost focus
76    */
77   virtual void WindowFocusOut() = 0;
78
79 protected:
80
81   /**
82    * @brief Constructor
83    */
84   WindowEventInterface()
85   {
86   }
87
88   /**
89    * Virtual destructor
90    */
91   virtual ~WindowEventInterface()
92   {
93   }
94
95   // Undefined copy constructor.
96   WindowEventInterface( const WindowEventInterface& );
97
98   // Undefined assignment operator.
99   WindowEventInterface& operator=( const WindowEventInterface& );
100
101 };
102
103 } // namespace Adaptor
104
105 } // namespace Internal
106
107 } // namespace Dali
108
109 #endif // __DALI_INTERNAL_BASE_WINDOW_EVENT_INTERFACE_H__