Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkfilter.h File Reference
#include <gdk/gdk.h>

Go to the source code of this file.

Data Structures

struct  _GtkFilterClass
 

Macros

#define GTK_TYPE_FILTER   (gtk_filter_get_type ())
 

Enumerations

enum  GtkFilterMatch { GTK_FILTER_MATCH_SOME = 0 , GTK_FILTER_MATCH_NONE , GTK_FILTER_MATCH_ALL }
 
enum  GtkFilterChange { GTK_FILTER_CHANGE_DIFFERENT = 0 , GTK_FILTER_CHANGE_LESS_STRICT , GTK_FILTER_CHANGE_MORE_STRICT }
 

Functions

GDK_AVAILABLE_IN_ALL gboolean gtk_filter_match (GtkFilter *self, gpointer item)
 
GDK_AVAILABLE_IN_ALL GtkFilterMatch gtk_filter_get_strictness (GtkFilter *self)
 
GDK_AVAILABLE_IN_ALL void gtk_filter_changed (GtkFilter *self, GtkFilterChange change)
 

Macro Definition Documentation

◆ GTK_TYPE_FILTER

#define GTK_TYPE_FILTER   (gtk_filter_get_type ())

Definition at line 75 of file gtkfilter.h.

Enumeration Type Documentation

◆ GtkFilterChange

GtkFilterChange: @GTK_FILTER_CHANGE_DIFFERENT: The filter change cannot be described with any of the other enumeration values. @GTK_FILTER_CHANGE_LESS_STRICT: The filter is less strict than it was before: All items that it used to return TRUE for still return TRUE, others now may, too. @GTK_FILTER_CHANGE_MORE_STRICT: The filter is more strict than it was before: All items that it used to return FALSE for still return FALSE, others now may, too.

Describes changes in a filter in more detail and allows objects using the filter to optimize refiltering items.

If you are writing an implementation and are not sure which value to pass, GTK_FILTER_CHANGE_DIFFERENT is always a correct choice.

Enumerator
GTK_FILTER_CHANGE_DIFFERENT 
GTK_FILTER_CHANGE_LESS_STRICT 
GTK_FILTER_CHANGE_MORE_STRICT 

Definition at line 69 of file gtkfilter.h.

69 {
GtkFilterChange
Definition gtkfilter.h:69
@ GTK_FILTER_CHANGE_MORE_STRICT
Definition gtkfilter.h:72
@ GTK_FILTER_CHANGE_LESS_STRICT
Definition gtkfilter.h:71
@ GTK_FILTER_CHANGE_DIFFERENT
Definition gtkfilter.h:70

◆ GtkFilterMatch

GtkFilterMatch: @GTK_FILTER_MATCH_SOME: The filter matches some items, gtk_filter_match() may return TRUE or FALSE @GTK_FILTER_MATCH_NONE: The filter does not match any item, gtk_filter_match() will always return FALSE. @GTK_FILTER_MATCH_ALL: The filter matches all items, gtk_filter_match() will alays return TRUE.

Describes the known strictness of a filter.

Note that for filters where the strictness is not known, GTK_FILTER_MATCH_SOME is always an acceptable value, even if a filter does match all or no items.

Enumerator
GTK_FILTER_MATCH_SOME 
GTK_FILTER_MATCH_NONE 
GTK_FILTER_MATCH_ALL 

Definition at line 45 of file gtkfilter.h.

45 {
GtkFilterMatch
Definition gtkfilter.h:45
@ GTK_FILTER_MATCH_NONE
Definition gtkfilter.h:47
@ GTK_FILTER_MATCH_ALL
Definition gtkfilter.h:48
@ GTK_FILTER_MATCH_SOME
Definition gtkfilter.h:46

Function Documentation

◆ gtk_filter_changed()

GDK_AVAILABLE_IN_ALL void gtk_filter_changed ( GtkFilter * self,
GtkFilterChange change )

◆ gtk_filter_get_strictness()

GDK_AVAILABLE_IN_ALL GtkFilterMatch gtk_filter_get_strictness ( GtkFilter * self)

◆ gtk_filter_match()

GDK_AVAILABLE_IN_ALL gboolean gtk_filter_match ( GtkFilter * self,
gpointer item )