TreeListRowSorter

open class TreeListRowSorter(val gtkTreeListRowSorterPointer: <Error class: unknown class><<Error class: unknown class>>) : Sorter(source)

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

Link copied to clipboard
constructor(sorter: Sorter? = null)

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

constructor(gtkTreeListRowSorterPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkSorterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkTreeListRowSorterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var sorter: Sorter?

The underlying sorter

Functions

Link copied to clipboard
open fun changed(change: SorterChange)

Notifies all users of the sorter that it has changed.

Link copied to clipboard
open fun compare(item1: <Error class: unknown class>, item2: <Error class: unknown class>): Ordering

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

Link copied to clipboard

Emits the "changed" signal. See onChanged.

Link copied to clipboard
open fun getOrder(): SorterOrder

Gets the order that @self conforms to.

Link copied to clipboard
fun onChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (change: SorterChange) -> Unit): <Error class: unknown class>

Emitted whenever the sorter changed.