MultiSorter

open class MultiSorter(pointer: <Error class: unknown class><<Error class: unknown class>>) : Sorter, Buildable

GtkMultiSorter combines multiple sorters by trying them in turn.

If the first sorter compares two items as equal, the second is tried next, and so on.

Skipped during bindings generation

  • method item-type: Property has no getter nor setter

  • method n-items: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()

Creates a new multi sorter.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkMultiSorterPointer: <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 append(sorter: Sorter)

Add @sorter to @self to use for sorting at the end.

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 getBuildableId(): String?

Gets the ID of the @buildable object.

Link copied to clipboard
open fun getOrder(): SorterOrder

Gets the order that @self conforms to.

Link copied to clipboard
open fun remove(position: <Error class: unknown class>)

Removes the sorter at the given @position from the list of sorter used by @self.