gtk.custom_sorter

Module for [CustomSorter] class

Types 3

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
CustomSorter self() nothrowReturns `this`, for use in `with` statements.
CustomSorterGidBuilder builder() static nothrowGet builder for [gtk.custom_sorter.CustomSorter] Returns: New builder object
void setSortFunc(CustomSortDelegate sortFunc) nothrowSets (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. ...
Constructors
this(void * ptr, Flag!"Take" take)
this(CustomSortDelegate sortFunc)Creates a new `GtkSorter` that works by calling sortFunc to compare items. If sortFunc is null, all items are considered equal. Params: sortFunc = the callback delegate to use for sorting Returns: ...
Methods
CustomSorter build() nothrowCreate object from builder. Returns: New object