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