Class: Gtk::ColumnViewSorter

Inherits:
Sorter
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Sorter

#changed, #compare, #order

Instance Method Details

#get_nth_sort_column(position, sort_order) ⇒ Gtk::ColumnViewColumn

Gets the position'th sort column and its associated sort order.

Use the [signalGtk.Sorter::changed] signal to get notified when sort columns change.

Parameters:

  • position (Integer)

    the position of the sort column to retrieve (0 for the primary sort column)

  • sort_order (Gtk::SortType)

    return location for the sort order

Returns:

#n_sort_columnsInteger

Returns the number of columns by which the sorter sorts.

If the sorter of the primary sort column does not determine a total order, then the secondary sorters are consulted to break the ties.

Use the [signalGtk.Sorter::changed] signal to get notified when the number of sort columns changes.

Returns:

  • (Integer)

    the number of sort columns

#primary_sort_columnGtk::ColumnViewColumn

The primary sort column.

The primary sort column is the one that displays the triangle in a column view header.

Returns:

#primary_sort_column=(primary_sort_column) ⇒ Gtk::ColumnViewColumn

The primary sort column.

The primary sort column is the one that displays the triangle in a column view header.

Parameters:

Returns:

#primary_sort_orderGtk::SortType

The primary sort order.

The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards.

Returns:

#primary_sort_order=(primary_sort_order) ⇒ Gtk::SortType

The primary sort order.

The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards.

Parameters:

Returns: