2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 %define ACCESSIBILITY_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
19 %typemap(csimports) NameSpace::ClassName %{
21 using System.Runtime.InteropServices;
27 %define ACCESSIBILITY_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
28 %typemap(cscode) NameSpace::ClassName %{
32 * @brief Event arguments that passed via StatusChanged signal
35 public class StatusChangedEventArgs : EventArgs
37 private AccessibilityManager _accessibilityManager;
39 public AccessibilityManager AccessibilityManager
43 return _accessibilityManager;
47 _accessibilityManager = value;
53 * @brief Event arguments that passed via ActionNext signal
56 public class ActionNextEventArgs : EventArgs
58 private AccessibilityManager _accessibilityManager;
60 public AccessibilityManager AccessibilityManager
64 return _accessibilityManager;
68 _accessibilityManager = value;
74 * @brief Event arguments that passed via ActionPrevious signal
77 public class ActionPreviousEventArgs : EventArgs
79 private AccessibilityManager _accessibilityManager;
81 public AccessibilityManager AccessibilityManager
85 return _accessibilityManager;
89 _accessibilityManager = value;
95 * @brief Event arguments that passed via ActionActivate signal
98 public class ActionActivateEventArgs : EventArgs
100 private AccessibilityManager _accessibilityManager;
102 public AccessibilityManager AccessibilityManager
106 return _accessibilityManager;
110 _accessibilityManager = value;
116 * @brief Event arguments that passed via ActionRead signal
119 public class ActionReadEventArgs : EventArgs
121 private AccessibilityManager _accessibilityManager;
123 public AccessibilityManager AccessibilityManager
127 return _accessibilityManager;
131 _accessibilityManager = value;
137 * @brief Event arguments that passed via ActionOver signal
140 public class ActionOverEventArgs : EventArgs
142 private AccessibilityManager _accessibilityManager;
144 public AccessibilityManager AccessibilityManager
148 return _accessibilityManager;
152 _accessibilityManager = value;
158 * @brief Event arguments that passed via ActionReadNext signal
161 public class ActionReadNextEventArgs : EventArgs
163 private AccessibilityManager _accessibilityManager;
165 public AccessibilityManager AccessibilityManager
169 return _accessibilityManager;
173 _accessibilityManager = value;
179 * @brief Event arguments that passed via ActionReadPrevious signal
182 public class ActionReadPreviousEventArgs : EventArgs
184 private AccessibilityManager _accessibilityManager;
186 public AccessibilityManager AccessibilityManager
190 return _accessibilityManager;
194 _accessibilityManager = value;
200 * @brief Event arguments that passed via ActionUp signal
203 public class ActionUpEventArgs : EventArgs
205 private AccessibilityManager _accessibilityManager;
207 public AccessibilityManager AccessibilityManager
211 return _accessibilityManager;
215 _accessibilityManager = value;
221 * @brief Event arguments that passed via ActionDown signal
224 public class ActionDownEventArgs : EventArgs
226 private AccessibilityManager _accessibilityManager;
228 public AccessibilityManager AccessibilityManager
232 return _accessibilityManager;
236 _accessibilityManager = value;
242 * @brief Event arguments that passed via ActionClearFocus signal
245 public class ActionClearFocusEventArgs : EventArgs
247 private AccessibilityManager _accessibilityManager;
249 public AccessibilityManager AccessibilityManager
253 return _accessibilityManager;
257 _accessibilityManager = value;
263 * @brief Event arguments that passed via ActionBack signal
266 public class ActionBackEventArgs : EventArgs
268 private AccessibilityManager _accessibilityManager;
270 public AccessibilityManager AccessibilityManager
274 return _accessibilityManager;
278 _accessibilityManager = value;
284 * @brief Event arguments that passed via ActionScrollUp signal
287 public class ActionScrollUpEventArgs : EventArgs
289 private AccessibilityManager _accessibilityManager;
291 public AccessibilityManager AccessibilityManager
295 return _accessibilityManager;
299 _accessibilityManager = value;
305 * @brief Event arguments that passed via ActionScrollDown signal
308 public class ActionScrollDownEventArgs : EventArgs
310 private AccessibilityManager _accessibilityManager;
312 public AccessibilityManager AccessibilityManager
316 return _accessibilityManager;
320 _accessibilityManager = value;
326 * @brief Event arguments that passed via ActionPageLeft signal
329 public class ActionPageLeftEventArgs : EventArgs
331 private AccessibilityManager _accessibilityManager;
333 public AccessibilityManager AccessibilityManager
337 return _accessibilityManager;
341 _accessibilityManager = value;
347 * @brief Event arguments that passed via ActionPageRight signal
350 public class ActionPageRightEventArgs : EventArgs
352 private AccessibilityManager _accessibilityManager;
354 public AccessibilityManager AccessibilityManager
358 return _accessibilityManager;
362 _accessibilityManager = value;
368 * @brief Event arguments that passed via ActionPageUp signal
371 public class ActionPageUpEventArgs : EventArgs
373 private AccessibilityManager _accessibilityManager;
375 public AccessibilityManager AccessibilityManager
379 return _accessibilityManager;
383 _accessibilityManager = value;
389 * @brief Event arguments that passed via ActionPageDown signal
392 public class ActionPageDownEventArgs : EventArgs
394 private AccessibilityManager _accessibilityManager;
396 public AccessibilityManager AccessibilityManager
400 return _accessibilityManager;
404 _accessibilityManager = value;
410 * @brief Event arguments that passed via ActionMoveToFirst signal
413 public class ActionMoveToFirstEventArgs : EventArgs
415 private AccessibilityManager _accessibilityManager;
417 public AccessibilityManager AccessibilityManager
421 return _accessibilityManager;
425 _accessibilityManager = value;
431 * @brief Event arguments that passed via ActionMoveToLast signal
434 public class ActionMoveToLastEventArgs : EventArgs
436 private AccessibilityManager _accessibilityManager;
438 public AccessibilityManager AccessibilityManager
442 return _accessibilityManager;
446 _accessibilityManager = value;
452 * @brief Event arguments that passed via ActionReadFromTop signal
455 public class ActionReadFromTopEventArgs : EventArgs
457 private AccessibilityManager _accessibilityManager;
459 public AccessibilityManager AccessibilityManager
463 return _accessibilityManager;
467 _accessibilityManager = value;
473 * @brief Event arguments that passed via ActionReadFromNext signal
476 public class ActionReadFromNextEventArgs : EventArgs
478 private AccessibilityManager _accessibilityManager;
480 public AccessibilityManager AccessibilityManager
484 return _accessibilityManager;
488 _accessibilityManager = value;
494 * @brief Event arguments that passed via ActionZoom signal
497 public class ActionZoomEventArgs : EventArgs
499 private AccessibilityManager _accessibilityManager;
501 public AccessibilityManager AccessibilityManager
505 return _accessibilityManager;
509 _accessibilityManager = value;
515 * @brief Event arguments that passed via ActionReadIndicatorInformation signal
518 public class ActionReadIndicatorInformationEventArgs : EventArgs
520 private AccessibilityManager _accessibilityManager;
522 public AccessibilityManager AccessibilityManager
526 return _accessibilityManager;
530 _accessibilityManager = value;
536 * @brief Event arguments that passed via ActionReadPauseResume signal
539 public class ActionReadPauseResumeEventArgs : EventArgs
541 private AccessibilityManager _accessibilityManager;
543 public AccessibilityManager AccessibilityManager
547 return _accessibilityManager;
551 _accessibilityManager = value;
557 * @brief Event arguments that passed via ActionStartStop signal
560 public class ActionStartStopEventArgs : EventArgs
562 private AccessibilityManager _accessibilityManager;
564 public AccessibilityManager AccessibilityManager
568 return _accessibilityManager;
572 _accessibilityManager = value;
578 * @brief Event arguments that passed via ActionScroll signal
582 // To be replaced by a new event that takes Touch
583 public class ActionScrollEventArgs : EventArgs
585 private AccessibilityManager _accessibilityManager;
586 private TouchEvent _touchEvent;
588 public AccessibilityManager AccessibilityManager
592 return _accessibilityManager;
596 _accessibilityManager = value;
600 public TouchEvent TouchEvent
615 * @brief Event arguments that passed via ActionPageUp signal
618 public class FocusChangedEventArgs : EventArgs
620 private Actor _actorCurrent;
621 private Actor _actorNext;
623 public Actor ActorCurrent
627 return _actorCurrent;
631 _actorCurrent = value;
635 public Actor ActorNext
649 * @brief Event arguments that passed via FocusedActorActivated signal
652 public class FocusedActorActivatedEventArgs : EventArgs
654 private Actor _actor;
671 * @brief Event arguments that passed via FocusOvershot signal
674 public class FocusOvershotEventArgs : EventArgs
676 private Actor _currentFocusedActor;
677 private AccessibilityManager.FocusOvershotDirection _focusOvershotDirection;
679 public Actor CurrentFocusedActor
683 return _currentFocusedActor;
687 _currentFocusedActor = value;
691 public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
695 return _focusOvershotDirection;
699 _focusOvershotDirection = value;
705 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
706 private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
707 private DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> _accessibilityManagerStatusChangedEventHandler;
708 private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate;
710 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
711 private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
712 private DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> _accessibilityManagerActionNextEventHandler;
713 private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate;
715 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
716 private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
717 private DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> _accessibilityManagerActionPreviousEventHandler;
718 private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate;
720 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
721 private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
722 private DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> _accessibilityManagerActionActivateEventHandler;
723 private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate;
725 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
726 private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
727 private DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> _accessibilityManagerActionReadEventHandler;
728 private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate;
730 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
731 private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
732 private DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> _accessibilityManagerActionOverEventHandler;
733 private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate;
735 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
736 private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
737 private DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> _accessibilityManagerActionReadNextEventHandler;
738 private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate;
740 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
741 private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
742 private DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> _accessibilityManagerActionReadPreviousEventHandler;
743 private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate;
745 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
746 private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
747 private DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> _accessibilityManagerActionUpEventHandler;
748 private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate;
750 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
751 private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
752 private DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> _accessibilityManagerActionDownEventHandler;
753 private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate;
755 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
756 private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
757 private DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> _accessibilityManagerActionClearFocusEventHandler;
758 private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate;
760 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
761 private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
762 private DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> _accessibilityManagerActionBackEventHandler;
763 private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate;
765 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
766 private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
767 private DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> _accessibilityManagerActionScrollUpEventHandler;
768 private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate;
770 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
771 private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
772 private DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> _accessibilityManagerActionScrollDownEventHandler;
773 private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate;
775 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
776 private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
777 private DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> _accessibilityManagerActionPageLeftEventHandler;
778 private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate;
780 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
781 private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
782 private DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> _accessibilityManagerActionPageRightEventHandler;
783 private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate;
785 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
786 private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
787 private DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs,bool> _accessibilityManagerActionPageUpEventHandler;
788 private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate;
790 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
791 private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
792 private DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> _accessibilityManagerActionPageDownEventHandler;
793 private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate;
795 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
796 private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
797 private DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> _accessibilityManagerActionMoveToFirstEventHandler;
798 private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate;
800 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
801 private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
802 private DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> _accessibilityManagerActionMoveToLastEventHandler;
803 private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate;
805 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
806 private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
807 private DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> _accessibilityManagerActionReadFromTopEventHandler;
808 private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate;
810 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
811 private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
812 private DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> _accessibilityManagerActionReadFromNextEventHandler;
813 private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate;
815 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
816 private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
817 private DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> _accessibilityManagerActionZoomEventHandler;
818 private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate;
820 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
821 private delegate bool ActionReadIndicatorInformationEventCallbackDelegate(IntPtr accessibilityManager);
822 private DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> _accessibilityManagerActionReadIndicatorInformationEventHandler;
823 private ActionReadIndicatorInformationEventCallbackDelegate _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate;
825 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
826 private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
827 private DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> _accessibilityManagerActionReadPauseResumeEventHandler;
828 private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
830 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
831 private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
832 private DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> _accessibilityManagerActionStartStopEventHandler;
833 private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate;
836 // To be replaced by a new event that takes Touch
837 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
838 private delegate bool ActionScrollEventCallbackDelegate(IntPtr accessibilityManager, IntPtr touchEvent);
839 private DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> _accessibilityManagerActionScrollEventHandler;
840 private ActionScrollEventCallbackDelegate _accessibilityManagerActionScrollEventCallbackDelegate;
843 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
844 private delegate void FocusChangedEventCallbackDelegate(IntPtr actor1, IntPtr actor2);
845 private DaliEventHandler<object,FocusChangedEventArgs> _accessibilityManagerFocusChangedEventHandler;
846 private FocusChangedEventCallbackDelegate _accessibilityManagerFocusChangedEventCallbackDelegate;
848 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
849 private delegate void FocusedActorActivatedEventCallbackDelegate(IntPtr actor);
850 private DaliEventHandler<object,FocusedActorActivatedEventArgs> _accessibilityManagerFocusedActorActivatedEventHandler;
851 private FocusedActorActivatedEventCallbackDelegate _accessibilityManagerFocusedActorActivatedEventCallbackDelegate;
853 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
854 private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction);
855 private DaliEventHandler<object,FocusOvershotEventArgs> _accessibilityManagerFocusOvershotEventHandler;
856 private FocusOvershotEventCallbackDelegate _accessibilityManagerFocusOvershotEventCallbackDelegate;
858 public event DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> StatusChanged
864 // Restricted to only one listener
865 if (_accessibilityManagerStatusChangedEventHandler == null)
867 _accessibilityManagerStatusChangedEventHandler += value;
869 _accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
870 this.StatusChangedSignal().Connect(_accessibilityManagerStatusChangedEventCallbackDelegate);
879 if (_accessibilityManagerStatusChangedEventHandler != null)
881 this.StatusChangedSignal().Disconnect(_accessibilityManagerStatusChangedEventCallbackDelegate);
884 _accessibilityManagerStatusChangedEventHandler -= value;
889 // Callback for AccessibilityManager StatusChangedSignal
890 private bool OnStatusChanged(IntPtr data)
892 StatusChangedEventArgs e = new StatusChangedEventArgs();
894 // Populate all members of "e" (StatusChangedEventArgs) with real data
895 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
897 if (_accessibilityManagerStatusChangedEventHandler != null)
899 //here we send all data to user event handlers
900 return _accessibilityManagerStatusChangedEventHandler(this, e);
905 public event DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> ActionNext
911 // Restricted to only one listener
912 if (_accessibilityManagerActionNextEventHandler == null)
914 _accessibilityManagerActionNextEventHandler += value;
916 _accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
917 this.ActionNextSignal().Connect(_accessibilityManagerActionNextEventCallbackDelegate);
926 if (_accessibilityManagerActionNextEventHandler != null)
928 this.ActionNextSignal().Disconnect(_accessibilityManagerActionNextEventCallbackDelegate);
931 _accessibilityManagerActionNextEventHandler -= value;
936 // Callback for AccessibilityManager ActionNextSignal
937 private bool OnActionNext(IntPtr data)
939 ActionNextEventArgs e = new ActionNextEventArgs();
941 // Populate all members of "e" (ActionNextEventArgs) with real data
942 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
944 if (_accessibilityManagerActionNextEventHandler != null)
946 //here we send all data to user event handlers
947 return _accessibilityManagerActionNextEventHandler(this, e);
952 public event DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> ActionPrevious
958 // Restricted to only one listener
959 if (_accessibilityManagerActionPreviousEventHandler == null)
961 _accessibilityManagerActionPreviousEventHandler += value;
963 _accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
964 this.ActionPreviousSignal().Connect(_accessibilityManagerActionPreviousEventCallbackDelegate);
973 if (_accessibilityManagerActionPreviousEventHandler != null)
975 this.ActionPreviousSignal().Disconnect(_accessibilityManagerActionPreviousEventCallbackDelegate);
978 _accessibilityManagerActionPreviousEventHandler -= value;
983 // Callback for AccessibilityManager ActionPreviousSignal
984 private bool OnActionPrevious(IntPtr data)
986 ActionPreviousEventArgs e = new ActionPreviousEventArgs();
988 // Populate all members of "e" (ActionPreviousEventArgs) with real data
989 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
991 if (_accessibilityManagerActionPreviousEventHandler != null)
993 //here we send all data to user event handlers
994 return _accessibilityManagerActionPreviousEventHandler(this, e);
999 public event DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> ActionActivate
1005 // Restricted to only one listener
1006 if (_accessibilityManagerActionActivateEventHandler == null)
1008 _accessibilityManagerActionActivateEventHandler += value;
1010 _accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
1011 this.ActionActivateSignal().Connect(_accessibilityManagerActionActivateEventCallbackDelegate);
1020 if (_accessibilityManagerActionActivateEventHandler != null)
1022 this.ActionActivateSignal().Disconnect(_accessibilityManagerActionActivateEventCallbackDelegate);
1025 _accessibilityManagerActionActivateEventHandler -= value;
1030 // Callback for AccessibilityManager ActionActivateSignal
1031 private bool OnActionActivate(IntPtr data)
1033 ActionActivateEventArgs e = new ActionActivateEventArgs();
1035 // Populate all members of "e" (ActionActivateEventArgs) with real data
1036 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1038 if (_accessibilityManagerActionActivateEventHandler != null)
1040 //here we send all data to user event handlers
1041 return _accessibilityManagerActionActivateEventHandler(this, e);
1046 public event DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> ActionRead
1052 // Restricted to only one listener
1053 if (_accessibilityManagerActionReadEventHandler == null)
1055 _accessibilityManagerActionReadEventHandler += value;
1057 _accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
1058 this.ActionReadSignal().Connect(_accessibilityManagerActionReadEventCallbackDelegate);
1067 if (_accessibilityManagerActionReadEventHandler != null)
1069 this.ActionReadSignal().Disconnect(_accessibilityManagerActionReadEventCallbackDelegate);
1072 _accessibilityManagerActionReadEventHandler -= value;
1077 // Callback for AccessibilityManager ActionReadSignal
1078 private bool OnActionRead(IntPtr data)
1080 ActionReadEventArgs e = new ActionReadEventArgs();
1082 // Populate all members of "e" (ActionReadEventArgs) with real data
1083 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1085 if (_accessibilityManagerActionReadEventHandler != null)
1087 //here we send all data to user event handlers
1088 return _accessibilityManagerActionReadEventHandler(this, e);
1093 public event DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> ActionOver
1099 // Restricted to only one listener
1100 if (_accessibilityManagerActionOverEventHandler == null)
1102 _accessibilityManagerActionOverEventHandler += value;
1104 _accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
1105 this.ActionOverSignal().Connect(_accessibilityManagerActionOverEventCallbackDelegate);
1114 if (_accessibilityManagerActionOverEventHandler != null)
1116 this.ActionOverSignal().Disconnect(_accessibilityManagerActionOverEventCallbackDelegate);
1119 _accessibilityManagerActionOverEventHandler -= value;
1124 // Callback for AccessibilityManager ActionOverSignal
1125 private bool OnActionOver(IntPtr data)
1127 ActionOverEventArgs e = new ActionOverEventArgs();
1129 // Populate all members of "e" (ActionOverEventArgs) with real data
1130 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1132 if (_accessibilityManagerActionOverEventHandler != null)
1134 //here we send all data to user event handlers
1135 return _accessibilityManagerActionOverEventHandler(this, e);
1140 public event DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> ActionReadNext
1146 // Restricted to only one listener
1147 if (_accessibilityManagerActionReadNextEventHandler == null)
1149 _accessibilityManagerActionReadNextEventHandler += value;
1151 _accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
1152 this.ActionReadNextSignal().Connect(_accessibilityManagerActionReadNextEventCallbackDelegate);
1161 if (_accessibilityManagerActionReadNextEventHandler != null)
1163 this.ActionReadNextSignal().Disconnect(_accessibilityManagerActionReadNextEventCallbackDelegate);
1166 _accessibilityManagerActionReadNextEventHandler -= value;
1171 // Callback for AccessibilityManager ActionReadNextSignal
1172 private bool OnActionReadNext(IntPtr data)
1174 ActionReadNextEventArgs e = new ActionReadNextEventArgs();
1176 // Populate all members of "e" (ActionReadNextEventArgs) with real data
1177 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1179 if (_accessibilityManagerActionReadNextEventHandler != null)
1181 //here we send all data to user event handlers
1182 return _accessibilityManagerActionReadNextEventHandler(this, e);
1188 public event DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> ActionReadPrevious
1194 // Restricted to only one listener
1195 if (_accessibilityManagerActionReadPreviousEventHandler == null)
1197 _accessibilityManagerActionReadPreviousEventHandler += value;
1199 _accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
1200 this.ActionReadPreviousSignal().Connect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
1209 if (_accessibilityManagerActionReadPreviousEventHandler != null)
1211 this.ActionReadPreviousSignal().Disconnect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
1214 _accessibilityManagerActionReadPreviousEventHandler -= value;
1219 // Callback for AccessibilityManager ActionReadPreviousSignal
1220 private bool OnActionReadPrevious(IntPtr data)
1222 ActionReadPreviousEventArgs e = new ActionReadPreviousEventArgs();
1224 // Populate all members of "e" (ActionReadPreviousEventArgs) with real data
1225 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1227 if (_accessibilityManagerActionReadPreviousEventHandler != null)
1229 //here we send all data to user event handlers
1230 return _accessibilityManagerActionReadPreviousEventHandler(this, e);
1235 public event DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> ActionUp
1241 // Restricted to only one listener
1242 if (_accessibilityManagerActionUpEventHandler == null)
1244 _accessibilityManagerActionUpEventHandler += value;
1246 _accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
1247 this.ActionUpSignal().Connect(_accessibilityManagerActionUpEventCallbackDelegate);
1256 if (_accessibilityManagerActionUpEventHandler != null)
1258 this.ActionUpSignal().Disconnect(_accessibilityManagerActionUpEventCallbackDelegate);
1261 _accessibilityManagerActionUpEventHandler -= value;
1266 // Callback for AccessibilityManager ActionUpSignal
1267 private bool OnActionUp(IntPtr data)
1269 ActionUpEventArgs e = new ActionUpEventArgs();
1271 // Populate all members of "e" (ActionUpEventArgs) with real data
1272 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1274 if (_accessibilityManagerActionUpEventHandler != null)
1276 //here we send all data to user event handlers
1277 return _accessibilityManagerActionUpEventHandler(this, e);
1282 public event DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> ActionDown
1288 // Restricted to only one listener
1289 if (_accessibilityManagerActionDownEventHandler == null)
1291 _accessibilityManagerActionDownEventHandler += value;
1293 _accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
1294 this.ActionDownSignal().Connect(_accessibilityManagerActionDownEventCallbackDelegate);
1303 if (_accessibilityManagerActionDownEventHandler != null)
1305 this.ActionDownSignal().Disconnect(_accessibilityManagerActionDownEventCallbackDelegate);
1308 _accessibilityManagerActionDownEventHandler -= value;
1313 // Callback for AccessibilityManager ActionDownSignal
1314 private bool OnActionDown(IntPtr data)
1316 ActionDownEventArgs e = new ActionDownEventArgs();
1318 // Populate all members of "e" (ActionDownEventArgs) with real data
1319 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1321 if (_accessibilityManagerActionDownEventHandler != null)
1323 //here we send all data to user event handlers
1324 return _accessibilityManagerActionDownEventHandler(this, e);
1329 public event DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> ActionClearFocus
1335 // Restricted to only one listener
1336 if (_accessibilityManagerActionClearFocusEventHandler == null)
1338 _accessibilityManagerActionClearFocusEventHandler += value;
1340 _accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
1341 this.ActionClearFocusSignal().Connect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
1350 if (_accessibilityManagerActionClearFocusEventHandler != null)
1352 this.ActionClearFocusSignal().Disconnect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
1355 _accessibilityManagerActionClearFocusEventHandler -= value;
1360 // Callback for AccessibilityManager ActionClearFocusSignal
1361 private bool OnActionClearFocus(IntPtr data)
1363 ActionClearFocusEventArgs e = new ActionClearFocusEventArgs();
1365 // Populate all members of "e" (ActionClearFocusEventArgs) with real data
1366 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1368 if (_accessibilityManagerActionClearFocusEventHandler != null)
1370 //here we send all data to user event handlers
1371 return _accessibilityManagerActionClearFocusEventHandler(this, e);
1376 public event DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> ActionBack
1382 // Restricted to only one listener
1383 if (_accessibilityManagerActionBackEventHandler == null)
1385 _accessibilityManagerActionBackEventHandler += value;
1387 _accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
1388 this.ActionBackSignal().Connect(_accessibilityManagerActionBackEventCallbackDelegate);
1397 if (_accessibilityManagerActionBackEventHandler != null)
1399 this.ActionBackSignal().Disconnect(_accessibilityManagerActionBackEventCallbackDelegate);
1402 _accessibilityManagerActionBackEventHandler -= value;
1407 // Callback for AccessibilityManager ActionBackSignal
1408 private bool OnActionBack(IntPtr data)
1410 ActionBackEventArgs e = new ActionBackEventArgs();
1412 // Populate all members of "e" (ActionBackEventArgs) with real data
1413 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1415 if (_accessibilityManagerActionBackEventHandler != null)
1417 //here we send all data to user event handlers
1418 return _accessibilityManagerActionBackEventHandler(this, e);
1423 public event DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> ActionScrollUp
1429 // Restricted to only one listener
1430 if (_accessibilityManagerActionScrollUpEventHandler == null)
1432 _accessibilityManagerActionScrollUpEventHandler += value;
1434 _accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
1435 this.ActionScrollUpSignal().Connect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
1444 if (_accessibilityManagerActionScrollUpEventHandler != null)
1446 this.ActionScrollUpSignal().Disconnect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
1449 _accessibilityManagerActionScrollUpEventHandler -= value;
1454 // Callback for AccessibilityManager ActionScrollUpSignal
1455 private bool OnActionScrollUp(IntPtr data)
1457 ActionScrollUpEventArgs e = new ActionScrollUpEventArgs();
1459 // Populate all members of "e" (ActionScrollUpEventArgs) with real data
1460 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1462 if (_accessibilityManagerActionScrollUpEventHandler != null)
1464 //here we send all data to user event handlers
1465 return _accessibilityManagerActionScrollUpEventHandler(this, e);
1470 public event DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> ActionScrollDown
1476 // Restricted to only one listener
1477 if (_accessibilityManagerActionScrollDownEventHandler == null)
1479 _accessibilityManagerActionScrollDownEventHandler += value;
1481 _accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
1482 this.ActionScrollDownSignal().Connect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
1491 if (_accessibilityManagerActionScrollDownEventHandler != null)
1493 this.ActionScrollDownSignal().Disconnect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
1496 _accessibilityManagerActionScrollDownEventHandler -= value;
1501 // Callback for AccessibilityManager ActionScrollDownSignal
1502 private bool OnActionScrollDown(IntPtr data)
1504 ActionScrollDownEventArgs e = new ActionScrollDownEventArgs();
1506 // Populate all members of "e" (ActionScrollDownEventArgs) with real data
1507 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1509 if (_accessibilityManagerActionScrollDownEventHandler != null)
1511 //here we send all data to user event handlers
1512 return _accessibilityManagerActionScrollDownEventHandler(this, e);
1518 public event DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> ActionPageLeft
1524 // Restricted to only one listener
1525 if (_accessibilityManagerActionPageLeftEventHandler == null)
1527 _accessibilityManagerActionPageLeftEventHandler += value;
1529 _accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
1530 this.ActionPageLeftSignal().Connect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
1539 if (_accessibilityManagerActionPageLeftEventHandler != null)
1541 this.ActionPageLeftSignal().Disconnect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
1544 _accessibilityManagerActionPageLeftEventHandler -= value;
1549 // Callback for AccessibilityManager ActionPageLeftSignal
1550 private bool OnActionPageLeft(IntPtr data)
1552 ActionPageLeftEventArgs e = new ActionPageLeftEventArgs();
1554 // Populate all members of "e" (ActionPageLeftEventArgs) with real data
1555 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1557 if (_accessibilityManagerActionPageLeftEventHandler != null)
1559 //here we send all data to user event handlers
1560 return _accessibilityManagerActionPageLeftEventHandler(this, e);
1565 public event DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> ActionPageRight
1571 // Restricted to only one listener
1572 if (_accessibilityManagerActionPageRightEventHandler == null)
1574 _accessibilityManagerActionPageRightEventHandler += value;
1576 _accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
1577 this.ActionPageRightSignal().Connect(_accessibilityManagerActionPageRightEventCallbackDelegate);
1586 if (_accessibilityManagerActionPageRightEventHandler != null)
1588 this.ActionPageRightSignal().Disconnect(_accessibilityManagerActionPageRightEventCallbackDelegate);
1591 _accessibilityManagerActionPageRightEventHandler -= value;
1596 // Callback for AccessibilityManager ActionPageRightSignal
1597 private bool OnActionPageRight(IntPtr data)
1599 ActionPageRightEventArgs e = new ActionPageRightEventArgs();
1601 // Populate all members of "e" (ActionPageRightEventArgs) with real data
1602 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1604 if (_accessibilityManagerActionPageRightEventHandler != null)
1606 //here we send all data to user event handlers
1607 return _accessibilityManagerActionPageRightEventHandler(this, e);
1612 public event DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs, bool> ActionPageUp
1618 // Restricted to only one listener
1619 if (_accessibilityManagerActionPageUpEventHandler == null)
1621 _accessibilityManagerActionPageUpEventHandler += value;
1623 _accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
1624 this.ActionPageUpSignal().Connect(_accessibilityManagerActionPageUpEventCallbackDelegate);
1633 if (_accessibilityManagerActionPageUpEventHandler != null)
1635 this.ActionPageUpSignal().Disconnect(_accessibilityManagerActionPageUpEventCallbackDelegate);
1638 _accessibilityManagerActionPageUpEventHandler -= value;
1643 // Callback for AccessibilityManager ActionPageUpSignal
1644 private bool OnActionPageUp(IntPtr data)
1646 ActionPageUpEventArgs e = new ActionPageUpEventArgs();
1648 // Populate all members of "e" (ActionPageUpEventArgs) with real data
1649 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1651 if (_accessibilityManagerActionPageUpEventHandler != null)
1653 //here we send all data to user event handlers
1654 return _accessibilityManagerActionPageUpEventHandler(this, e);
1660 public event DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> ActionPageDown
1666 // Restricted to only one listener
1667 if (_accessibilityManagerActionPageDownEventHandler == null)
1669 _accessibilityManagerActionPageDownEventHandler += value;
1671 _accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
1672 this.ActionPageDownSignal().Connect(_accessibilityManagerActionPageDownEventCallbackDelegate);
1681 if (_accessibilityManagerActionPageDownEventHandler != null)
1683 this.ActionPageDownSignal().Disconnect(_accessibilityManagerActionPageDownEventCallbackDelegate);
1686 _accessibilityManagerActionPageDownEventHandler -= value;
1691 // Callback for AccessibilityManager ActionPageDownSignal
1692 private bool OnActionPageDown(IntPtr data)
1694 ActionPageDownEventArgs e = new ActionPageDownEventArgs();
1696 // Populate all members of "e" (ActionPageDownEventArgs) with real data
1697 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1699 if (_accessibilityManagerActionPageDownEventHandler != null)
1701 //here we send all data to user event handlers
1702 return _accessibilityManagerActionPageDownEventHandler(this, e);
1708 public event DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> ActionMoveToFirst
1714 // Restricted to only one listener
1715 if (_accessibilityManagerActionMoveToFirstEventHandler == null)
1717 _accessibilityManagerActionMoveToFirstEventHandler += value;
1719 _accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
1720 this.ActionMoveToFirstSignal().Connect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
1729 if (_accessibilityManagerActionMoveToFirstEventHandler != null)
1731 this.ActionMoveToFirstSignal().Disconnect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
1734 _accessibilityManagerActionMoveToFirstEventHandler -= value;
1739 // Callback for AccessibilityManager ActionMoveToFirstSignal
1740 private bool OnActionMoveToFirst(IntPtr data)
1742 ActionMoveToFirstEventArgs e = new ActionMoveToFirstEventArgs();
1744 // Populate all members of "e" (ActionMoveToFirstEventArgs) with real data
1745 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1747 if (_accessibilityManagerActionMoveToFirstEventHandler != null)
1749 //here we send all data to user event handlers
1750 return _accessibilityManagerActionMoveToFirstEventHandler(this, e);
1755 public event DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> ActionMoveToLast
1761 // Restricted to only one listener
1762 if (_accessibilityManagerActionMoveToLastEventHandler == null)
1764 _accessibilityManagerActionMoveToLastEventHandler += value;
1766 _accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
1767 this.ActionMoveToLastSignal().Connect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
1776 if (_accessibilityManagerActionMoveToLastEventHandler != null)
1778 this.ActionMoveToLastSignal().Disconnect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
1781 _accessibilityManagerActionMoveToLastEventHandler -= value;
1786 // Callback for AccessibilityManager ActionMoveToLastSignal
1787 private bool OnActionMoveToLast(IntPtr data)
1789 ActionMoveToLastEventArgs e = new ActionMoveToLastEventArgs();
1791 // Populate all members of "e" (ActionMoveToLastEventArgs) with real data
1792 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1794 if (_accessibilityManagerActionMoveToLastEventHandler != null)
1796 //here we send all data to user event handlers
1797 return _accessibilityManagerActionMoveToLastEventHandler(this, e);
1802 public event DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> ActionReadFromTop
1808 // Restricted to only one listener
1809 if (_accessibilityManagerActionReadFromTopEventHandler == null)
1811 _accessibilityManagerActionReadFromTopEventHandler += value;
1813 _accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
1814 this.ActionReadFromTopSignal().Connect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
1823 if (_accessibilityManagerActionReadFromTopEventHandler != null)
1825 this.ActionReadFromTopSignal().Disconnect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
1828 _accessibilityManagerActionReadFromTopEventHandler -= value;
1833 // Callback for AccessibilityManager ActionReadFromTopSignal
1834 private bool OnActionReadFromTop(IntPtr data)
1836 ActionReadFromTopEventArgs e = new ActionReadFromTopEventArgs();
1838 // Populate all members of "e" (ActionReadFromTopEventArgs) with real data
1839 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1841 if (_accessibilityManagerActionReadFromTopEventHandler != null)
1843 //here we send all data to user event handlers
1844 return _accessibilityManagerActionReadFromTopEventHandler(this, e);
1849 public event DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> ActionReadFromNext
1855 // Restricted to only one listener
1856 if (_accessibilityManagerActionReadFromNextEventHandler == null)
1858 _accessibilityManagerActionReadFromNextEventHandler += value;
1860 _accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
1861 this.ActionReadFromNextSignal().Connect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
1870 if (_accessibilityManagerActionReadFromNextEventHandler != null)
1872 this.ActionReadFromNextSignal().Disconnect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
1875 _accessibilityManagerActionReadFromNextEventHandler -= value;
1880 // Callback for AccessibilityManager ActionReadFromNextSignal
1881 private bool OnActionReadFromNext(IntPtr data)
1883 ActionReadFromNextEventArgs e = new ActionReadFromNextEventArgs();
1885 // Populate all members of "e" (ActionReadFromNextEventArgs) with real data
1886 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1888 if (_accessibilityManagerActionReadFromNextEventHandler != null)
1890 //here we send all data to user event handlers
1891 return _accessibilityManagerActionReadFromNextEventHandler(this, e);
1896 public event DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> ActionZoom
1902 // Restricted to only one listener
1903 if (_accessibilityManagerActionZoomEventHandler == null)
1905 _accessibilityManagerActionZoomEventHandler += value;
1907 _accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
1908 this.ActionZoomSignal().Connect(_accessibilityManagerActionZoomEventCallbackDelegate);
1917 if (_accessibilityManagerActionZoomEventHandler != null)
1919 this.ActionZoomSignal().Disconnect(_accessibilityManagerActionZoomEventCallbackDelegate);
1922 _accessibilityManagerActionZoomEventHandler -= value;
1927 // Callback for AccessibilityManager ActionZoomSignal
1928 private bool OnActionZoom(IntPtr data)
1930 ActionZoomEventArgs e = new ActionZoomEventArgs();
1932 // Populate all members of "e" (ActionZoomEventArgs) with real data
1933 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1935 if (_accessibilityManagerActionZoomEventHandler != null)
1937 //here we send all data to user event handlers
1938 return _accessibilityManagerActionZoomEventHandler(this, e);
1943 public event DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> ActionReadIndicatorInformation
1949 // Restricted to only one listener
1950 if (_accessibilityManagerActionReadIndicatorInformationEventHandler == null)
1952 _accessibilityManagerActionReadIndicatorInformationEventHandler += value;
1954 _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate = new ActionReadIndicatorInformationEventCallbackDelegate(OnActionReadIndicatorInformation);
1955 this.ActionReadIndicatorInformationSignal().Connect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
1964 if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
1966 this.ActionReadIndicatorInformationSignal().Disconnect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
1969 _accessibilityManagerActionReadIndicatorInformationEventHandler -= value;
1974 // Callback for AccessibilityManager ActionReadIndicatorInformationSignal
1975 private bool OnActionReadIndicatorInformation(IntPtr data)
1977 ActionReadIndicatorInformationEventArgs e = new ActionReadIndicatorInformationEventArgs();
1979 // Populate all members of "e" (ActionReadIndicatorInformationEventArgs) with real data
1980 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1982 if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
1984 //here we send all data to user event handlers
1985 return _accessibilityManagerActionReadIndicatorInformationEventHandler(this, e);
1990 public event DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> ActionReadPauseResume
1996 // Restricted to only one listener
1997 if (_accessibilityManagerActionReadPauseResumeEventHandler == null)
1999 _accessibilityManagerActionReadPauseResumeEventHandler += value;
2001 _accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
2002 this.ActionReadPauseResumeSignal().Connect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
2011 if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
2013 this.ActionReadPauseResumeSignal().Disconnect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
2016 _accessibilityManagerActionReadPauseResumeEventHandler -= value;
2021 // Callback for AccessibilityManager ActionReadPauseResumeSignal
2022 private bool OnActionReadPauseResume(IntPtr data)
2024 ActionReadPauseResumeEventArgs e = new ActionReadPauseResumeEventArgs();
2026 // Populate all members of "e" (ActionReadPauseResumeEventArgs) with real data
2027 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
2029 if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
2031 //here we send all data to user event handlers
2032 return _accessibilityManagerActionReadPauseResumeEventHandler(this, e);
2037 public event DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> ActionStartStop
2043 // Restricted to only one listener
2044 if (_accessibilityManagerActionStartStopEventHandler == null)
2046 _accessibilityManagerActionStartStopEventHandler += value;
2048 _accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
2049 this.ActionStartStopSignal().Connect(_accessibilityManagerActionStartStopEventCallbackDelegate);
2058 if (_accessibilityManagerActionStartStopEventHandler != null)
2060 this.ActionStartStopSignal().Disconnect(_accessibilityManagerActionStartStopEventCallbackDelegate);
2063 _accessibilityManagerActionStartStopEventHandler -= value;
2068 // Callback for AccessibilityManager ActionStartStopSignal
2069 private bool OnActionStartStop(IntPtr data)
2071 ActionStartStopEventArgs e = new ActionStartStopEventArgs();
2073 // Populate all members of "e" (ActionStartStopEventArgs) with real data
2074 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
2076 if (_accessibilityManagerActionStartStopEventHandler != null)
2078 //here we send all data to user event handlers
2079 return _accessibilityManagerActionStartStopEventHandler(this, e);
2085 // To be replaced by a new event that takes Touch
2086 public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
2092 // Restricted to only one listener
2093 if (_accessibilityManagerActionScrollEventHandler == null)
2095 _accessibilityManagerActionScrollEventHandler += value;
2097 _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
2098 this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
2107 if (_accessibilityManagerActionScrollEventHandler != null)
2109 this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
2112 _accessibilityManagerActionScrollEventHandler -= value;
2117 // Callback for AccessibilityManager ActionScrollSignal
2118 private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
2120 ActionScrollEventArgs e = new ActionScrollEventArgs();
2122 // Populate all members of "e" (ActionScrollEventArgs) with real data
2123 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
2124 e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
2126 if (_accessibilityManagerActionScrollEventHandler != null)
2128 //here we send all data to user event handlers
2129 return _accessibilityManagerActionScrollEventHandler(this, e);
2135 public event DaliEventHandler<object,FocusChangedEventArgs> FocusChanged
2141 // Restricted to only one listener
2142 if (_accessibilityManagerFocusChangedEventHandler == null)
2144 _accessibilityManagerFocusChangedEventHandler += value;
2146 _accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
2147 this.FocusChangedSignal().Connect(_accessibilityManagerFocusChangedEventCallbackDelegate);
2156 if (_accessibilityManagerFocusChangedEventHandler != null)
2158 this.FocusChangedSignal().Disconnect(_accessibilityManagerFocusChangedEventCallbackDelegate);
2161 _accessibilityManagerFocusChangedEventHandler -= value;
2166 // Callback for AccessibilityManager FocusChangedSignal
2167 private void OnFocusChanged(IntPtr actor1, IntPtr actor2)
2169 FocusChangedEventArgs e = new FocusChangedEventArgs();
2171 // Populate all members of "e" (FocusChangedEventArgs) with real data
2172 e.ActorCurrent = Actor.GetActorFromPtr(actor1);
2173 e.ActorNext = Actor.GetActorFromPtr(actor2);
2175 if (_accessibilityManagerFocusChangedEventHandler != null)
2177 //here we send all data to user event handlers
2178 _accessibilityManagerFocusChangedEventHandler(this, e);
2182 public event DaliEventHandler<object,FocusedActorActivatedEventArgs> FocusedActorActivated
2188 // Restricted to only one listener
2189 if (_accessibilityManagerFocusedActorActivatedEventHandler == null)
2191 _accessibilityManagerFocusedActorActivatedEventHandler += value;
2193 _accessibilityManagerFocusedActorActivatedEventCallbackDelegate = new FocusedActorActivatedEventCallbackDelegate(OnFocusedActorActivated);
2194 this.FocusedActorActivatedSignal().Connect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
2203 if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
2205 this.FocusedActorActivatedSignal().Disconnect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
2208 _accessibilityManagerFocusedActorActivatedEventHandler -= value;
2213 // Callback for AccessibilityManager FocusedActorActivatedSignal
2214 private void OnFocusedActorActivated(IntPtr actor)
2216 FocusedActorActivatedEventArgs e = new FocusedActorActivatedEventArgs();
2218 // Populate all members of "e" (FocusedActorActivatedEventArgs) with real data
2219 e.Actor = Actor.GetActorFromPtr(actor);
2221 if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
2223 //here we send all data to user event handlers
2224 _accessibilityManagerFocusedActorActivatedEventHandler(this, e);
2229 public event DaliEventHandler<object,FocusOvershotEventArgs> FocusOvershot
2235 // Restricted to only one listener
2236 if (_accessibilityManagerFocusOvershotEventHandler == null)
2238 _accessibilityManagerFocusOvershotEventHandler += value;
2240 _accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
2241 this.FocusOvershotSignal().Connect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
2250 if (_accessibilityManagerFocusOvershotEventHandler != null)
2252 this.FocusOvershotSignal().Disconnect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
2255 _accessibilityManagerFocusOvershotEventHandler -= value;
2260 // Callback for AccessibilityManager FocusOvershotSignal
2261 private void OnFocusOvershot(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction)
2263 FocusOvershotEventArgs e = new FocusOvershotEventArgs();
2265 // Populate all members of "e" (FocusOvershotEventArgs) with real data
2266 e.CurrentFocusedActor = Actor.GetActorFromPtr(currentFocusedActor);
2267 e.FocusOvershotDirection = direction;
2269 if (_accessibilityManagerFocusOvershotEventHandler != null)
2271 //here we send all data to user event handlers
2272 _accessibilityManagerFocusOvershotEventHandler(this, e);
2277 public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
2278 ClassName ret = new ClassName(cPtr, false);
2279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2286 %define DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( NameSpace, ClassName)
2287 ACCESSIBILITY_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
2288 ACCESSIBILITY_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
2293 DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( Dali::Toolkit, AccessibilityManager);