MultiSorterProtocol
public protocol MultiSorterProtocol : ListModelProtocol, BuildableProtocol, SorterProtocol
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.
The MultiSorterProtocol protocol exposes the methods and properties of an underlying GtkMultiSorter instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see MultiSorter.
Alternatively, use MultiSorterRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkMultiSorterinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
multi_sorter_ptrDefault implementationTyped pointer to the underlying
GtkMultiSorterinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkMultiSorterinstance.Declaration
Swift
var multi_sorter_ptr: UnsafeMutablePointer<GtkMultiSorter>! { get } -
Required Initialiser for types conforming to
MultiSorterProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
append(sorter:Extension method) Add
sortertoselfto use for sorting at the end.selfwill consult all existing sorters before it will sort with the givensorter.Declaration
Swift
@inlinable func append<SorterT>(sorter: SorterT) where SorterT : SorterProtocol -
remove(position:Extension method) Removes the sorter at the given
positionfrom the list of sorter used byself.If
positionis larger than the number of sorters, nothing happens.Declaration
Swift
@inlinable func remove(position: Int)
View on GitHub
Install in Dash
MultiSorterProtocol Protocol Reference