Atk.Selection¶
- Implementations:
Methods¶
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
|---|---|
The “selection-changed” signal is emitted by an object which implements |
Fields¶
None
Class Details¶
- class Atk.Selection¶
- Bases:
- Structure:
The ATK interface implemented by container objects whose
Atk.Objectchildren can be selected.Atk.Selectionshould be implemented by UI components with children which are exposed by #atk_object_ref_child and #atk_object_get_n_children, if the use of the parent UI component ordinarily involves selection of one or more of the objects corresponding to thoseAtk.Objectchildren - for example, selectable lists.Note that other types of “selection” (for instance text selection) are accomplished a other ATK interfaces -
Atk.Selectionis limited to the selection/deselection of children.- add_selection(i)[source]¶
- Parameters:
- Returns:
- Return type:
Adds the specified accessible child of the object to the object’s selection.
- clear_selection()[source]¶
-
Clears the selection in the object so that no children in the object are selected.
- get_selection_count()[source]¶
- Returns:
a
intrepresenting the number of items selected, or 0 if self does not implement this interface.- Return type:
Gets the number of accessible children currently selected. Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- is_child_selected(i)[source]¶
- Parameters:
- Returns:
a
boolrepresenting the specified child is selected, or 0 if self does not implement this interface.- Return type:
Determines if the current child of this object is selected Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- ref_selection(i)[source]¶
- Parameters:
i (
int) – aintspecifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
an
Atk.Objectrepresenting the selected accessible, orNoneif self does not implement this interface.- Return type:
Atk.ObjectorNone
Gets a reference to the accessible object representing the specified selected child of the object. Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- remove_selection(i)[source]¶
- Parameters:
i (
int) – aintspecifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
- Return type:
Removes the specified child of the object from the object’s selection.
- select_all_selection()[source]¶
-
Causes every child of the object to be selected if the object supports multiple selections.
- do_add_selection(i) virtual¶
- Parameters:
- Returns:
- Return type:
Adds the specified accessible child of the object to the object’s selection.
- do_clear_selection() virtual¶
-
Clears the selection in the object so that no children in the object are selected.
- do_get_selection_count() virtual¶
- Returns:
a
intrepresenting the number of items selected, or 0 if selection does not implement this interface.- Return type:
Gets the number of accessible children currently selected. Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- do_is_child_selected(i) virtual¶
- Parameters:
- Returns:
a
boolrepresenting the specified child is selected, or 0 if selection does not implement this interface.- Return type:
Determines if the current child of this object is selected Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- do_ref_selection(i) virtual¶
- Parameters:
i (
int) – aintspecifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
an
Atk.Objectrepresenting the selected accessible, orNoneif selection does not implement this interface.- Return type:
Atk.ObjectorNone
Gets a reference to the accessible object representing the specified selected child of the object. Note: callers should not rely on
Noneor on a zero value for indication of whetherAtk.SelectionIfaceis implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- do_remove_selection(i) virtual¶
- Parameters:
i (
int) – aintspecifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
- Return type:
Removes the specified child of the object from the object’s selection.
- do_select_all_selection() virtual¶
-
Causes every child of the object to be selected if the object supports multiple selections.
- do_selection_changed() virtual¶
Signal Details¶
- Atk.Selection.signals.selection_changed(selection)¶
- Signal Name:
selection-changed- Flags:
- Parameters:
selection (
Atk.Selection) – The object which received the signal
The “selection-changed” signal is emitted by an object which implements
Atk.Selectioninterface when the selection changes.