TreeListRowSorter

GtkTreeListRowSorter is a special-purpose sorter that will apply a given sorter to the levels in a tree.

Here is an example for setting up a column view with a tree model and a GtkTreeListSorter:

column_sorter = gtk_column_view_get_sorter (view);
sorter = gtk_tree_list_row_sorter_new (g_object_ref (column_sorter));
sort_model = gtk_sort_list_model_new (tree_model, sorter);
selection = gtk_single_selection_new (sort_model);
gtk_column_view_set_model (view, G_LIST_MODEL (selection));

Constructors

this
this(GtkTreeListRowSorter* gtkTreeListRowSorter, bool ownedRef)

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

this
this(Sorter sorter)

Create a special-purpose sorter that applies the sorting of @sorter to the levels of a GtkTreeListModel.

Members

Functions

getSorter
Sorter getSorter()

Returns the sorter used by @self.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTreeListRowSorterStruct
GtkTreeListRowSorter* getTreeListRowSorterStruct(bool transferOwnership)

Get the main Gtk struct

setSorter
void setSorter(Sorter sorter)

Sets the sorter to use for items with the same parent.

Static functions

getType
GType getType()

Variables

gtkTreeListRowSorter
GtkTreeListRowSorter* gtkTreeListRowSorter;

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