NumericSorter

open class NumericSorter(pointer: <Error class: unknown class><<Error class: unknown class>>) : Sorter

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(pointer: <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
fun connectChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (change: SorterChange) -> Unit): <Error class: unknown class>

Emitted whenever the sorter changed.

Link copied to clipboard

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

Link copied to clipboard
open fun getOrder(): SorterOrder

Gets the order that @self conforms to.

Link copied to clipboard

Gets whether this sorter will sort smaller numbers first.

Link copied to clipboard
open fun setExpression(expression: Expression? = null)

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

Link copied to clipboard
open fun setSortOrder(sortOrder: SortType)

Sets whether to sort smaller numbers before larger ones.