BoolFilter

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

Constructors

this
this(GtkBoolFilter* gtkBoolFilter, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Expression expression)

Creates a new bool filter.

Members

Functions

getBoolFilterStruct
GtkBoolFilter* getBoolFilterStruct(bool transferOwnership)

Get the main Gtk struct

getExpression
Expression getExpression()

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

getInvert
bool getInvert()

Returns whether the filter inverts the expression.

getStruct
void* getStruct()

the main Gtk struct as a void*

setExpression
void setExpression(Expression expression)

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

setInvert
void setInvert(bool invert)

Sets whether the filter should invert the expression.

Static functions

getType
GType getType()

Variables

gtkBoolFilter
GtkBoolFilter* gtkBoolFilter;

the main Gtk struct

Inherited Members

From Filter

gtkFilter
GtkFilter* gtkFilter;

the main Gtk struct

getFilterStruct
GtkFilter* getFilterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
changed
void changed(GtkFilterChange change)

Emits the #GtkFilter::changed signal to notify all users of the filter that the filter changed. Users of the filter should then check items again via gtk_filter_match().

getStrictness
GtkFilterMatch getStrictness()

Gets the known strictness of @filters. If the strictness is not known, %GTK_FILTER_MATCH_SOME is returned.

match
bool match(ObjectG item)

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

addOnChanged
gulong addOnChanged(void delegate(GtkFilterChange, Filter) dlg, ConnectFlags connectFlags)

Emitted whenever the filter changed.

Meta