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.Object
children can be selected.Atk.Selection
should 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.Object
children - for example, selectable lists.Note that other types of “selection” (for instance text selection) are accomplished a other ATK interfaces -
Atk.Selection
is 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
int
representing 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
None
or on a zero value for indication of whetherAtk.SelectionIface
is 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
bool
representing 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
None
or on a zero value for indication of whetherAtk.SelectionIface
is implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- ref_selection(i)[source]¶
- Parameters:
i (
int
) – aint
specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
an
Atk.Object
representing the selected accessible, orNone
if self does not implement this interface.- Return type:
Atk.Object
orNone
Gets a reference to the accessible object representing the specified selected child of the object. Note: callers should not rely on
None
or on a zero value for indication of whetherAtk.SelectionIface
is implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
- remove_selection(i)[source]¶
- Parameters:
i (
int
) – aint
specifying 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
int
representing 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
None
or on a zero value for indication of whetherAtk.SelectionIface
is 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
bool
representing 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
None
or on a zero value for indication of whetherAtk.SelectionIface
is 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
) – aint
specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child).- Returns:
an
Atk.Object
representing the selected accessible, orNone
if selection does not implement this interface.- Return type:
Atk.Object
orNone
Gets a reference to the accessible object representing the specified selected child of the object. Note: callers should not rely on
None
or on a zero value for indication of whetherAtk.SelectionIface
is 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
) – aint
specifying 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.Selection
interface when the selection changes.