Selection

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

Constructors

this
this(AtkSelection* atkSelection)

Sets our main struct and passes it to the parent class

Members

Functions

addOnSelectionChanged
void addOnSelectionChanged(void delegate(Selection) dlg, ConnectFlags connectFlags)

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

addSelection
int addSelection(int i)

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

clearSelection
int 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()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

isChildSelected
int 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
int removeSelection(int i)

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

selectAllSelection
int selectAllSelection()

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

Static functions

callBackSelectionChanged
void callBackSelectionChanged(AtkSelection* atkselectionStruct, Selection _selection)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

atkSelection
AtkSelection* atkSelection;

the main Gtk struct

connectedSignals
int[string] connectedSignals;
onSelectionChangedListeners
void delegate(Selection)[] onSelectionChangedListeners;
Undocumented in source.

Meta