Dali 3D User Interface Engine
toolkit-accessibility-adaptor.h
Go to the documentation of this file.
1 // Prevent normal accessibility adaptor declaration from loading
2 #define __DALI_ACCESSIBILITY_ADAPTOR_H__
3 
4 #ifndef __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
5 #define __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
6 
7 /*
8  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23 
24 // EXTERNAL INCLUDES
25 #include <string>
28 
29 namespace Dali
30 {
31 namespace Internal
32 {
33 namespace Adaptor
34 {
35 class AccessibilityAdaptor;
36 }
37 }
38 class AccessibilityActionHandler;
39 class AccessibilityGestureHandler;
40 class TouchPoint;
41 
46 {
47 public: // Construction & Destruction
50 
51 public: // Mock object setup.
52 
53  void MockSetReadPosition( Vector2& position );
54 
55 public: // Getters
56 
57  static AccessibilityAdaptor Get();
58 
60  bool IsEnabled() const;
61  void SetActionHandler(AccessibilityActionHandler& handler);
62  void SetGestureHandler(AccessibilityGestureHandler& handler);
63 
64  bool HandleActionNextEvent();
67  bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
70  bool HandleActionUpEvent();
71  bool HandleActionDownEvent();
73  bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
74  bool HandleActionBackEvent();
87  bool HandleActionZoomEvent();
91 
93 };
94 
95 } // namespace Dali
96 
97 #endif // __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
Dali Docs Home
Read more about Dali