SelectionModel.getSelection

Gets the set containing all currently selected items in the model.

This function may be slow, so if you are only interested in single item, consider using gtk.selection_model.SelectionModel.isSelected or if you are only interested in a few, consider gtk.selection_model.SelectionModel.getSelectionInRange.

interface SelectionModel
getSelection
()

Return Value

Type: gtk.bitset.Bitset

a gtk.bitset.Bitset containing all the values currently selected in model. If no items are selected, the bitset is empty. The bitset must not be modified.