Dali 3D User Interface Engine
event-handler.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_EVENT_HANDLER_H__
2 #define __DALI_INTERNAL_EVENT_HANDLER_H__
3 
4 /*
5  * Copyright (c) 2014 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
23 #include <style-monitor.h>
24 
25 // INTERNAL INCLUDES
26 #include <damage-observer.h>
30 #include <imf-manager-impl.h>
31 #include <rotation-observer.h>
32 
33 namespace Dali
34 {
35 
36 class RenderSurface;
37 
38 namespace Internal
39 {
40 
41 namespace Adaptor
42 {
43 
44 class CoreEventInterface;
45 class GestureManager;
46 class StyleMonitor;
47 
55 {
56 public:
57 
66  EventHandler( RenderSurface* surface, CoreEventInterface& coreEventInterface, GestureManager& gestureManager, DamageObserver& damageObserver, DragAndDropDetectorPtr dndDetector );
67 
71  ~EventHandler();
72 
77  void FeedTouchPoint( TouchPoint& point, int timeStamp );
78 
83  void FeedWheelEvent( WheelEvent& wheelEvent );
84 
89  void FeedKeyEvent( KeyEvent& keyEvent );
90 
95  void FeedEvent( Integration::Event& event );
96 
100  void Pause();
101 
105  void Resume();
106 
112 
117  void SetRotationObserver( RotationObserver* observer );
118 
119 private:
120 
126  void SendEvent(TouchPoint& point, unsigned long timeStamp);
127 
132  void SendEvent(KeyEvent& keyEvent);
133 
138  void SendWheelEvent( WheelEvent& wheelEvent );
139 
144  void SendEvent( StyleChange::Type styleChange );
145 
150  void SendEvent( const DamageArea& area );
151 
156  void SendRotationPrepareEvent( const RotationEvent& rotation );
157 
162 
167  void Reset();
168 
169 private:
170 
171  // Undefined
172  EventHandler( const EventHandler& eventHandler );
173 
174  // Undefined
175  EventHandler& operator=( const EventHandler& eventHandler );
176 
177 private:
178 
180  Dali::Integration::TouchEventCombiner mCombiner;
185 
189  Dali::Clipboard mClipboard;
190 
191  struct Impl;
192  Impl* mImpl;
193 
194  bool mPaused;
195 };
196 
197 } // namespace Adaptor
198 
199 } // namespace Internal
200 
201 } // namespace Dali
202 
203 #endif // __DALI_INTERNAL_EVENT_HANDLER_H__
Dali Docs Home
Read more about Dali