atk.selection_mixin
Module for [Selection] interface mixin
Templates 2
The ATK interface implemented by container objects whose #AtkObject children can be selected.
#AtkSelection 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 those #AtkObject children - for example, selectable lists.
Note that other types of "selection" (for instance text selection) are accomplished a other ATK interfaces - #AtkSelection is limited to the selection/deselection of children.
Adds the specified accessible child of the object to the object's selection.
Parameters
i | a #gint specifying the child index. |
Returns
Clears the selection in the object so that no children in the object are selected.
Returns
Gets the number of accessible children currently selected.
Note
indication of whether AtkSelectionIface is implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
Returns
if selection does not implement this interface.
Determines if the current child of this object is selected
Note
indication of whether AtkSelectionIface is implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
Parameters
i | a #gint specifying the child index. |
Returns
if selection does not implement this interface.
Gets a reference to the accessible object representing the specified selected child of the object.
Note
indication of whether AtkSelectionIface is implemented, they should use type checking/interface checking macros or the atk_get_accessible_value() convenience method.
Parameters
i | a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). |
Returns
selected accessible, or null if selection does not implement this interface.
Removes the specified child of the object from the object's selection.
Parameters
i | a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). |
Returns
Causes every child of the object to be selected if the object supports multiple selections.
Returns
Connect to SelectionChanged signal.
The "selection-changed" signal is emitted by an object which implements AtkSelection interface when the selection changes.
Parameters
callback | signal callback delegate or function to connect void callback(atk.selection.Selection selection) selection the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |