SingleSelection


Object Hierarchy:

Object hierarchy for SingleSelection

Description:

[ CCode ( type_id = "gtk_single_selection_get_type ()" ) ]
public class SingleSelection : Object, ListModel, SelectionModel

GtkSingleSelection is an implementation of the SelectionModel interface that allows selecting a single element.

It is the default selection method used by list widgets in GTK.

Note that the selection is *persistent* -- if the selected item is removed and re-added in the same items_changed emission, it stays selected. In particular, this means that changing the sort order of an underlying sort model will preserve the selection.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from interface GLib.ListModel