MultiSorter

GtkMultiSorter 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(GtkMultiSorter* gtkMultiSorter, bool ownedRef)

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

this
this()

Creates a new multi sorter.

Members

Functions

append
void append(Sorter sorter)

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

getMultiSorterStruct
GtkMultiSorter* getMultiSorterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

remove
void remove(uint position)

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

Mixins

__anonymous
mixin ListModelT!(GtkMultiSorter)
Undocumented in source.
__anonymous
mixin BuildableT!(GtkMultiSorter)
Undocumented in source.

Static functions

getType
GType getType()

Variables

gtkMultiSorter
GtkMultiSorter* gtkMultiSorter;

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.

From ListModelIF

getListModelStruct
GListModel* getListModelStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getItem
void* getItem(uint position)

Get the item at @position. If @position is greater than the number of items in @list, %NULL is returned.

getItemType
GType getItemType()

Gets the type of the items in @list. All items returned from g_list_model_get_type() are of that type or a subtype, or are an implementation of that interface.

getNItems
uint getNItems()

Gets the number of items in @list.

getObject
ObjectG getObject(uint position)

Get the item at @position. If @position is greater than the number of items in @list, %NULL is returned.

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

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

addOnItemsChanged
gulong addOnItemsChanged(void delegate(uint, uint, uint, ListModelIF) dlg, ConnectFlags connectFlags)

This signal is emitted whenever items were added to or removed from @list. At @position, @removed items were removed and @added items were added in their place.

From BuildableIF

getBuildableStruct
GtkBuildable* getBuildableStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getBuildableId
string getBuildableId()

Gets the ID of the @buildable object.

Meta