About all my projects
Gnome::Gtk4::TreeListRowSorter

Gnome::Gtk4::TreeListRowSorter

Description

Gnome::Gtk4::TreeListRowSorter 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:

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-treelistrowsorter

Create a special-purpose sorter that applies the sorting of $sorter to the levels of a Gnome::Gtk4::TreeListModel.

Note that this sorter relies on passthrough defined in Gnome::Gtk4::TreeListModel being False as it can only sort Gnome::Gtk4::TreeListRows.

method new-treelistrowsorter ( N-Object() $sorter --> Gnome::Gtk4::TreeListRowSorter \)
  • $sorter; (transfer ownership: full) a Gnome::Gtk4::Sorter.

Methods

get-sorter

Returns the sorter used by $self.

method get-sorter (--> N-Object )

Return value; the sorter used.

set-sorter

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

This sorter will be passed the item defined in Gnome::Gtk4::TreeListRow of the tree list rows passed to $self.

method set-sorter ( N-Object() $sorter )
  • $sorter; The sorter to use.