About all my projects
Gnome::Gtk4::BoolFilter

Gnome::Gtk4::BoolFilter

Description

Gnome::Gtk4::BoolFilter evaluates a boolean Gnome::Gtk4::Expression to determine whether to include items.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-boolfilter

Creates a new bool filter.

method new-boolfilter ( N-Object() $expression --> Gnome::Gtk4::BoolFilter \)
  • $expression; (transfer ownership: full) The expression to evaluate.

Methods

get-expression

Gets the expression that the filter uses to evaluate if an item should be filtered.

method get-expression (--> N-Object )

Return value; a Gnome::Gtk4::Expression.

get-invert

Returns whether the filter inverts the expression.

method get-invert (--> Bool )

Return value; True if the filter inverts.

set-expression

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

The expression must have a value type of G_TYPE_BOOLEAN.

method set-expression ( N-Object() $expression )
  • $expression; a Gnome::Gtk4::Expression.

set-invert

Sets whether the filter should invert the expression.

method set-invert ( Bool() $invert )
  • $invert; True to invert.