Sorter


Object Hierarchy:

Gtk.Sorter Gtk.Sorter Gtk.Sorter GLib.Object GLib.Object GLib.Object->Gtk.Sorter

Description:

[ CCode ( type_id = "gtk_sorter_get_type ()" ) ]
public class Sorter : Object

`GtkSorter` is an object to describe sorting criteria.

Its primary user is [[email protected]]

The model will use a sorter to determine the order in which its items should appear by calling [[email protected]] for pairs of items.

Sorters may change their sorting behavior through their lifetime. In that case, they will emit the [[email protected]: GtkSorter:changed] signal to notify that the sort order is no longer valid and should be updated by calling compare again.

GTK provides various pre-made sorter implementations for common sorting operations. [[email protected]] has built-in support for sorting lists via the [[email protected]: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 `GtkSorter` and provide one's own sorter.


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org