Gtk.SelectionModelInterface¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
g_iface |
r |
||
get_selection_in_range |
r |
Return a bitset with all currently selected items in the given range. By default, this function will call |
|
is_selected |
r |
Return if the item at the given position is selected. |
|
select_all |
r |
Select all items in the model. If the operation is unsupported or known to fail for all items, return |
|
select_item |
r |
Select the item in the given position. If the operation is known to fail, return |
|
select_range |
r |
Select all items in the given range. If the operation is unsupported or known to fail for all items, return |
|
set_selection |
r |
Set selection state of all items in mask to selected. See |
|
unselect_all |
r |
Unselect all items in the model. If the operation is unsupported or known to fail for all items, return |
|
unselect_item |
r |
Unselect the item in the given position. If the operation is known to fail, return |
|
unselect_range |
r |
Unselect all items in the given range. If the operation is unsupported or known to fail for all items, return |
Methods¶
None
Details¶
- class Gtk.SelectionModelInterface¶
The list of virtual functions for the
GtkSelectionModel
interface. No function must be implemented, but unlessGtkSelectionModel::is_selected()
is implemented, it will not be possible to select items in the set.The model does not need to implement any functions to support either selecting or unselecting items. Of course, if the model does not do that, it means that users cannot select or unselect items in a list widget using the model.
All selection functions fall back to
GtkSelectionModel::set_selection()
so it is sufficient to implement just that function for full selection support.