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
GtkCustomFilterinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
custom_filter_ptrDefault implementationTyped pointer to the underlying
GtkCustomFilterinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkCustomFilterinstance.Declaration
Swift
var custom_filter_ptr: UnsafeMutablePointer<GtkCustomFilter>! { get } -
Required Initialiser for types conforming to
CustomFilterProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
setFilterFunc(matchFunc:Extension methoduserData: userDestroy: ) Sets the function used for filtering items.
If
match_funcisnil, 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_destroywill be called now.Declaration
Swift
@inlinable func setFilterFunc(matchFunc: GtkCustomFilterFunc? = nil, userData: gpointer! = nil, userDestroy: GDestroyNotify?)
View on GitHub
Install in Dash
CustomFilterProtocol Protocol Reference