CustomSorter

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

GtkCustomSorter is a GtkSorter implementation that sorts via a callback function.

Constructors

Link copied to clipboard
constructor(sortFunc: <Error class: unknown class>?)

Creates a new GtkSorter that works by calling

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

Types

Link copied to clipboard
object Companion

Properties

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

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
open fun getOrder(): SorterOrder

Gets the order that @self conforms to.

Link copied to clipboard
open fun setSortFunc(sortFunc: <Error class: unknown class>?)

Sets (or unsets) the function used for sorting items.