From: Seoyeon Kim Date: Wed, 30 Aug 2023 06:50:04 +0000 (+0900) Subject: [NUI] Add descriptions of Accessibility Interfaces X-Git-Tag: accepted/tizen/unified/20231205.024657~163 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90a7b6ccba86860805c4e58995196c8cfa839258;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add descriptions of Accessibility Interfaces - The descriptions of Accessibility Interfaces were missed because of the urgent tasks. - Now, need to add them for the next steps. Signed-off-by: Seoyeon Kim --- diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiEditableText.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiEditableText.cs index 4b6f538..c5b0c4e 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiEditableText.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiEditableText.cs @@ -1,5 +1,5 @@ /* - * Copyright(c) 2022 Samsung Electronics Co., Ltd. + * Copyright(c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,21 +20,53 @@ using System.ComponentModel; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing objects which can store editable texts. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiEditableText : IAtspiText { + /// + /// Copies text in range to system clipboard. + /// + /// The index of first character + /// The index of first character after the last one expected + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityCopyText(int startPosition, int endPosition); + /// + /// Cuts text in range to system clipboard. + /// + /// The index of first character + /// The index of first character after the last one expected + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityCutText(int startPosition, int endPosition); + /// + /// Inserts text at startPosition. + /// + /// The index of first character + /// The text content + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityInsertText(int startPosition, string text); + /// + /// Replaces text with content. + /// + /// The text content + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySetTextContents(string newContents); + /// + /// Deletes text in range. + /// + /// The index of first character + /// The index of first character after the last one expected + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityDeleteText(int startPosition, int endPosition); } diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiSelection.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiSelection.cs index 2e57407..38f1a66 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiSelection.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiSelection.cs @@ -1,5 +1,5 @@ /* - * Copyright(c) 2022 Samsung Electronics Co., Ltd. + * Copyright(c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,30 +21,73 @@ using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing objects which can store a set of selected items. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiSelection { + /// + /// Gets the number of selected children. + /// + /// The number of selected children (zero if none) [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetSelectedChildrenCount(); + /// + /// Gets a specific selected child. + /// + /// + /// selectedChildIndex refers to the list of selected children, not the list of all children. + /// + /// The index of the selected child + /// The selected child or nullptr if index is invalid [EditorBrowsable(EditorBrowsableState.Never)] View AccessibilityGetSelectedChild(int selectedChildIndex); + /// + /// Selects a child. + /// + /// The index of the child + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySelectChild(int childIndex); + /// + /// Deselects a selected child. + /// + /// The index of the selected child + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityDeselectSelectedChild(int selectedChildIndex); + /// + /// Checks whether a child is selected. + /// + /// The index of the child + /// < True if given child is selected, false otherwise /returns> [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityIsChildSelected(int childIndex); + /// + /// Selects all children. + /// + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySelectAll(); + /// + /// Deselects all children. + /// + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityClearSelection(); + /// + /// Deselects a child. + /// + /// The index of the child. + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityDeselectChild(int childIndex); } diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiTable.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiTable.cs index 5aa7b7b..6d2303c 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiTable.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiTable.cs @@ -22,72 +22,189 @@ using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing a table. + /// + /// + /// The selection methods extend the Selection interface, so both should be implemented by table and grid controls. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiTable { + /// + /// Gets the number of rows. + /// + /// The number of rows [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetRowCount(); + /// + /// Gets the number of columns. + /// + /// The number of columns [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetColumnCount(); + /// + /// Gets the number of selected rows. + /// + /// The number of selected rows [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetSelectedRowCount(); + /// + /// Gets the number of selected columns. + /// + /// The number of selected columns [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetSelectedColumnCount(); + /// + /// Gets the table's caption. + /// + /// The caption or null [EditorBrowsable(EditorBrowsableState.Never)] View AccessibilityGetCaption(); + /// + /// Gets the table's summary. + /// + /// The summary or null [EditorBrowsable(EditorBrowsableState.Never)] View AccessibilityGetSummary(); + /// + /// Gets the cell at the specified position. + /// + /// Row number + /// Column number + /// The cell or null [EditorBrowsable(EditorBrowsableState.Never)] IAtspiTableCell AccessibilityGetCell(int row, int column); + /// + /// Gets the one-dimensional index of a cell. + /// + /// + /// The returned index should be such that: + /// + /// GetChildAtIndex(GetChildIndex(row, column)) == GetCell(row, column) + /// + /// + /// Row number + /// Column number + /// The one-dimensional index [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetChildIndex(int row, int column); + /// + /// Gets the position (row and column) of a cell. + /// + /// One-dimensional index of the cell + /// A pair of integers (row index, column index) [EditorBrowsable(EditorBrowsableState.Never)] Tuple AccessibilityGetPositionByChildIndex(int childIndex); + /// + /// Gets the description of a row. + /// + /// Row number + /// The description of the row [EditorBrowsable(EditorBrowsableState.Never)] string AccessibilityGetRowDescription(int row); + /// + /// Gets the description of a column. + /// + /// Column number + /// The description of the column [EditorBrowsable(EditorBrowsableState.Never)] string AccessibilityGetColumnDescription(int column); + /// + /// Gets the header of a row. + /// + /// Row number + /// The row header or null [EditorBrowsable(EditorBrowsableState.Never)] View AccessibilityGetRowHeader(int row); + /// + /// Gets the header of a column. + /// + /// Column number + /// The column header or null [EditorBrowsable(EditorBrowsableState.Never)] View AccessibilityGetColumnHeader(int column); + /// + /// Gets all selected rows' numbers. + /// + /// Selected rows' numbers [EditorBrowsable(EditorBrowsableState.Never)] IEnumerable AccessibilityGetSelectedRows(); + /// + /// Gets all selected columns' numbers. + /// + /// Selected columns' numbers [EditorBrowsable(EditorBrowsableState.Never)] IEnumerable AccessibilityGetSelectedColumns(); + /// + /// Checks if a row is selected. + /// + /// Row number + /// True if the row is selected, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityIsRowSelected(int row); + /// + /// Checks if a column is selected. + /// + /// Column number + /// True if the column is selected, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityIsColumnSelected(int column); + /// + /// Checks if a cell is selected. + /// + /// Row number of the cell + /// Column number of the cell + /// True if the cell is selected, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityIsCellSelected(int row, int column); + /// + /// Selects a row. + /// + /// Row number + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityAddRowSelection(int row); + /// + /// Selects a column. + /// + /// Column number + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityAddColumnSelection(int column); + /// + /// Unselects a row. + /// + /// Row number + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityRemoveRowSelection(int row); + /// + /// Unselects a column. + /// + /// Column number + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityRemoveColumnSelection(int column); } diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiTableCell.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiTableCell.cs index 3dbc966..d70e11e 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiTableCell.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiTableCell.cs @@ -20,18 +20,37 @@ using System.ComponentModel; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing a table cell. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiTableCell { + /// + /// Returns the table this cell belongs to. + /// + /// The table [EditorBrowsable(EditorBrowsableState.Never)] IAtspiTable AccessibilityGetTable(); + /// + /// Returns the position of this cell in the table. + /// + /// A pair of integers (row index, column index) [EditorBrowsable(EditorBrowsableState.Never)] Tuple AccessibilityGetCellPosition(); + /// + /// Returns the number of rows occupied by this cell. + /// + /// The number of rows [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetCellRowSpan(); + /// + /// Returns the number of columns occupied by this cell. + /// + /// The number of columns [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetCellColumnSpan(); } diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiText.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiText.cs index e610b89..53e5337 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiText.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiText.cs @@ -1,5 +1,5 @@ /* - * Copyright(c) 2022 Samsung Electronics Co., Ltd. + * Copyright(c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,33 +21,94 @@ using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing objects which can store immutable texts. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiText { + /// + /// Gets stored text in given range. + /// + /// The index of first character + /// The index of first character after the last one expected + /// The substring of stored text [EditorBrowsable(EditorBrowsableState.Never)] string AccessibilityGetText(int startOffset, int endOffset); + /// + /// Gets number of all stored characters. + /// + /// The number of characters [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetCharacterCount(); + /// + /// Gets the cursor offset. + /// + /// Value of cursor offset [EditorBrowsable(EditorBrowsableState.Never)] int AccessibilityGetCursorOffset(); + /// + /// Sets the cursor offset. + /// + /// Cursor offset + /// True if successful [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySetCursorOffset(int offset); + /// + /// Gets substring of stored text truncated in concrete gradation. + /// + /// The position in stored text + /// The enumeration describing text gradation + /// Range structure containing acquired text and offsets in original string [EditorBrowsable(EditorBrowsableState.Never)] AccessibilityRange AccessibilityGetTextAtOffset(int offset, AccessibilityTextBoundary boundary); + /// + /// Gets selected text. + /// + /// + /// Currently only one selection (i.e. with index = 0) is supported + /// + /// The selection index + /// Range structure containing acquired text and offsets in original string [EditorBrowsable(EditorBrowsableState.Never)] AccessibilityRange AccessibilityGetSelection(int selectionNumber); + /// + /// Removes the whole selection. + /// + /// + /// Currently only one selection (i.e. with index = 0) is supported + /// + /// The selection index + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilityRemoveSelection(int selectionNumber); + /// + /// Sets selected text. + /// + /// + /// Currently only one selection (i.e. with index = 0) is supported + /// + /// The selection index + /// The index of first character + /// The index of first character after the last one expected + /// True on success, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySetSelection(int selectionNumber, int startOffset, int endOffset); + /// + /// Gets the bounding box for text within a range in text. + /// + /// The index of first character + /// The index of first character after the last one expected + /// The enumeration with type of coordinate system + /// Rectangle giving the position and size of the specified range of text [EditorBrowsable(EditorBrowsableState.Never)] Rectangle AccessibilityGetRangeExtents(int startOffset, int endOffset, AccessibilityCoordinateType coordType); } diff --git a/src/Tizen.NUI/src/public/Accessibility/IAtspiValue.cs b/src/Tizen.NUI/src/public/Accessibility/IAtspiValue.cs index a6fecb7..baa4bf8 100644 --- a/src/Tizen.NUI/src/public/Accessibility/IAtspiValue.cs +++ b/src/Tizen.NUI/src/public/Accessibility/IAtspiValue.cs @@ -1,5 +1,5 @@ /* - * Copyright(c) 2022 Samsung Electronics Co., Ltd. + * Copyright(c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,16 @@ using System.ComponentModel; namespace Tizen.NUI.Accessibility { + /// + /// Interface representing objects which can store numeric value. + /// [EditorBrowsable(EditorBrowsableState.Never)] public interface IAtspiValue { + /// + /// Gets the lowest possible value. + /// + /// The minimum value [EditorBrowsable(EditorBrowsableState.Never)] double AccessibilityGetMinimum(); @@ -52,12 +59,25 @@ namespace Tizen.NUI.Accessibility [EditorBrowsable(EditorBrowsableState.Never)] string AccessibilityGetValueText(); + /// + /// Gets the highest possible value. + /// + /// The highest value [EditorBrowsable(EditorBrowsableState.Never)] double AccessibilityGetMaximum(); + /// + /// Sets the current value. + /// + /// The current value to set + /// True if value could have been assigned, false otherwise [EditorBrowsable(EditorBrowsableState.Never)] bool AccessibilitySetCurrent(double value); + /// + /// Gets the lowest increment that can be distinguished. + /// + /// The lowest increment [EditorBrowsable(EditorBrowsableState.Never)] double AccessibilityGetMinimumIncrement(); }