get_selection_in_range


Description:

public abstract Bitset get_selection_in_range (uint position, uint n_items)

Gets the set of selected items in a range.

This function is an optimization for [[email protected]_selection] when you are only interested in part of the model's selected state. A common use case is in response to the [[email protected]:GtkSelectionModel:selection-changed] signal.

Parameters:

this

a `GtkSelectionModel`

position

start of the queired range

n_items

number of items in the queried range

Returns:

A `GtkBitset` that matches the selection state for the given range with all other values being undefined. The bitset must not be modified.




2022 vala-language.org