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.
27 #include <dali/dali.h>
35 class AccessibilityManager;
38 class AccessibilityActionHandler;
39 class AccessibilityGestureHandler;
43 * This creates a stubbed AccessibilityManager so that internal Toolkit Adaptor calls work.
45 class AccessibilityManager : public BaseHandle
48 typedef SignalV2< bool ( AccessibilityManager& ) > AccessibilityActionSignalV2;
50 public: // Construction & Destruction
51 AccessibilityManager();
52 virtual ~AccessibilityManager();
55 static AccessibilityManager Get();
56 Vector2 GetReadPosition() const;
57 bool IsEnabled() const;
58 void SetActionHandler(AccessibilityActionHandler& handler);
59 void SetGestureHandler(AccessibilityGestureHandler& handler);
60 bool HandleActionNextEvent();
61 bool HandleActionPreviousEvent();
62 bool HandleActionActivateEvent();
63 bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
64 bool HandleActionReadNextEvent();
65 bool HandleActionReadPreviousEvent();
66 bool HandleActionUpEvent();
67 bool HandleActionDownEvent();
68 bool HandleActionClearFocusEvent();
69 bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
70 bool HandleActionBackEvent();
71 void HandleActionEnableEvent();
72 void HandleActionDisableEvent();
75 AccessibilityActionSignalV2& StatusChangedSignal();
76 AccessibilityActionSignalV2& ActionNextSignal();
77 AccessibilityActionSignalV2& ActionPreviousSignal();
78 AccessibilityActionSignalV2& ActionActivateSignal();
79 AccessibilityActionSignalV2& ActionReadSignal();
80 AccessibilityActionSignalV2& ActionOverSignal();
81 AccessibilityActionSignalV2& ActionReadNextSignal();
82 AccessibilityActionSignalV2& ActionReadPreviousSignal();
83 AccessibilityActionSignalV2& ActionUpSignal();
84 AccessibilityActionSignalV2& ActionDownSignal();
85 AccessibilityActionSignalV2& ActionClearFocusSignal();
86 AccessibilityActionSignalV2& ActionBackSignal();
88 AccessibilityManager( Internal::Adaptor::AccessibilityManager* manager );
93 #endif // __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__