Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TreeListRowSorterMeta

[166:14] static extends: object

Generated metadata helpers for TreeListRowSorter class surfaces.

Methods

  • properties ()

    Returns property metadata for TreeListRowSorter.

    • @r A list.

class: TreeListRowSorter

[18:7] extends: object

Applies a gives sorter to the levels in a tree. Here is an example for setting up a column view with a tree model and a GtkTreeListSorter: c 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));

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • TreeListRowSorter (sorter = null)

    Create a special-purpose sorter that applies the sorting of @sorter to the levels of a GtkTreeListModel. Note that this sorter relies on [property@Gtk.TreeListModel:passthrough] being %FALSE as it can only sort [class@Gtk.TreeListRow]s.

    • @p sorter is a GtkSorter.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asSorter ()

    Wraps this handle as Sorter.

    • @r A Sorter object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setSorter (object Value)

    The underlying sorter

    • @p Value is the new property value.
    • @r None.
  • get_sorter ()

    Returns the sorter used by @self.

  • set_sorter (object sorter)

    Sets the sorter to use for items with the same parent. This sorter will be passed the [property@Gtk.TreeListRow:item] of the tree list rows passed to @self.

    • @p sorter is The sorter to use.
    • @r None.