Selection
Object Hierarchy:
Description:
[
CCode ( type_id =
"atk_selection_get_type ()" ) ]
public interface Selection :
Object
The ATK interface implemented by container objects whose Object children can be selected.
Selection should be implemented by UI components with children which are exposed by
atk_object_ref_child and get_n_children, if the use of the
parent UI component ordinarily involves selection of one or more of the objects corresponding to those
Object children - for example, selectable lists.
Note that other types of "selection" (for instance text selection) are accomplished a other ATK interfaces -
Selection is limited to the selection/deselection of children.
All known implementing classes:
Content:
Methods:
- public abstract bool add_selection (int i)
Adds the specified accessible child of the object to the object's
selection.
- public abstract bool clear_selection ()
Clears the selection in the object so that no children in the object
are selected.
- public abstract int get_selection_count ()
Gets the number of accessible children currently selected.
- public abstract bool is_child_selected (int i)
Determines if the current child of this object is selected Note:
callers should not rely on null or on a zero value for indication of whether AtkSelectionIface is
implemented, they should use type checking/interface checking macros or the atk_get_accessible_value convenience method.
- public abstract Object? ref_selection (int i)
Gets a reference to the accessible object representing the specified
selected child of the object.
- public abstract bool remove_selection (int i)
Removes the specified child of the object from the object's selection.
- public abstract bool select_all_selection ()
Causes every child of the object to be selected if the object supports
multiple selections.
Signals:
Inherited Members:
All known members inherited from class GLib.Object