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
581 public class ActionScrollEventArgs : EventArgs
583 private AccessibilityManager _accessibilityManager;
584 private TouchEvent _touchEvent;
586 public AccessibilityManager AccessibilityManager
590 return _accessibilityManager;
594 _accessibilityManager = value;
598 public TouchEvent TouchEvent
612 * @brief Event arguments that passed via ActionPageUp signal
615 public class FocusChangedEventArgs : EventArgs
617 private Actor _actorCurrent;
618 private Actor _actorNext;
620 public Actor ActorCurrent
624 return _actorCurrent;
628 _actorCurrent = value;
632 public Actor ActorNext
646 * @brief Event arguments that passed via FocusedActorActivated signal
649 public class FocusedActorActivatedEventArgs : EventArgs
651 private Actor _actor;
668 * @brief Event arguments that passed via FocusOvershot signal
671 public class FocusOvershotEventArgs : EventArgs
673 private Actor _currentFocusedActor;
674 private AccessibilityManager.FocusOvershotDirection _focusOvershotDirection;
676 public Actor CurrentFocusedActor
680 return _currentFocusedActor;
684 _currentFocusedActor = value;
688 public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
692 return _focusOvershotDirection;
696 _focusOvershotDirection = value;
702 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
703 private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
704 private DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> _accessibilityManagerStatusChangedEventHandler;
705 private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate;
707 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
708 private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
709 private DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> _accessibilityManagerActionNextEventHandler;
710 private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate;
712 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
713 private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
714 private DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> _accessibilityManagerActionPreviousEventHandler;
715 private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate;
717 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
718 private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
719 private DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> _accessibilityManagerActionActivateEventHandler;
720 private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate;
722 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
723 private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
724 private DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> _accessibilityManagerActionReadEventHandler;
725 private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate;
727 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
728 private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
729 private DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> _accessibilityManagerActionOverEventHandler;
730 private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate;
732 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
733 private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
734 private DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> _accessibilityManagerActionReadNextEventHandler;
735 private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate;
737 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
738 private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
739 private DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> _accessibilityManagerActionReadPreviousEventHandler;
740 private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate;
742 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
743 private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
744 private DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> _accessibilityManagerActionUpEventHandler;
745 private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate;
747 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
748 private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
749 private DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> _accessibilityManagerActionDownEventHandler;
750 private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate;
752 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
753 private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
754 private DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> _accessibilityManagerActionClearFocusEventHandler;
755 private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate;
757 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
758 private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
759 private DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> _accessibilityManagerActionBackEventHandler;
760 private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate;
762 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
763 private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
764 private DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> _accessibilityManagerActionScrollUpEventHandler;
765 private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate;
767 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
768 private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
769 private DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> _accessibilityManagerActionScrollDownEventHandler;
770 private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate;
772 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
773 private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
774 private DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> _accessibilityManagerActionPageLeftEventHandler;
775 private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate;
777 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
778 private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
779 private DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> _accessibilityManagerActionPageRightEventHandler;
780 private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate;
782 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
783 private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
784 private DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs,bool> _accessibilityManagerActionPageUpEventHandler;
785 private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate;
787 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
788 private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
789 private DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> _accessibilityManagerActionPageDownEventHandler;
790 private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate;
792 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
793 private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
794 private DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> _accessibilityManagerActionMoveToFirstEventHandler;
795 private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate;
797 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
798 private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
799 private DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> _accessibilityManagerActionMoveToLastEventHandler;
800 private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate;
802 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
803 private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
804 private DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> _accessibilityManagerActionReadFromTopEventHandler;
805 private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate;
807 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
808 private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
809 private DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> _accessibilityManagerActionReadFromNextEventHandler;
810 private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate;
812 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
813 private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
814 private DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> _accessibilityManagerActionZoomEventHandler;
815 private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate;
817 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
818 private delegate bool ActionReadIndicatorInformationEventCallbackDelegate(IntPtr accessibilityManager);
819 private DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> _accessibilityManagerActionReadIndicatorInformationEventHandler;
820 private ActionReadIndicatorInformationEventCallbackDelegate _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate;
822 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
823 private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
824 private DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> _accessibilityManagerActionReadPauseResumeEventHandler;
825 private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
827 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
828 private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
829 private DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> _accessibilityManagerActionStartStopEventHandler;
830 private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate;
832 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
833 private delegate bool ActionScrollEventCallbackDelegate(IntPtr accessibilityManager, IntPtr touchEvent);
834 private DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> _accessibilityManagerActionScrollEventHandler;
835 private ActionScrollEventCallbackDelegate _accessibilityManagerActionScrollEventCallbackDelegate;
837 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
838 private delegate void FocusChangedEventCallbackDelegate(IntPtr actor1, IntPtr actor2);
839 private DaliEventHandler<object,FocusChangedEventArgs> _accessibilityManagerFocusChangedEventHandler;
840 private FocusChangedEventCallbackDelegate _accessibilityManagerFocusChangedEventCallbackDelegate;
842 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
843 private delegate void FocusedActorActivatedEventCallbackDelegate(IntPtr actor);
844 private DaliEventHandler<object,FocusedActorActivatedEventArgs> _accessibilityManagerFocusedActorActivatedEventHandler;
845 private FocusedActorActivatedEventCallbackDelegate _accessibilityManagerFocusedActorActivatedEventCallbackDelegate;
847 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
848 private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction);
849 private DaliEventHandler<object,FocusOvershotEventArgs> _accessibilityManagerFocusOvershotEventHandler;
850 private FocusOvershotEventCallbackDelegate _accessibilityManagerFocusOvershotEventCallbackDelegate;
852 public event DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> StatusChanged
858 // Restricted to only one listener
859 if (_accessibilityManagerStatusChangedEventHandler == null)
861 _accessibilityManagerStatusChangedEventHandler += value;
863 _accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
864 this.StatusChangedSignal().Connect(_accessibilityManagerStatusChangedEventCallbackDelegate);
873 if (_accessibilityManagerStatusChangedEventHandler != null)
875 this.StatusChangedSignal().Disconnect(_accessibilityManagerStatusChangedEventCallbackDelegate);
878 _accessibilityManagerStatusChangedEventHandler -= value;
883 // Callback for AccessibilityManager StatusChangedSignal
884 private bool OnStatusChanged(IntPtr data)
886 StatusChangedEventArgs e = new StatusChangedEventArgs();
888 // Populate all members of "e" (StatusChangedEventArgs) with real data
889 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
891 if (_accessibilityManagerStatusChangedEventHandler != null)
893 //here we send all data to user event handlers
894 return _accessibilityManagerStatusChangedEventHandler(this, e);
899 public event DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> ActionNext
905 // Restricted to only one listener
906 if (_accessibilityManagerActionNextEventHandler == null)
908 _accessibilityManagerActionNextEventHandler += value;
910 _accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
911 this.ActionNextSignal().Connect(_accessibilityManagerActionNextEventCallbackDelegate);
920 if (_accessibilityManagerActionNextEventHandler != null)
922 this.ActionNextSignal().Disconnect(_accessibilityManagerActionNextEventCallbackDelegate);
925 _accessibilityManagerActionNextEventHandler -= value;
930 // Callback for AccessibilityManager ActionNextSignal
931 private bool OnActionNext(IntPtr data)
933 ActionNextEventArgs e = new ActionNextEventArgs();
935 // Populate all members of "e" (ActionNextEventArgs) with real data
936 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
938 if (_accessibilityManagerActionNextEventHandler != null)
940 //here we send all data to user event handlers
941 return _accessibilityManagerActionNextEventHandler(this, e);
946 public event DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> ActionPrevious
952 // Restricted to only one listener
953 if (_accessibilityManagerActionPreviousEventHandler == null)
955 _accessibilityManagerActionPreviousEventHandler += value;
957 _accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
958 this.ActionPreviousSignal().Connect(_accessibilityManagerActionPreviousEventCallbackDelegate);
967 if (_accessibilityManagerActionPreviousEventHandler != null)
969 this.ActionPreviousSignal().Disconnect(_accessibilityManagerActionPreviousEventCallbackDelegate);
972 _accessibilityManagerActionPreviousEventHandler -= value;
977 // Callback for AccessibilityManager ActionPreviousSignal
978 private bool OnActionPrevious(IntPtr data)
980 ActionPreviousEventArgs e = new ActionPreviousEventArgs();
982 // Populate all members of "e" (ActionPreviousEventArgs) with real data
983 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
985 if (_accessibilityManagerActionPreviousEventHandler != null)
987 //here we send all data to user event handlers
988 return _accessibilityManagerActionPreviousEventHandler(this, e);
993 public event DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> ActionActivate
999 // Restricted to only one listener
1000 if (_accessibilityManagerActionActivateEventHandler == null)
1002 _accessibilityManagerActionActivateEventHandler += value;
1004 _accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
1005 this.ActionActivateSignal().Connect(_accessibilityManagerActionActivateEventCallbackDelegate);
1014 if (_accessibilityManagerActionActivateEventHandler != null)
1016 this.ActionActivateSignal().Disconnect(_accessibilityManagerActionActivateEventCallbackDelegate);
1019 _accessibilityManagerActionActivateEventHandler -= value;
1024 // Callback for AccessibilityManager ActionActivateSignal
1025 private bool OnActionActivate(IntPtr data)
1027 ActionActivateEventArgs e = new ActionActivateEventArgs();
1029 // Populate all members of "e" (ActionActivateEventArgs) with real data
1030 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1032 if (_accessibilityManagerActionActivateEventHandler != null)
1034 //here we send all data to user event handlers
1035 return _accessibilityManagerActionActivateEventHandler(this, e);
1040 public event DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> ActionRead
1046 // Restricted to only one listener
1047 if (_accessibilityManagerActionReadEventHandler == null)
1049 _accessibilityManagerActionReadEventHandler += value;
1051 _accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
1052 this.ActionReadSignal().Connect(_accessibilityManagerActionReadEventCallbackDelegate);
1061 if (_accessibilityManagerActionReadEventHandler != null)
1063 this.ActionReadSignal().Disconnect(_accessibilityManagerActionReadEventCallbackDelegate);
1066 _accessibilityManagerActionReadEventHandler -= value;
1071 // Callback for AccessibilityManager ActionReadSignal
1072 private bool OnActionRead(IntPtr data)
1074 ActionReadEventArgs e = new ActionReadEventArgs();
1076 // Populate all members of "e" (ActionReadEventArgs) with real data
1077 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1079 if (_accessibilityManagerActionReadEventHandler != null)
1081 //here we send all data to user event handlers
1082 return _accessibilityManagerActionReadEventHandler(this, e);
1087 public event DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> ActionOver
1093 // Restricted to only one listener
1094 if (_accessibilityManagerActionOverEventHandler == null)
1096 _accessibilityManagerActionOverEventHandler += value;
1098 _accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
1099 this.ActionOverSignal().Connect(_accessibilityManagerActionOverEventCallbackDelegate);
1108 if (_accessibilityManagerActionOverEventHandler != null)
1110 this.ActionOverSignal().Disconnect(_accessibilityManagerActionOverEventCallbackDelegate);
1113 _accessibilityManagerActionOverEventHandler -= value;
1118 // Callback for AccessibilityManager ActionOverSignal
1119 private bool OnActionOver(IntPtr data)
1121 ActionOverEventArgs e = new ActionOverEventArgs();
1123 // Populate all members of "e" (ActionOverEventArgs) with real data
1124 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1126 if (_accessibilityManagerActionOverEventHandler != null)
1128 //here we send all data to user event handlers
1129 return _accessibilityManagerActionOverEventHandler(this, e);
1134 public event DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> ActionReadNext
1140 // Restricted to only one listener
1141 if (_accessibilityManagerActionReadNextEventHandler == null)
1143 _accessibilityManagerActionReadNextEventHandler += value;
1145 _accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
1146 this.ActionReadNextSignal().Connect(_accessibilityManagerActionReadNextEventCallbackDelegate);
1155 if (_accessibilityManagerActionReadNextEventHandler != null)
1157 this.ActionReadNextSignal().Disconnect(_accessibilityManagerActionReadNextEventCallbackDelegate);
1160 _accessibilityManagerActionReadNextEventHandler -= value;
1165 // Callback for AccessibilityManager ActionReadNextSignal
1166 private bool OnActionReadNext(IntPtr data)
1168 ActionReadNextEventArgs e = new ActionReadNextEventArgs();
1170 // Populate all members of "e" (ActionReadNextEventArgs) with real data
1171 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1173 if (_accessibilityManagerActionReadNextEventHandler != null)
1175 //here we send all data to user event handlers
1176 return _accessibilityManagerActionReadNextEventHandler(this, e);
1182 public event DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> ActionReadPrevious
1188 // Restricted to only one listener
1189 if (_accessibilityManagerActionReadPreviousEventHandler == null)
1191 _accessibilityManagerActionReadPreviousEventHandler += value;
1193 _accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
1194 this.ActionReadPreviousSignal().Connect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
1203 if (_accessibilityManagerActionReadPreviousEventHandler != null)
1205 this.ActionReadPreviousSignal().Disconnect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
1208 _accessibilityManagerActionReadPreviousEventHandler -= value;
1213 // Callback for AccessibilityManager ActionReadPreviousSignal
1214 private bool OnActionReadPrevious(IntPtr data)
1216 ActionReadPreviousEventArgs e = new ActionReadPreviousEventArgs();
1218 // Populate all members of "e" (ActionReadPreviousEventArgs) with real data
1219 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1221 if (_accessibilityManagerActionReadPreviousEventHandler != null)
1223 //here we send all data to user event handlers
1224 return _accessibilityManagerActionReadPreviousEventHandler(this, e);
1229 public event DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> ActionUp
1235 // Restricted to only one listener
1236 if (_accessibilityManagerActionUpEventHandler == null)
1238 _accessibilityManagerActionUpEventHandler += value;
1240 _accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
1241 this.ActionUpSignal().Connect(_accessibilityManagerActionUpEventCallbackDelegate);
1250 if (_accessibilityManagerActionUpEventHandler != null)
1252 this.ActionUpSignal().Disconnect(_accessibilityManagerActionUpEventCallbackDelegate);
1255 _accessibilityManagerActionUpEventHandler -= value;
1260 // Callback for AccessibilityManager ActionUpSignal
1261 private bool OnActionUp(IntPtr data)
1263 ActionUpEventArgs e = new ActionUpEventArgs();
1265 // Populate all members of "e" (ActionUpEventArgs) with real data
1266 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1268 if (_accessibilityManagerActionUpEventHandler != null)
1270 //here we send all data to user event handlers
1271 return _accessibilityManagerActionUpEventHandler(this, e);
1276 public event DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> ActionDown
1282 // Restricted to only one listener
1283 if (_accessibilityManagerActionDownEventHandler == null)
1285 _accessibilityManagerActionDownEventHandler += value;
1287 _accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
1288 this.ActionDownSignal().Connect(_accessibilityManagerActionDownEventCallbackDelegate);
1297 if (_accessibilityManagerActionDownEventHandler != null)
1299 this.ActionDownSignal().Disconnect(_accessibilityManagerActionDownEventCallbackDelegate);
1302 _accessibilityManagerActionDownEventHandler -= value;
1307 // Callback for AccessibilityManager ActionDownSignal
1308 private bool OnActionDown(IntPtr data)
1310 ActionDownEventArgs e = new ActionDownEventArgs();
1312 // Populate all members of "e" (ActionDownEventArgs) with real data
1313 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1315 if (_accessibilityManagerActionDownEventHandler != null)
1317 //here we send all data to user event handlers
1318 return _accessibilityManagerActionDownEventHandler(this, e);
1323 public event DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> ActionClearFocus
1329 // Restricted to only one listener
1330 if (_accessibilityManagerActionClearFocusEventHandler == null)
1332 _accessibilityManagerActionClearFocusEventHandler += value;
1334 _accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
1335 this.ActionClearFocusSignal().Connect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
1344 if (_accessibilityManagerActionClearFocusEventHandler != null)
1346 this.ActionClearFocusSignal().Disconnect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
1349 _accessibilityManagerActionClearFocusEventHandler -= value;
1354 // Callback for AccessibilityManager ActionClearFocusSignal
1355 private bool OnActionClearFocus(IntPtr data)
1357 ActionClearFocusEventArgs e = new ActionClearFocusEventArgs();
1359 // Populate all members of "e" (ActionClearFocusEventArgs) with real data
1360 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1362 if (_accessibilityManagerActionClearFocusEventHandler != null)
1364 //here we send all data to user event handlers
1365 return _accessibilityManagerActionClearFocusEventHandler(this, e);
1370 public event DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> ActionBack
1376 // Restricted to only one listener
1377 if (_accessibilityManagerActionBackEventHandler == null)
1379 _accessibilityManagerActionBackEventHandler += value;
1381 _accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
1382 this.ActionBackSignal().Connect(_accessibilityManagerActionBackEventCallbackDelegate);
1391 if (_accessibilityManagerActionBackEventHandler != null)
1393 this.ActionBackSignal().Disconnect(_accessibilityManagerActionBackEventCallbackDelegate);
1396 _accessibilityManagerActionBackEventHandler -= value;
1401 // Callback for AccessibilityManager ActionBackSignal
1402 private bool OnActionBack(IntPtr data)
1404 ActionBackEventArgs e = new ActionBackEventArgs();
1406 // Populate all members of "e" (ActionBackEventArgs) with real data
1407 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1409 if (_accessibilityManagerActionBackEventHandler != null)
1411 //here we send all data to user event handlers
1412 return _accessibilityManagerActionBackEventHandler(this, e);
1417 public event DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> ActionScrollUp
1423 // Restricted to only one listener
1424 if (_accessibilityManagerActionScrollUpEventHandler == null)
1426 _accessibilityManagerActionScrollUpEventHandler += value;
1428 _accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
1429 this.ActionScrollUpSignal().Connect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
1438 if (_accessibilityManagerActionScrollUpEventHandler != null)
1440 this.ActionScrollUpSignal().Disconnect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
1443 _accessibilityManagerActionScrollUpEventHandler -= value;
1448 // Callback for AccessibilityManager ActionScrollUpSignal
1449 private bool OnActionScrollUp(IntPtr data)
1451 ActionScrollUpEventArgs e = new ActionScrollUpEventArgs();
1453 // Populate all members of "e" (ActionScrollUpEventArgs) with real data
1454 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1456 if (_accessibilityManagerActionScrollUpEventHandler != null)
1458 //here we send all data to user event handlers
1459 return _accessibilityManagerActionScrollUpEventHandler(this, e);
1464 public event DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> ActionScrollDown
1470 // Restricted to only one listener
1471 if (_accessibilityManagerActionScrollDownEventHandler == null)
1473 _accessibilityManagerActionScrollDownEventHandler += value;
1475 _accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
1476 this.ActionScrollDownSignal().Connect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
1485 if (_accessibilityManagerActionScrollDownEventHandler != null)
1487 this.ActionScrollDownSignal().Disconnect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
1490 _accessibilityManagerActionScrollDownEventHandler -= value;
1495 // Callback for AccessibilityManager ActionScrollDownSignal
1496 private bool OnActionScrollDown(IntPtr data)
1498 ActionScrollDownEventArgs e = new ActionScrollDownEventArgs();
1500 // Populate all members of "e" (ActionScrollDownEventArgs) with real data
1501 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1503 if (_accessibilityManagerActionScrollDownEventHandler != null)
1505 //here we send all data to user event handlers
1506 return _accessibilityManagerActionScrollDownEventHandler(this, e);
1512 public event DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> ActionPageLeft
1518 // Restricted to only one listener
1519 if (_accessibilityManagerActionPageLeftEventHandler == null)
1521 _accessibilityManagerActionPageLeftEventHandler += value;
1523 _accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
1524 this.ActionPageLeftSignal().Connect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
1533 if (_accessibilityManagerActionPageLeftEventHandler != null)
1535 this.ActionPageLeftSignal().Disconnect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
1538 _accessibilityManagerActionPageLeftEventHandler -= value;
1543 // Callback for AccessibilityManager ActionPageLeftSignal
1544 private bool OnActionPageLeft(IntPtr data)
1546 ActionPageLeftEventArgs e = new ActionPageLeftEventArgs();
1548 // Populate all members of "e" (ActionPageLeftEventArgs) with real data
1549 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1551 if (_accessibilityManagerActionPageLeftEventHandler != null)
1553 //here we send all data to user event handlers
1554 return _accessibilityManagerActionPageLeftEventHandler(this, e);
1559 public event DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> ActionPageRight
1565 // Restricted to only one listener
1566 if (_accessibilityManagerActionPageRightEventHandler == null)
1568 _accessibilityManagerActionPageRightEventHandler += value;
1570 _accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
1571 this.ActionPageRightSignal().Connect(_accessibilityManagerActionPageRightEventCallbackDelegate);
1580 if (_accessibilityManagerActionPageRightEventHandler != null)
1582 this.ActionPageRightSignal().Disconnect(_accessibilityManagerActionPageRightEventCallbackDelegate);
1585 _accessibilityManagerActionPageRightEventHandler -= value;
1590 // Callback for AccessibilityManager ActionPageRightSignal
1591 private bool OnActionPageRight(IntPtr data)
1593 ActionPageRightEventArgs e = new ActionPageRightEventArgs();
1595 // Populate all members of "e" (ActionPageRightEventArgs) with real data
1596 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1598 if (_accessibilityManagerActionPageRightEventHandler != null)
1600 //here we send all data to user event handlers
1601 return _accessibilityManagerActionPageRightEventHandler(this, e);
1606 public event DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs, bool> ActionPageUp
1612 // Restricted to only one listener
1613 if (_accessibilityManagerActionPageUpEventHandler == null)
1615 _accessibilityManagerActionPageUpEventHandler += value;
1617 _accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
1618 this.ActionPageUpSignal().Connect(_accessibilityManagerActionPageUpEventCallbackDelegate);
1627 if (_accessibilityManagerActionPageUpEventHandler != null)
1629 this.ActionPageUpSignal().Disconnect(_accessibilityManagerActionPageUpEventCallbackDelegate);
1632 _accessibilityManagerActionPageUpEventHandler -= value;
1637 // Callback for AccessibilityManager ActionPageUpSignal
1638 private bool OnActionPageUp(IntPtr data)
1640 ActionPageUpEventArgs e = new ActionPageUpEventArgs();
1642 // Populate all members of "e" (ActionPageUpEventArgs) with real data
1643 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1645 if (_accessibilityManagerActionPageUpEventHandler != null)
1647 //here we send all data to user event handlers
1648 return _accessibilityManagerActionPageUpEventHandler(this, e);
1654 public event DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> ActionPageDown
1660 // Restricted to only one listener
1661 if (_accessibilityManagerActionPageDownEventHandler == null)
1663 _accessibilityManagerActionPageDownEventHandler += value;
1665 _accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
1666 this.ActionPageDownSignal().Connect(_accessibilityManagerActionPageDownEventCallbackDelegate);
1675 if (_accessibilityManagerActionPageDownEventHandler != null)
1677 this.ActionPageDownSignal().Disconnect(_accessibilityManagerActionPageDownEventCallbackDelegate);
1680 _accessibilityManagerActionPageDownEventHandler -= value;
1685 // Callback for AccessibilityManager ActionPageDownSignal
1686 private bool OnActionPageDown(IntPtr data)
1688 ActionPageDownEventArgs e = new ActionPageDownEventArgs();
1690 // Populate all members of "e" (ActionPageDownEventArgs) with real data
1691 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1693 if (_accessibilityManagerActionPageDownEventHandler != null)
1695 //here we send all data to user event handlers
1696 return _accessibilityManagerActionPageDownEventHandler(this, e);
1702 public event DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> ActionMoveToFirst
1708 // Restricted to only one listener
1709 if (_accessibilityManagerActionMoveToFirstEventHandler == null)
1711 _accessibilityManagerActionMoveToFirstEventHandler += value;
1713 _accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
1714 this.ActionMoveToFirstSignal().Connect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
1723 if (_accessibilityManagerActionMoveToFirstEventHandler != null)
1725 this.ActionMoveToFirstSignal().Disconnect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
1728 _accessibilityManagerActionMoveToFirstEventHandler -= value;
1733 // Callback for AccessibilityManager ActionMoveToFirstSignal
1734 private bool OnActionMoveToFirst(IntPtr data)
1736 ActionMoveToFirstEventArgs e = new ActionMoveToFirstEventArgs();
1738 // Populate all members of "e" (ActionMoveToFirstEventArgs) with real data
1739 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1741 if (_accessibilityManagerActionMoveToFirstEventHandler != null)
1743 //here we send all data to user event handlers
1744 return _accessibilityManagerActionMoveToFirstEventHandler(this, e);
1749 public event DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> ActionMoveToLast
1755 // Restricted to only one listener
1756 if (_accessibilityManagerActionMoveToLastEventHandler == null)
1758 _accessibilityManagerActionMoveToLastEventHandler += value;
1760 _accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
1761 this.ActionMoveToLastSignal().Connect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
1770 if (_accessibilityManagerActionMoveToLastEventHandler != null)
1772 this.ActionMoveToLastSignal().Disconnect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
1775 _accessibilityManagerActionMoveToLastEventHandler -= value;
1780 // Callback for AccessibilityManager ActionMoveToLastSignal
1781 private bool OnActionMoveToLast(IntPtr data)
1783 ActionMoveToLastEventArgs e = new ActionMoveToLastEventArgs();
1785 // Populate all members of "e" (ActionMoveToLastEventArgs) with real data
1786 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1788 if (_accessibilityManagerActionMoveToLastEventHandler != null)
1790 //here we send all data to user event handlers
1791 return _accessibilityManagerActionMoveToLastEventHandler(this, e);
1796 public event DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> ActionReadFromTop
1802 // Restricted to only one listener
1803 if (_accessibilityManagerActionReadFromTopEventHandler == null)
1805 _accessibilityManagerActionReadFromTopEventHandler += value;
1807 _accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
1808 this.ActionReadFromTopSignal().Connect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
1817 if (_accessibilityManagerActionReadFromTopEventHandler != null)
1819 this.ActionReadFromTopSignal().Disconnect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
1822 _accessibilityManagerActionReadFromTopEventHandler -= value;
1827 // Callback for AccessibilityManager ActionReadFromTopSignal
1828 private bool OnActionReadFromTop(IntPtr data)
1830 ActionReadFromTopEventArgs e = new ActionReadFromTopEventArgs();
1832 // Populate all members of "e" (ActionReadFromTopEventArgs) with real data
1833 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1835 if (_accessibilityManagerActionReadFromTopEventHandler != null)
1837 //here we send all data to user event handlers
1838 return _accessibilityManagerActionReadFromTopEventHandler(this, e);
1843 public event DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> ActionReadFromNext
1849 // Restricted to only one listener
1850 if (_accessibilityManagerActionReadFromNextEventHandler == null)
1852 _accessibilityManagerActionReadFromNextEventHandler += value;
1854 _accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
1855 this.ActionReadFromNextSignal().Connect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
1864 if (_accessibilityManagerActionReadFromNextEventHandler != null)
1866 this.ActionReadFromNextSignal().Disconnect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
1869 _accessibilityManagerActionReadFromNextEventHandler -= value;
1874 // Callback for AccessibilityManager ActionReadFromNextSignal
1875 private bool OnActionReadFromNext(IntPtr data)
1877 ActionReadFromNextEventArgs e = new ActionReadFromNextEventArgs();
1879 // Populate all members of "e" (ActionReadFromNextEventArgs) with real data
1880 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1882 if (_accessibilityManagerActionReadFromNextEventHandler != null)
1884 //here we send all data to user event handlers
1885 return _accessibilityManagerActionReadFromNextEventHandler(this, e);
1890 public event DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> ActionZoom
1896 // Restricted to only one listener
1897 if (_accessibilityManagerActionZoomEventHandler == null)
1899 _accessibilityManagerActionZoomEventHandler += value;
1901 _accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
1902 this.ActionZoomSignal().Connect(_accessibilityManagerActionZoomEventCallbackDelegate);
1911 if (_accessibilityManagerActionZoomEventHandler != null)
1913 this.ActionZoomSignal().Disconnect(_accessibilityManagerActionZoomEventCallbackDelegate);
1916 _accessibilityManagerActionZoomEventHandler -= value;
1921 // Callback for AccessibilityManager ActionZoomSignal
1922 private bool OnActionZoom(IntPtr data)
1924 ActionZoomEventArgs e = new ActionZoomEventArgs();
1926 // Populate all members of "e" (ActionZoomEventArgs) with real data
1927 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1929 if (_accessibilityManagerActionZoomEventHandler != null)
1931 //here we send all data to user event handlers
1932 return _accessibilityManagerActionZoomEventHandler(this, e);
1937 public event DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> ActionReadIndicatorInformation
1943 // Restricted to only one listener
1944 if (_accessibilityManagerActionReadIndicatorInformationEventHandler == null)
1946 _accessibilityManagerActionReadIndicatorInformationEventHandler += value;
1948 _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate = new ActionReadIndicatorInformationEventCallbackDelegate(OnActionReadIndicatorInformation);
1949 this.ActionReadIndicatorInformationSignal().Connect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
1958 if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
1960 this.ActionReadIndicatorInformationSignal().Disconnect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
1963 _accessibilityManagerActionReadIndicatorInformationEventHandler -= value;
1968 // Callback for AccessibilityManager ActionReadIndicatorInformationSignal
1969 private bool OnActionReadIndicatorInformation(IntPtr data)
1971 ActionReadIndicatorInformationEventArgs e = new ActionReadIndicatorInformationEventArgs();
1973 // Populate all members of "e" (ActionReadIndicatorInformationEventArgs) with real data
1974 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
1976 if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
1978 //here we send all data to user event handlers
1979 return _accessibilityManagerActionReadIndicatorInformationEventHandler(this, e);
1984 public event DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> ActionReadPauseResume
1990 // Restricted to only one listener
1991 if (_accessibilityManagerActionReadPauseResumeEventHandler == null)
1993 _accessibilityManagerActionReadPauseResumeEventHandler += value;
1995 _accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
1996 this.ActionReadPauseResumeSignal().Connect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
2005 if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
2007 this.ActionReadPauseResumeSignal().Disconnect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
2010 _accessibilityManagerActionReadPauseResumeEventHandler -= value;
2015 // Callback for AccessibilityManager ActionReadPauseResumeSignal
2016 private bool OnActionReadPauseResume(IntPtr data)
2018 ActionReadPauseResumeEventArgs e = new ActionReadPauseResumeEventArgs();
2020 // Populate all members of "e" (ActionReadPauseResumeEventArgs) with real data
2021 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
2023 if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
2025 //here we send all data to user event handlers
2026 return _accessibilityManagerActionReadPauseResumeEventHandler(this, e);
2031 public event DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> ActionStartStop
2037 // Restricted to only one listener
2038 if (_accessibilityManagerActionStartStopEventHandler == null)
2040 _accessibilityManagerActionStartStopEventHandler += value;
2042 _accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
2043 this.ActionStartStopSignal().Connect(_accessibilityManagerActionStartStopEventCallbackDelegate);
2052 if (_accessibilityManagerActionStartStopEventHandler != null)
2054 this.ActionStartStopSignal().Disconnect(_accessibilityManagerActionStartStopEventCallbackDelegate);
2057 _accessibilityManagerActionStartStopEventHandler -= value;
2062 // Callback for AccessibilityManager ActionStartStopSignal
2063 private bool OnActionStartStop(IntPtr data)
2065 ActionStartStopEventArgs e = new ActionStartStopEventArgs();
2067 // Populate all members of "e" (ActionStartStopEventArgs) with real data
2068 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
2070 if (_accessibilityManagerActionStartStopEventHandler != null)
2072 //here we send all data to user event handlers
2073 return _accessibilityManagerActionStartStopEventHandler(this, e);
2078 public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
2084 // Restricted to only one listener
2085 if (_accessibilityManagerActionScrollEventHandler == null)
2087 _accessibilityManagerActionScrollEventHandler += value;
2089 _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
2090 this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
2099 if (_accessibilityManagerActionScrollEventHandler != null)
2101 this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
2104 _accessibilityManagerActionScrollEventHandler -= value;
2109 // Callback for AccessibilityManager ActionScrollSignal
2110 private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
2112 ActionScrollEventArgs e = new ActionScrollEventArgs();
2114 // Populate all members of "e" (ActionScrollEventArgs) with real data
2115 e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
2116 e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
2118 if (_accessibilityManagerActionScrollEventHandler != null)
2120 //here we send all data to user event handlers
2121 return _accessibilityManagerActionScrollEventHandler(this, e);
2126 public event DaliEventHandler<object,FocusChangedEventArgs> FocusChanged
2132 // Restricted to only one listener
2133 if (_accessibilityManagerFocusChangedEventHandler == null)
2135 _accessibilityManagerFocusChangedEventHandler += value;
2137 _accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
2138 this.FocusChangedSignal().Connect(_accessibilityManagerFocusChangedEventCallbackDelegate);
2147 if (_accessibilityManagerFocusChangedEventHandler != null)
2149 this.FocusChangedSignal().Disconnect(_accessibilityManagerFocusChangedEventCallbackDelegate);
2152 _accessibilityManagerFocusChangedEventHandler -= value;
2157 // Callback for AccessibilityManager FocusChangedSignal
2158 private void OnFocusChanged(IntPtr actor1, IntPtr actor2)
2160 FocusChangedEventArgs e = new FocusChangedEventArgs();
2162 // Populate all members of "e" (FocusChangedEventArgs) with real data
2163 e.ActorCurrent = Actor.GetActorFromPtr(actor1);
2164 e.ActorNext = Actor.GetActorFromPtr(actor2);
2166 if (_accessibilityManagerFocusChangedEventHandler != null)
2168 //here we send all data to user event handlers
2169 _accessibilityManagerFocusChangedEventHandler(this, e);
2173 public event DaliEventHandler<object,FocusedActorActivatedEventArgs> FocusedActorActivated
2179 // Restricted to only one listener
2180 if (_accessibilityManagerFocusedActorActivatedEventHandler == null)
2182 _accessibilityManagerFocusedActorActivatedEventHandler += value;
2184 _accessibilityManagerFocusedActorActivatedEventCallbackDelegate = new FocusedActorActivatedEventCallbackDelegate(OnFocusedActorActivated);
2185 this.FocusedActorActivatedSignal().Connect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
2194 if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
2196 this.FocusedActorActivatedSignal().Disconnect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
2199 _accessibilityManagerFocusedActorActivatedEventHandler -= value;
2204 // Callback for AccessibilityManager FocusedActorActivatedSignal
2205 private void OnFocusedActorActivated(IntPtr actor)
2207 FocusedActorActivatedEventArgs e = new FocusedActorActivatedEventArgs();
2209 // Populate all members of "e" (FocusedActorActivatedEventArgs) with real data
2210 e.Actor = Actor.GetActorFromPtr(actor);
2212 if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
2214 //here we send all data to user event handlers
2215 _accessibilityManagerFocusedActorActivatedEventHandler(this, e);
2220 public event DaliEventHandler<object,FocusOvershotEventArgs> FocusOvershot
2226 // Restricted to only one listener
2227 if (_accessibilityManagerFocusOvershotEventHandler == null)
2229 _accessibilityManagerFocusOvershotEventHandler += value;
2231 _accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
2232 this.FocusOvershotSignal().Connect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
2241 if (_accessibilityManagerFocusOvershotEventHandler != null)
2243 this.FocusOvershotSignal().Disconnect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
2246 _accessibilityManagerFocusOvershotEventHandler -= value;
2251 // Callback for AccessibilityManager FocusOvershotSignal
2252 private void OnFocusOvershot(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction)
2254 FocusOvershotEventArgs e = new FocusOvershotEventArgs();
2256 // Populate all members of "e" (FocusOvershotEventArgs) with real data
2257 e.CurrentFocusedActor = Actor.GetActorFromPtr(currentFocusedActor);
2258 e.FocusOvershotDirection = direction;
2260 if (_accessibilityManagerFocusOvershotEventHandler != null)
2262 //here we send all data to user event handlers
2263 _accessibilityManagerFocusOvershotEventHandler(this, e);
2268 public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
2269 ClassName ret = new ClassName(cPtr, false);
2270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2277 %define DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( NameSpace, ClassName)
2278 ACCESSIBILITY_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
2279 ACCESSIBILITY_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
2284 DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( Dali::Toolkit, AccessibilityManager);