SelectionIF

#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.

Members

Functions

addOnSelectionChanged
gulong addOnSelectionChanged(void delegate(SelectionIF) dlg, ConnectFlags connectFlags)

The "selection-changed" signal is emitted by an object which implements AtkSelection interface when the selection changes.

addSelection
bool addSelection(int i)

Adds the specified accessible child of the object to the object's selection.

clearSelection
bool clearSelection()

Clears the selection in the object so that no children in the object are selected.

getSelectionCount
int getSelectionCount()

Gets the number of accessible children currently 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.

getSelectionStruct
AtkSelection* getSelectionStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

isChildSelected
bool isChildSelected(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.

refSelection
ObjectAtk refSelection(int i)

Gets a reference to the accessible object representing the specified selected child of the object. 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.

removeSelection
bool removeSelection(int i)

Removes the specified child of the object from the object's selection.

selectAllSelection
bool selectAllSelection()

Causes every child of the object to be selected if the object supports multiple selections.

Meta