CustomSorter

GtkCustomSorter is a GtkSorter implementation that sorts via a callback function.

Constructors

this
this(GtkCustomSorter* gtkCustomSorter, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(GCompareDataFunc sortFunc, void* userData, GDestroyNotify userDestroy)

Creates a new GtkSorter that works by calling @sort_func to compare items.

Members

Functions

getCustomSorterStruct
GtkCustomSorter* getCustomSorterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setSortFunc
void setSortFunc(GCompareDataFunc sortFunc, void* userData, GDestroyNotify userDestroy)

Sets (or unsets) the function used for sorting items.

Static functions

getType
GType getType()

Variables

gtkCustomSorter
GtkCustomSorter* gtkCustomSorter;

the main Gtk struct

Inherited Members

From Sorter

gtkSorter
GtkSorter* gtkSorter;

the main Gtk struct

getSorterStruct
GtkSorter* getSorterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
changed
void changed(GtkSorterChange change)

Emits the [signal@Gtk.Sorter::changed] signal to notify all users of the sorter that it has changed.

compare
GtkOrdering compare(ObjectG item1, ObjectG item2)

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

getOrder
GtkSorterOrder getOrder()

Gets the order that @self conforms to.

addOnChanged
gulong addOnChanged(void delegate(GtkSorterChange, Sorter) dlg, ConnectFlags connectFlags)

Emitted whenever the sorter changed.

Meta