Class: Gtk::MultiSorter
Instance Method Summary collapse
-
#append(sorter) ⇒ nil
Add sorter to self to use for sorting at the end.
-
#initialize ⇒ Gtk::MultiSorter
constructor
Creates a new multi sorter.
-
#item_type ⇒ GLib::Type
The type of items.
-
#item_type=(item_type) ⇒ GLib::Type
The type of items.
-
#n_items ⇒ Integer
The number of items.
-
#n_items=(n_items) ⇒ Integer
The number of items.
-
#remove(position) ⇒ nil
Removes the sorter at the given position from the list of sorter used by self.
Methods inherited from Sorter
Constructor Details
#initialize ⇒ Gtk::MultiSorter
Creates a new multi sorter.
This sorter compares items by trying each of the sorters in turn, until one returns non-zero. In particular, if no sorter has been added to it, it will always compare items as equal.
Instance Method Details
#append(sorter) ⇒ nil
Add sorter to self to use for sorting at the end.
self will consult all existing sorters before it will sort with the given sorter.
#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].
#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].
#remove(position) ⇒ nil
Removes the sorter at the given position from the list of sorter used by self.
If position is larger than the number of sorters, nothing happens.