Gtk.BoolFilter¶
class — extends Filter
Evaluates a boolean expression to determine whether to include items.
Constructors¶
new¶
Creates a new bool filter.
Parameters:
expression— the expression to evaluate
Methods¶
get_expression¶
Gets the expression that the filter evaluates for each item.
get_invert¶
Returns whether the filter inverts the expression.
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.
Parameters:
expression— the expression
set_invert¶
Sets whether the filter should invert the expression.
Parameters:
invert— true to invert
Properties¶
expression¶
The boolean expression to evaluate on each item.
invert¶
If the expression result should be inverted.