MultiFilterProtocol

public protocol MultiFilterProtocol : ListModelProtocol, BuildableProtocol, FilterProtocol

GtkMultiFilter is the base class for filters that combine multiple filters.

The MultiFilterProtocol protocol exposes the methods and properties of an underlying GtkMultiFilter 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 MultiFilter. Alternatively, use MultiFilterRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkMultiFilter instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkMultiFilter instance.

    Default Implementation

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

    Declaration

    Swift

    var multi_filter_ptr: UnsafeMutablePointer<GtkMultiFilter>! { get }
  • Required Initialiser for types conforming to MultiFilterProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

MultiFilter Class: MultiFilterProtocol extension (methods and fields)

  • append(filter:) Extension method

    Adds a filter to self to use for matching.

    Declaration

    Swift

    @inlinable
    func append<FilterT>(filter: FilterT) where FilterT : FilterProtocol
  • remove(position:) Extension method

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

    If position is larger than the number of filters, nothing happens and the function returns.

    Declaration

    Swift

    @inlinable
    func remove(position: Int)