NumericSorter

open class NumericSorter(val gtkNumericSorterPointer: <Error class: unknown class><<Error class: unknown class>>) : Sorter(source)

GtkNumericSorter is a GtkSorter that compares numbers.

To obtain the numbers to compare, this sorter evaluates a class@Gtk.Expression.

Constructors

Link copied to clipboard
constructor(expression: Expression? = null)

Creates a new numeric sorter using the given @expression.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard
val gtkNumericSorterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkSorterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether the sorter will sort smaller numbers first.

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.