Skip to content

Gtk.SelectionModelInterface

record (struct)

The list of virtual functions for the GtkSelectionModel interface. No function must be implemented, but unless GtkSelectionModel::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.

Properties

g_iface

g_iface: GObject.TypeInterface  # read/write

is_selected

is_selected: Any  # read/write

get_selection_in_range

get_selection_in_range: Any  # read/write

select_item

select_item: Any  # read/write

unselect_item

unselect_item: Any  # read/write

select_range

select_range: Any  # read/write

unselect_range

unselect_range: Any  # read/write

select_all

select_all: Any  # read/write

unselect_all

unselect_all: Any  # read/write

set_selection

set_selection: Any  # read/write