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
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.
Checks if autoselect has been enabled or disabled via gtk_single_selection_set_autoselect().
If true, gtk_selection_model_unselect_item() is supported and allows unselecting the selected item.
Gets the position of the selected item.
Gets the selected item.
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.
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.
Enables or disables autoselect.
If true, unselecting the current item via gtk_selection_model_unselect_item() is supported.
Selects the item at the given position.
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.