Ejemplo 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();
     }
 }
Ejemplo 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();
     }
 }
Ejemplo 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();
     }
 }
Ejemplo n.º 4
0
        public AccessibilityStates GetAccessibilityStates()
        {
            AccessibilityStates result = (AccessibilityStates)Interop.ControlDevel.DaliToolkitDevelControlGetAccessibilityStates(SwigCPtr);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Ejemplo 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);
        }
Ejemplo 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();
            }
        }
Ejemplo 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);
        }
Ejemplo n.º 8
0
 private IntPtr DuplicateStates(AccessibilityStates states)
 {
     return(Interop.ControlDevel.DaliToolkitDevelControlConvertState((ulong)states));
 }
Ejemplo n.º 9
0
 private IntPtr statesdup(AccessibilityStates states)
 {
     return(Interop.ControlDevel.DaliToolkitDevelControlStatesCopy(states));
 }