StringSorter

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

GtkStringSorter is a GtkSorter that compares strings.

It does the comparison in a linguistically correct way using the current locale by normalizing Unicode strings and possibly case-folding them before performing the comparison.

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

Constructors

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

Creates a new string sorter that compares items using the given

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The collation method to use for sorting.

Link copied to clipboard

The expression to evaluate on item to get a string to compare with.

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

If sorting is case sensitive.

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 which collation method the sorter uses.

Link copied to clipboard

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

Link copied to clipboard

Gets whether the sorter ignores case differences.

Link copied to clipboard
open fun getOrder(): SorterOrder

Gets the order that @self conforms to.

Link copied to clipboard
open fun setCollation(collation: Collation)

Sets the collation method to use for sorting.

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

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

Link copied to clipboard
open fun setIgnoreCase(ignoreCase: Boolean)

Sets whether the sorter will ignore case differences.