CustomFilter

GtkCustomFilter determines whether to include items with a callback.

Constructors

this
this(GtkCustomFilter* gtkCustomFilter, bool ownedRef)

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

this
this(GtkCustomFilterFunc matchFunc, void* userData, GDestroyNotify userDestroy)

Creates a new filter using the given @match_func to filter items.

Members

Functions

getCustomFilterStruct
GtkCustomFilter* getCustomFilterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setFilterFunc
void setFilterFunc(GtkCustomFilterFunc matchFunc, void* userData, GDestroyNotify userDestroy)

Sets the function used for filtering items.

Static functions

getType
GType getType()

Variables

gtkCustomFilter
GtkCustomFilter* gtkCustomFilter;

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