Name = idx.ToString(),
};
+ temp.SetAccessibilityEventSuppressed(AccessibilityEvent.MovedOut, true);
itemList.Add(temp);
pickerScroller.Add(temp);
}
public static extern global::System.IntPtr DaliAccessibilityEmitTextCursorMovedEvent(global::System.Runtime.InteropServices.HandleRef arg1, int arg2_pos);
[EditorBrowsable(EditorBrowsableState.Never)]
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_IsSuppressedEvent")]
+ public static extern bool DaliAccessibilityIsSuppressedEvent(global::System.Runtime.InteropServices.HandleRef arg1, int accessibilityEvent);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_SetSuppressedEvent")]
+ public static extern void DaliAccessibilitySetSuppressedEvent(global::System.Runtime.InteropServices.HandleRef arg1, int accessibilityEvent, bool isSuppressed);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Accessibility_new_Range")]
public static extern global::System.IntPtr DaliAccessibilityNewRange(int arg1_start, int arg2_end, string arg3_content);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets a value indicating given accessibility event is suppressed.
+ /// </summary>
+ /// <param name="accessibilityEvent">The accessibility event</param>
+ /// <returns>True if given accessibility event is suppressed, otherwise false</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsAccessibilityEventSuppressed(AccessibilityEvent accessibilityEvent)
+ {
+ bool result = Interop.ControlDevel.DaliAccessibilityIsSuppressedEvent(SwigCPtr, (int)accessibilityEvent);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return result;
+ }
+
+ /// <summary>
+ /// Sets a suppressed value of given accessibility event.
+ /// </summary>
+ /// <param name="accessibilityEvent">The accessibility event</param>
+ /// <param name="isSuppressed">The value indicating given accessibility event is suppressed</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetAccessibilityEventSuppressed(AccessibilityEvent accessibilityEvent, bool isSuppressed)
+ {
+ Interop.ControlDevel.DaliAccessibilitySetSuppressedEvent(SwigCPtr, (int)accessibilityEvent, isSuppressed);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
///////////////////////////////////////////////////////////////////
// ************************** Bridge *************************** //
///////////////////////////////////////////////////////////////////
}
/// <summary>
+ /// Enumeration of possible AT-SPI events.
+ /// </summary>
+ /// <remarks>
+ /// Accessible can emit differty type of event.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum AccessibilityEvent
+ {
+ /// <summary>
+ /// Property changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ PropertyChanged = 0,
+ /// <summary>
+ /// Bounds changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ BoundsChanged = 1,
+ /// <summary>
+ /// Link selected event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ LinkSelected = 2,
+ /// <summary>
+ /// State changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ StateChanged = 3,
+ /// <summary>
+ /// Children changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ChildrenChanged = 4,
+ /// <summary>
+ /// Visible data changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ VisibleDataChanged = 5,
+ /// <summary>
+ /// Selection changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ SelectionChanged = 6,
+ /// <summary>
+ /// Model changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ModelChanged = 7,
+ /// <summary>
+ /// Active descendant changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ActiveDescendantChanged = 8,
+ /// <summary>
+ /// Row inserted event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ RowInserted = 9,
+ /// <summary>
+ /// Row reordered event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ RowReordered = 10,
+ /// <summary>
+ /// Row deleted event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ RowDeleted = 11,
+ /// <summary>
+ /// Column inserted event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ColumnInserted = 12,
+ /// <summary>
+ /// Column reordered event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ColumnReordered = 13,
+ /// <summary>
+ /// Column deleted event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ ColumnDeleted = 14,
+ /// <summary>
+ /// Text bounds changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ TextBoundsChanged = 15,
+ /// <summary>
+ /// Text selection changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ TextSelectionChanged = 16,
+ /// <summary>
+ /// Text changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ TextChanged = 17,
+ /// <summary>
+ /// Text attributes changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ TextAttributesChanged = 18,
+ /// <summary>
+ /// Text caret moved event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ TextCaretMoved = 19,
+ /// <summary>
+ /// Attributes changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ AttributesChanged = 20,
+ /// <summary>
+ /// Moved out event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ MovedOut = 21,
+ /// <summary>
+ /// Window changed event.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ WindowChanged = 22,
+ };
+
+ /// <summary>
/// Notify mode for AccessibilityStates.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
--- /dev/null
+
+using System;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Samples
+{
+ public class AtspiSample : IExample
+ {
+ public void Activate()
+ {
+ Window window = NUIApplication.GetDefaultWindow();
+ window.BackgroundColor = Color.White;
+
+ TextLabel text = new TextLabel("PASS");
+ text.HorizontalAlignment = HorizontalAlignment.Center;
+ text.VerticalAlignment = VerticalAlignment.Center;
+ text.TextColor = Color.Blue;
+ text.PointSize = 12.0f;
+ text.HeightResizePolicy = ResizePolicyType.FillToParent;
+ text.WidthResizePolicy = ResizePolicyType.FillToParent;
+ window.Add(text);
+
+ if (text.IsAccessibilityEventSuppressed(AccessibilityEvent.MovedOut))
+ {
+ text.Text = "FAIL";
+ Tizen.Log.Error("NUITEST", "Default value shoud be false\n");
+ return;
+ }
+
+ text.SetAccessibilityEventSuppressed(AccessibilityEvent.MovedOut, true);
+ if (!text.IsAccessibilityEventSuppressed(AccessibilityEvent.MovedOut))
+ {
+ text.Text = "FAIL";
+ Tizen.Log.Error("NUITEST", "Cannot set to true\n");
+ return;
+ }
+
+ text.SetAccessibilityEventSuppressed(AccessibilityEvent.MovedOut, false);
+ if (text.IsAccessibilityEventSuppressed(AccessibilityEvent.MovedOut))
+ {
+ text.Text = "FAIL";
+ Tizen.Log.Error("NUITEST", "Cannot set to false\n");
+ return;
+ }
+ }
+
+ public void Deactivate()
+ {
+ }
+ }
+}