Esempio n. 1
0
 public void EmitAccessibilityStatesChangedEvent(AccessibilityStates state, bool equal)
 {
     Interop.ControlDevel.DaliAccessibilityEmitAccessibilityStatesChangedEvent(SwigCPtr, (ulong)state, Convert.ToInt32(equal));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public void NotifyAccessibilityStatesChange(AccessibilityStates states, bool recursive)
 {
     Interop.ControlDevel.DaliToolkitDevelControlNotifyAccessibilityStatesChange(SwigCPtr, (ulong)states, Convert.ToInt32(recursive));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public void NotifyAccessibilityStatesChange(AccessibilityStates states, AccessibilityStatesNotifyMode notifyMode)
 {
     Interop.ControlDevel.DaliToolkitDevelControlNotifyAccessibilityStatesChange(SwigCPtr, (ulong)states, (int)notifyMode);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
        public AccessibilityStates GetAccessibilityStates()
        {
            AccessibilityStates result = (AccessibilityStates)Interop.ControlDevel.DaliToolkitDevelControlGetAccessibilityStates(SwigCPtr);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Esempio n. 5
0
        protected virtual AccessibilityStates AccessibilityCalculateStates(ulong states)
        {
            AccessibilityStates accessibilityStates = (AccessibilityStates)states;

            FlagSetter(ref accessibilityStates, AccessibilityStates.Focused, this.State == States.Focused);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Enabled, this.State != States.Disabled);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Sensitive, this.Sensitive);

            return(accessibilityStates);
        }
Esempio n. 6
0
        public void NotifyAccessibilityStatesChange(AccessibilityStates states, AccessibilityStatesNotifyMode notifyMode)
        {
            if (states is null)
            {
                throw new ArgumentNullException(nameof(states));
            }

            Interop.ControlDevel.DaliToolkitDevelControlNotifyAccessibilityStateChange(SwigCPtr, states.BitMask, (int)notifyMode);
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
        }
Esempio n. 7
0
        protected virtual AccessibilityStates AccessibilityCalculateStates(ulong states)
        {
            AccessibilityStates accessibilityStates = (AccessibilityStates)states;

            FlagSetter(ref accessibilityStates, AccessibilityStates.Highlightable, this.AccessibilityHighlightable);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Focusable, this.Focusable);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Focused, this.State == States.Focused);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Highlighted, this.IsHighlighted);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Enabled, this.State != States.Disabled);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Sensitive, this.Sensitive);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Visible, true);
            FlagSetter(ref accessibilityStates, AccessibilityStates.Defunct, !this.IsOnWindow);

            return(accessibilityStates);
        }
Esempio n. 8
0
 private IntPtr DuplicateStates(AccessibilityStates states)
 {
     return(Interop.ControlDevel.DaliToolkitDevelControlConvertState((ulong)states));
 }
Esempio n. 9
0
 private IntPtr statesdup(AccessibilityStates states)
 {
     return(Interop.ControlDevel.DaliToolkitDevelControlStatesCopy(states));
 }