CustomFilterProtocol
public protocol CustomFilterProtocol : FilterProtocol
GtkCustomFilter
determines whether to include items with a callback.
The CustomFilterProtocol
protocol exposes the methods and properties of an underlying GtkCustomFilter
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 CustomFilter
.
Alternatively, use CustomFilterRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkCustomFilter
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
custom_filter_ptr
Default implementationTyped pointer to the underlying
GtkCustomFilter
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkCustomFilter
instance.Declaration
Swift
var custom_filter_ptr: UnsafeMutablePointer<GtkCustomFilter>! { get }
-
Required Initialiser for types conforming to
CustomFilterProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
setFilterFunc(matchFunc:
Extension methoduserData: userDestroy: ) Sets the function used for filtering items.
If
match_func
isnil
, the filter matches all items.If the filter func changes its filtering behavior,
gtk_filter_changed()
needs to be called.If a previous function was set, its
user_destroy
will be called now.Declaration
Swift
@inlinable func setFilterFunc(matchFunc: GtkCustomFilterFunc? = nil, userData: gpointer! = nil, userDestroy: GDestroyNotify?)