1 // Prevent normal accessibility manager declaration from loading
2 #define __DALI_ACCESSIBILITY_MANAGER_H__
4 #ifndef __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__
5 #define __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__
8 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
14 * http://www.apache.org/licenses/LICENSE-2.0
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.
26 #include <dali/public-api/object/base-handle.h>
27 #include <dali/public-api/signals/dali-signal.h>
28 #include <dali/public-api/events/touch-point.h>
36 class AccessibilityManager;
39 class AccessibilityActionHandler;
40 class AccessibilityGestureHandler;
44 * This creates a stubbed AccessibilityManager so that internal Toolkit Adaptor calls work.
46 class AccessibilityManager : public BaseHandle
49 typedef Signal< bool ( AccessibilityManager& ) > AccessibilityActionSignalType;
51 public: // Construction & Destruction
52 AccessibilityManager();
53 ~AccessibilityManager();
56 static AccessibilityManager Get();
57 Vector2 GetReadPosition() const;
58 bool IsEnabled() const;
59 void SetActionHandler(AccessibilityActionHandler& handler);
60 void SetGestureHandler(AccessibilityGestureHandler& handler);
61 bool HandleActionNextEvent();
62 bool HandleActionPreviousEvent();
63 bool HandleActionActivateEvent();
64 bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
65 bool HandleActionReadNextEvent();
66 bool HandleActionReadPreviousEvent();
67 bool HandleActionUpEvent();
68 bool HandleActionDownEvent();
69 bool HandleActionClearFocusEvent();
70 bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
71 bool HandleActionBackEvent();
72 void HandleActionEnableEvent();
73 void HandleActionDisableEvent();
76 AccessibilityActionSignalType& StatusChangedSignal();
77 AccessibilityActionSignalType& ActionNextSignal();
78 AccessibilityActionSignalType& ActionPreviousSignal();
79 AccessibilityActionSignalType& ActionActivateSignal();
80 AccessibilityActionSignalType& ActionReadSignal();
81 AccessibilityActionSignalType& ActionOverSignal();
82 AccessibilityActionSignalType& ActionReadNextSignal();
83 AccessibilityActionSignalType& ActionReadPreviousSignal();
84 AccessibilityActionSignalType& ActionUpSignal();
85 AccessibilityActionSignalType& ActionDownSignal();
86 AccessibilityActionSignalType& ActionClearFocusSignal();
87 AccessibilityActionSignalType& ActionBackSignal();
89 AccessibilityManager( Internal::Adaptor::AccessibilityManager* manager );
94 #endif // __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__