MultiSorter

gtk.multi_sorter.MultiSorter combines multiple sorters by trying them in turn.

If the first sorter compares two items as equal, the second is tried next, and so on.

Constructors

this
this()

Creates a new multi sorter.

Members

Functions

append
void append(gtk.sorter.Sorter sorter)

Add sorter to self to use for sorting at the end.

remove
void remove(uint position)

Removes the sorter at the given position from the list of sorter used by self.

Mixed In Members

From mixin ListModelT!()

getItem
T getItem(uint position)

Get the item at position and cast to the template type. NOTE: If type is an interface and no known D object is found that the object conforms to, the interface IfaceProxy object will be used. If position is greater than the number of items in list, %NULL is returned. %NULL may be returned if index is smaller than the length of the list, but the object does not conform to the template type. This function is meant to be used by language bindings in place of Gio.ListModel.getItem. See also: Gio.ListModel.getNItems

getItemType
gobject.types.GType getItemType()

Gets the type of the items in list.

getNItems
uint getNItems()

Gets the number of items in list.

getItem
gobject.object.ObjectG getItem(uint position)

Get the item at position.

itemsChanged
void itemsChanged(uint position, uint removed, uint added)

Emits the #GListModel::items-changed signal on list.

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

Connect to ItemsChanged signal.

From mixin BuildableT!()

getBuildableId
string getBuildableId()

Gets the ID of the buildable object.

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.

From ListModel

getItem
T getItem(uint position)

Get the item at position and cast to the template type. NOTE: If type is an interface and no known D object is found that the object conforms to, the interface IfaceProxy object will be used. If position is greater than the number of items in list, %NULL is returned. %NULL may be returned if index is smaller than the length of the list, but the object does not conform to the template type. This function is meant to be used by language bindings in place of Gio.ListModel.getItem. See also: Gio.ListModel.getNItems

getItemType
gobject.types.GType getItemType()

Gets the type of the items in list.

getNItems
uint getNItems()

Gets the number of items in list.

getItem
gobject.object.ObjectG getItem(uint position)

Get the item at position.

itemsChanged
void itemsChanged(uint position, uint removed, uint added)

Emits the #GListModel::items-changed signal on list.

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

Connect to ItemsChanged signal.

From Buildable

getBuildableId
string getBuildableId()

Gets the ID of the buildable object.