Package: gtk

Function gtk:selection-model-selection-in-range

Lambda List

gtk:selection-model-selection-in-range (model position n-items)

Arguments

model -- a gtk:selection-model object
position -- an unsigned integer with the start of the queried range
n-items -- an unsigned integer with the number of items in the queried range

Return Value

The gtk:bitset instance that matches the selection state for the given state with all other values being undefined. The bitset must not be modified.

Details

Gets a bitset 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 the gtk:selection-model-selection function 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.
 

See also

2024-12-2