Virtualvfunc_Gets the set of selected items in a range.
This function is an optimization for
Gtk.SelectionModel.get_selection when you are only
interested in part of the model's selected state. A common use
case is in response to the Gtk.SelectionModel::selection-changed
signal.
start of the queried range
number of items in the queried range
Virtualvfunc_Checks if the given item is selected.
the position of the item to query
Virtualvfunc_Requests to select all items in the model.
Virtualvfunc_Requests to select an item in the model.
the position of the item to select
whether previously selected items should be unselected
Virtualvfunc_Requests to select a range of items in the model.
the first item to select
the number of items to select
whether previously selected items should be unselected
Virtualvfunc_Make selection changes.
This is the most advanced selection updating method that allows the most fine-grained control over selection changes. If you can, you should try the simpler versions, as implementations are more likely to implement support for those.
Requests that the selection state of all positions set in mask
be updated to the respective value in the selected bitmask.
In pseudocode, it would look something like this:
for (i = 0; i < n_items; i++)
{
// don't change values not in the mask
if (!gtk_bitset_contains (mask, i))
continue;
if (gtk_bitset_contains (selected, i))
select_item (i);
else
unselect_item (i);
}
gtk_selection_model_selection_changed (model,
first_changed_item,
n_changed_items);
mask and selected must not be modified. They may refer to the
same bitset, which would mean that every item in the set should
be selected.
Virtualvfunc_Requests to unselect all items in the model.
Virtualvfunc_Requests to unselect an item in the model.
the position of the item to unselect
Virtualvfunc_Requests to unselect a range of items in the model.
the first item to unselect
the number of items to unselect
Virtualvfunc_Get the item at position. If position is greater than the number of
items in list, null is returned.
null is never returned for an index that is smaller than the length
of the list. See g_list_model_get_n_items().
The same GObject.Object instance may not appear more than once in a Gio.ListModel.
the position of the item to fetch
Virtualvfunc_Gets the type of the items in list.
All items returned from g_list_model_get_item() are of the type
returned by this function, or a subtype, or if the type is an
interface, they are an implementation of that interface.
The item type of a Gio.ListModel can not change during the life of the model.
Virtualvfunc_Gets the number of items in list.
Depending on the model implementation, calling this function may be
less efficient than iterating the list with increasing values for
position until g_list_model_get_item() returns null.
Interface for implementing SelectionModel. Contains only the virtual methods that need to be implemented.