CustomSorter

gtk.custom_sorter.CustomSorter is a gtk.sorter.Sorter implementation that sorts via a callback function.

Constructors

this
this(CustomSortDelegate sortFunc)

Creates a new GtkSorter that works by calling sortFunc to compare items. If sortFunc is null, all items are considered equal.

Members

Functions

setSortFunc
void setSortFunc(CustomSortDelegate sortFunc)

Sets (or unsets) the function used for sorting items. If sort_func is %NULL, all items are considered equal. If the sort func changes its sorting behavior, Gtk.Sorter.changed needs to be called. If a previous function was set, its user_destroy will be called now.

Inherited Members

From Sorter

changed
void changed(gtk.types.SorterChange change)

Notifies all users of the sorter that it has changed.

compare
gtk.types.Ordering compare(gobject.object.ObjectG item1, gobject.object.ObjectG item2)

Compares two given items according to the sort order implemented by the sorter.

getOrder
gtk.types.SorterOrder getOrder()

Gets the order that self conforms to.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.