Class

GtkNumericSorter

since: 4.0

Description [src]

final class Gtk.NumericSorter : Gtk.Sorter
{
  /* No available fields */
}

GtkNumericSorter is a GtkSorter that compares numbers.

To obtain the numbers to compare, this sorter evaluates a GtkExpression.

Available since: 4.0

Hierarchy

hierarchy this GtkNumericSorter ancestor_0 GtkSorter ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

gtk_numeric_sorter_new

Creates a new numeric sorter using the given expression.

since: 4.0

Instance methods

gtk_numeric_sorter_get_expression

Gets the expression that is evaluated to obtain numbers from items.

since: 4.0

gtk_numeric_sorter_get_sort_order

Gets whether this sorter will sort smaller numbers first.

since: 4.0

gtk_numeric_sorter_set_expression

Sets the expression that is evaluated to obtain numbers from items.

since: 4.0

gtk_numeric_sorter_set_sort_order

Sets whether to sort smaller numbers before larger ones.

since: 4.0

Methods inherited from GtkSorter (3)
gtk_sorter_changed

Notifies all users of the sorter that it has changed.

since: 4.0

gtk_sorter_compare

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

since: 4.0

gtk_sorter_get_order

Gets the order that self conforms to.

since: 4.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gtk.NumericSorter:expression

The expression to evaluate on items to get a number to compare with.

since: 4.0

Gtk.NumericSorter:sort-order

Whether the sorter will sort smaller numbers first.

since: 4.0

Signals

Signals inherited from GtkSorter (1)
GtkSorter::changed

Emitted whenever the sorter changed.

since: 4.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

Class structure

struct GtkNumericSorterClass {
  GtkSorterClass parent_class;
  
}
No description available.
Class members
parent_class: GtkSorterClass
No description available.