1 // Prevent normal accessibility adaptor declaration from loading
2 #define __DALI_ACCESSIBILITY_ADAPTOR_H__
4 #ifndef __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
5 #define __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
8 * Copyright (c) 2015 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/events/touch-point.h>
35 class AccessibilityAdaptor;
38 class AccessibilityActionHandler;
39 class AccessibilityGestureHandler;
43 * This creates a stubbed AccessibilityAdaptor so that internal Toolkit Adaptor calls work.
45 class AccessibilityAdaptor : public BaseHandle
47 public: // Construction & Destruction
48 AccessibilityAdaptor();
49 ~AccessibilityAdaptor();
52 static AccessibilityAdaptor Get();
53 Vector2 GetReadPosition() const;
54 bool IsEnabled() const;
55 void SetActionHandler(AccessibilityActionHandler& handler);
56 void SetGestureHandler(AccessibilityGestureHandler& handler);
57 bool HandleActionNextEvent();
58 bool HandleActionPreviousEvent();
59 bool HandleActionActivateEvent();
60 bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
61 bool HandleActionReadNextEvent();
62 bool HandleActionReadPreviousEvent();
63 bool HandleActionUpEvent();
64 bool HandleActionDownEvent();
65 bool HandleActionClearFocusEvent();
66 bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
67 bool HandleActionBackEvent();
68 void HandleActionEnableEvent();
69 void HandleActionDisableEvent();
70 bool HandleActionScrollUpEvent();
71 bool HandleActionScrollDownEvent();
72 bool HandleActionPageLeftEvent();
73 bool HandleActionPageRightEvent();
74 bool HandleActionPageUpEvent();
75 bool HandleActionPageDownEvent();
76 bool HandleActionMoveToFirstEvent();
77 bool HandleActionMoveToLastEvent();
78 bool HandleActionReadFromTopEvent();
79 bool HandleActionReadFromNextEvent();
80 bool HandleActionZoomEvent();
81 bool HandleActionReadIndicatorInformationEvent();
82 bool HandleActionReadPauseResumeEvent();
83 bool HandleActionStartStopEvent();
85 AccessibilityAdaptor( Internal::Adaptor::AccessibilityAdaptor* adaptor );
90 #endif // __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__