SingleSelection
Object Hierarchy:
Gtk.SingleSelection
Gtk.SingleSelection
Gtk.SingleSelection
GLib.Object
GLib.Object
GLib.Object->Gtk.SingleSelection
GLib.ListModel
GLib.ListModel
GLib.ListModel->Gtk.SingleSelection
Gtk.SelectionModel
Gtk.SelectionModel
Gtk.SelectionModel->Gtk.SingleSelection
Description:
[
CCode ( type_id =
"gtk_single_selection_get_type ()" ) ]
public class SingleSelection :
Object ,
ListModel ,
SelectionModel
`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 [[email protected] :
GtkSingleSelection:items-changed
] emission, it stays selected. In particular, this means that changing the sort order of an
underlying sort model will preserve the selection.
Content:
Properties:
public bool autoselect { get ; set ; }
If the selection will always select an item.
public bool can_unselect { get ; set ; }
If unselecting the selected item is allowed.
public Type item_type { get ; }
The type of items.
public ListModel model { get ; set ; }
The model being managed.
public uint n_items { get ; }
The number of items.
public uint selected { get ; set ; }
Position of the selected item.
public Object selected_item { get ; }
The selected item.
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.ListModel
All known members inherited from interface Gtk.SelectionModel