get_selection_in_range
Description:
Gets a set containing a set where the values in the range `[position, position + n_items)` match the selected state of the items in that range.
All values outside that range are undefined.
This function is an optimization for get_selection when you are only interested in part of the model's selected state. A common use case is in response to the selection_changed signal.
Parameters:
this | |
position |
start of the queired range |
n_items |
number of items in the queried range |
Returns:
A Bitset that matches the selection state for the given state with all other values being undefined. The bitset must not be modified. |