SelectionModel.getSelectionInRange

gtk.bitset.Bitset getSelectionInRange(uint position, uint nItems)

Gets the set of selected items in a range.

This function is an optimization for gtk.selection_model.SelectionModel.getSelection when you are only interested in part of the model's selected state. A common use case is in response to the gtk.selection_model.SelectionModel.selectionChanged signal.

Parameters

positionstart of the queried range
nItemsnumber of items in the queried range

Returns

A gtk.bitset.Bitset that matches the selection state

for the given range with all other values being undefined. The bitset must not be modified.