Gnome::Gtk4::BoolFilter
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
Gnome::Gtk4::BoolFilter evaluates a boolean Gnome::Gtk4::Expression to determine whether to include items.
Uml Diagram =for image :src<asset_files/images/plantuml/BoolFilter.png> :width<70%> :class<inline>
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found 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]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
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;
Trueto invert.