BoolFilter

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

GtkBoolFilter evaluates a boolean GtkExpression to determine whether to include items.

Constructors

Link copied to clipboard
constructor(expression: Expression? = null)

Creates a new bool filter.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The boolean expression to evaluate on item.

Link copied to clipboard
val gtkBoolFilterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkFilterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var invert: Boolean

If the expression result should be inverted.

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 expression that the filter uses to evaluate if an item should be filtered.

Link copied to clipboard
open fun getInvert(): Boolean

Returns whether the filter inverts the expression.

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 setExpression(expression: Expression? = null)

Sets the expression that the filter uses to check if items should be filtered.

Link copied to clipboard
open fun setInvert(invert: Boolean)

Sets whether the filter should invert the expression.