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.Selection
implementor’s selection list.
- deselect_child(child_index)¶
- Parameters:
child_index (
int
) – aint
indicating which of the children of theAtspi.Accessible
is to be de-selected.- Raises:
- Returns:
True
if the child was successfully deselected,False
otherwise.- 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
) – aint
indicating which of the selected children of the #Accessible is to be selected.- Raises:
- Returns:
True
if the child was successfully deselected,False
otherwise.- 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 inAtspi.Selection.select_child
are asymmetric.
- get_n_selected_children()¶
- Raises:
- Returns:
a
int
indicating the number of #Accessible children of theAtspi.Selection
implementor which are currently selected.- Return type:
Gets the number of children of an
Atspi.Selection
implementor which are currently selected.
- get_selected_child(selected_child_index)¶
- Parameters:
selected_child_index (
int
) – aint
indicating which of the selected children is specified.- Raises:
- Returns:
a pointer to a selected
Atspi.Accessible
child object, specified by selected_child_index.- Return type:
Gets the i-th selected
Atspi.Accessible
child of anAtspi.Selection
. Note that selected_child_index refers to the index in the list of ‘selected’ children and generally differs from that used inAtspi.Accessible.get_child_at_index
or returned byAtspi.Accessible.get_index_in_parent
. selected_child_index must lie between 0 andAtspi.Selection.get_n_selected_children
- 1, inclusive.
- is_child_selected(child_index)¶
- Parameters:
child_index (
int
) – an index into theAtspi.Selection
's list of children.- Raises:
- Returns:
True
if the specified child is currently selected,False
otherwise.- Return type:
Determines whether a particular child of an
Atspi.Selection
implementor is currently selected. Note that child_index is the index into the standardAtspi.Accessible
container’s list of children.
- select_all()¶
- Raises:
- Returns:
- Return type:
Attempts to select all of the children of an
Atspi.Selection
implementor. Not allAtspi.Selection
implementors support this operation.
- select_child(child_index)¶
- Parameters:
child_index (
int
) – aint
indicating which child of the #Accessible is to be selected.- Raises:
- Returns:
True
if the child was successfully selected,False
otherwise.- Return type:
Adds a child to the selected children list of an
Atspi.Selection
. ForAtspi.Selection
implementors that only allow single selections, this may replace the (single) current selection.