SingleSelection
GtkSingleSelection
is a GtkSelectionModel
that allows selecting a single item.
Note that the selection is persistent -- if the selected item is removed and re-added in the same signal@Gio.ListModel::items-changed emission, it stays selected. In particular, this means that changing the sort order of an underlying sort model will preserve the selection.
Skipped during bindings generation
method
item-type
: Property has no getter nor settermethod
n-items
: Property has no getter nor setter
Constructors
Properties
If the selection will always select an item.
If unselecting the selected item is allowed.
The selected item.
Functions
Gets the set containing all currently selected items in the model.
Gets the set of selected items in a range.
Checks if the given item is selected.
Emitted when the start-of-section state of some of the items in @model changes.
Emitted when the selection state of some of the items in @model changes.
This function emits the signal@Gtk.SectionModel::sections-changed signal to notify about changes to sections.
Helper function for implementations of GtkSelectionModel
.
Requests to select an item in the model.
Requests to select a range of items in the model.
Make selection changes.
Requests to unselect all items in the model.
Requests to unselect an item in the model.
Requests to unselect a range of items in the model.