CustomFilter

open class CustomFilter(pointer: <Error class: unknown class><<Error class: unknown class>>) : Filter

GtkCustomFilter determines whether to include items with a callback.

Constructors

Link copied to clipboard
constructor(matchFunc: CustomFilterFunc)

Creates a new filter using the given @match_func to filter items.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkCustomFilterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkFilterPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun changed(change: FilterChange)

Notifies all users of the filter that it has changed.

Link copied to clipboard
fun connectChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (change: FilterChange) -> Unit): <Error class: unknown class>

Emitted whenever the filter changed.

Link copied to clipboard

Gets the known strictness of @filters.

Link copied to clipboard
open fun match(item: <Error class: unknown class>): Boolean

Checks if the given @item is matched by the filter or not.

Link copied to clipboard
open fun setFilterFunc(matchFunc: CustomFilterFunc)

Sets the function used for filtering items.