Package: gtk
Class gtk:sorter
Superclassesgobject:object, common-lisp:standard-object, common-lisp:t Documented Subclassesgtk:column-view-sorter, gtk:custom-sorter, gtk:multi-sorter, gtk:numeric-sorter, gtk:string-sorter, gtk:tree-list-row-sorter Direct Slots
None
Details The gtk:sorter object is the way to describe sorting criteria. Its primary user is the gtk:sort-list-model object. The model will
use a sorter to determine the order in which its items should appear by calling the gtk:sorter-compare function for pairs of items. Sorters may change their sorting behavior through their lifetime. In that case, they will emit the "changed" signal to notify that the sort order is no longer valid and should be updated by calling the gtk:sorter-compare function again. GTK provides various pre-made sorter implementations for common sorting operations. The gtk:column-view widget has built-in support for sorting lists via the sorter property, where the user can change the sorting by clicking on list headers. Of course, in particular for large lists, it is also possible to subclass the gtk:sorter object and provide one's own sorter. Signal DetailsThe "changed" signallambda (sorter change) :run-last
| Inherited Slot Access FunctionsSee also |
2024-10-18