Package: gtk
Class gtk:column-view-sorter
Superclassesgtk:sorter, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slotsprimary-sort-column The primary-sort-column property of type gtk:column-view-column (Read) The primary sort column is the one that displays the triangle in a column view header. Default value: 0 primary-sort-order The primary-sort-order property of type gtk:sort-type (Read) The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards. Default value: :ascending Details The gtk:column-view-sorter class is a sorter implementation that is geared towards the needs of the gtk:column-view widget. The sorter returned by the gtk:column-view-sorter function is a gtk:column-view-sorter object. In column views, sorting can be configured by associating sorters with columns, and users can invert sort order by clicking on column headers. The gtk:column-view-sorter API is designed to allow saving and restoring this configuration. If you are only interested in the primary sort column, that is, the column where a sort indicator is shown in the header, then you can just look at the primary-sort-column and primary-sort-order properties. If you want to store the full sort configuration, including secondary sort columns that are used for tie breaking, then you can use the gtk:column-view-sorter-nth-sort-column function. To get notified about changes, use the "changed" signal. Since 4.10 Examples(let ((sorter (gtk:column-view-sorter view))) (dotimes (pos (gtk:column-view-sorter-n-sort-columns sorter)) (multiple-value-bind (column order) (gtk:column-view-sorter-nth-sort-column sorter pos) (gtk:column-view-sort-by-column view column order) ... ))) | Slot Access FunctionsInherited Slot Access FunctionsSee also |
2025-3-30