Atspi.Selection¶
- Implementations:
Methods¶
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
None
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Atspi.Selection¶
- Bases:
 - An interface which indicates that an object exposes a ‘selection’ model, allowing the selection of one or more of its children. - An interface which indicates that an object exposes a ‘selection’ model, allowing the selection of one or more of its children. Read-only Selection instances are possible, in which case the interface is used to programmatically determine the selected-ness of its children. - clear_selection()¶
- Raises:
- Returns:
- Return type:
 - Clears the current selection, removing all selected children from the specified - Atspi.Selectionimplementor’s selection list.
 - deselect_child(child_index)¶
- Parameters:
- child_index ( - int) – a- intindicating which of the children of the- Atspi.Accessibleis to be de-selected.
- Raises:
- Returns:
- Trueif the child was successfully deselected,- Falseotherwise.
- Return type:
 - Deselects a specific child of an - Atspi.Selection. Note that child_index is the index of the child in the parent container.
 - deselect_selected_child(selected_child_index)¶
- Parameters:
- selected_child_index ( - int) – a- intindicating which of the selected children of the #Accessible is to be selected.
- Raises:
- Returns:
- Trueif the child was successfully deselected,- Falseotherwise.
- Return type:
 - Removes a child from the selected children list of an - Atspi.Selection. Note that child_index is the index in the selected-children list, not the index in the parent container. selectedChildIndex in this method, and child_index in- Atspi.Selection.select_childare asymmetric.
 - get_n_selected_children()¶
- Raises:
- Returns:
- a - intindicating the number of #Accessible children of the- Atspi.Selectionimplementor which are currently selected.
- Return type:
 - Gets the number of children of an - Atspi.Selectionimplementor which are currently selected.
 - get_selected_child(selected_child_index)¶
- Parameters:
- selected_child_index ( - int) – a- intindicating which of the selected children is specified.
- Raises:
- Returns:
- a pointer to a selected - Atspi.Accessiblechild object, specified by selected_child_index.
- Return type:
 - Gets the i-th selected - Atspi.Accessiblechild of an- Atspi.Selection. Note that selected_child_index refers to the index in the list of ‘selected’ children and generally differs from that used in- Atspi.Accessible.get_child_at_indexor returned by- Atspi.Accessible.get_index_in_parent. selected_child_index must lie between 0 and- Atspi.Selection.get_n_selected_children- 1, inclusive.
 - is_child_selected(child_index)¶
- Parameters:
- child_index ( - int) – an index into the- Atspi.Selection's list of children.
- Raises:
- Returns:
- Trueif the specified child is currently selected,- Falseotherwise.
- Return type:
 - Determines whether a particular child of an - Atspi.Selectionimplementor is currently selected. Note that child_index is the index into the standard- Atspi.Accessiblecontainer’s list of children.
 - select_all()¶
- Raises:
- Returns:
- Return type:
 - Attempts to select all of the children of an - Atspi.Selectionimplementor. Not all- Atspi.Selectionimplementors support this operation.
 - select_child(child_index)¶
- Parameters:
- child_index ( - int) – a- intindicating which child of the #Accessible is to be selected.
- Raises:
- Returns:
- Trueif the child was successfully selected,- Falseotherwise.
- Return type:
 - Adds a child to the selected children list of an - Atspi.Selection. For- Atspi.Selectionimplementors that only allow single selections, this may replace the (single) current selection.