Class: Gtk::SingleSelection
- Inherits:
-
Object
- Object
- Gtk::SingleSelection
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#autoselect ⇒ Boolean
Checks if autoselect has been enabled or disabled via gtk_single_selection_set_autoselect().
-
#autoselect=(autoselect) ⇒ Boolean
If the selection will always select an item.
-
#autoselect? ⇒ Boolean
If the selection will always select an item.
-
#can_unselect ⇒ Boolean
If true, gtk_selection_model_unselect_item() is supported and allows unselecting the selected item.
-
#can_unselect=(can_unselect) ⇒ Boolean
If unselecting the selected item is allowed.
-
#can_unselect? ⇒ Boolean
If unselecting the selected item is allowed.
-
#initialize(model) ⇒ Gtk::SingleSelection
constructor
Creates a new selection to handle model.
-
#item_type ⇒ GLib::Type
The type of items.
-
#item_type=(item_type) ⇒ GLib::Type
The type of items.
-
#model ⇒ Gio::ListModel
The model being managed.
-
#model=(model) ⇒ Gio::ListModel
The model being managed.
-
#n_items ⇒ Integer
The number of items.
-
#n_items=(n_items) ⇒ Integer
The number of items.
-
#selected ⇒ Integer
Position of the selected item.
-
#selected=(selected) ⇒ Integer
Position of the selected item.
-
#selected_item ⇒ GObject::Object
The selected item.
-
#selected_item=(selected_item) ⇒ GObject::Object
The selected item.
Constructor Details
#initialize(model) ⇒ Gtk::SingleSelection
Creates a new selection to handle model.
Instance Method Details
#autoselect ⇒ Boolean
Checks if autoselect has been enabled or disabled via gtk_single_selection_set_autoselect().
#autoselect=(autoselect) ⇒ Boolean
If the selection will always select an item.
#autoselect? ⇒ Boolean
If the selection will always select an item.
#can_unselect ⇒ Boolean
If true, gtk_selection_model_unselect_item() is supported and allows unselecting the selected item.
#can_unselect=(can_unselect) ⇒ Boolean
If unselecting the selected item is allowed.
#can_unselect? ⇒ Boolean
If unselecting the selected item is allowed.
#item_type ⇒ GLib::Type
The type of items. See [methodGio.ListModel.get_item_type].
#item_type=(item_type) ⇒ GLib::Type
The type of items. See [methodGio.ListModel.get_item_type].
#model ⇒ Gio::ListModel
The model being managed.
#model=(model) ⇒ Gio::ListModel
The model being managed.
#n_items ⇒ Integer
The number of items. See [methodGio.ListModel.get_n_items].
#n_items=(n_items) ⇒ Integer
The number of items. See [methodGio.ListModel.get_n_items].
#selected ⇒ Integer
Position of the selected item.
#selected=(selected) ⇒ Integer
Position of the selected item.
#selected_item ⇒ GObject::Object
The selected item.
#selected_item=(selected_item) ⇒ GObject::Object
The selected item.