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.

  • ptr

    Untyped pointer to the underlying GtkMultiSorter instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • multi_sorter_ptr Default implementation

    Typed pointer to the underlying GtkMultiSorter instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkMultiSorter instance.

    Declaration

    Swift

    var multi_sorter_ptr: UnsafeMutablePointer<GtkMultiSorter>! { get }
  • Required Initialiser for types conforming to MultiSorterProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

MultiSorter Class: MultiSorterProtocol extension (methods and fields)

  • append(sorter:) Extension method

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

    self will consult all existing sorters before it will sort with the given sorter.

    Declaration

    Swift

    @inlinable
    func append<SorterT>(sorter: SorterT) where SorterT : SorterProtocol
  • remove(position:) Extension method

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

    If position is larger than the number of sorters, nothing happens.

    Declaration

    Swift

    @inlinable
    func remove(position: Int)