Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
type Gtk_Custom_Filter_Func_User is access function
(Item : Glib.Object.GObject;
User_Data : User_Data_Type) return Boolean;
User function that is called to determine if the Item should be matched. If the filter matches the item, this function must return true. If the item should be filtered out, false must be returned.
the item to be matched
user data
true to keep the item around
function Gtk_Custom_Filter_New_User
(Match_Func : Gtk_Custom_Filter_Func_User;
User_Data : User_Data_Type)
return Gtk_Custom_Filter
Creates a new filter using the given function to filter items. If Match_Func is NULL, the filter matches all items. If the filter func changes its filtering behavior, [methodGtk.Filter.changed] needs to be called.
function to filter items
procedure Gtk_New_User
(Self : out Gtk_Custom_Filter;
Match_Func : Gtk_Custom_Filter_Func_User;
User_Data : User_Data_Type)
Creates a new filter using the given function to filter items. If Match_Func is NULL, the filter matches all items. If the filter func changes its filtering behavior, [methodGtk.Filter.changed] needs to be called. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
function to filter items
user data to pass to Match_Func
procedure Initialize_User
(Self : not null access Gtk_Custom_Filter_Record'Class;
Match_Func : Gtk_Custom_Filter_Func_User;
User_Data : User_Data_Type)
Creates a new filter using the given function to filter items. If Match_Func is NULL, the filter matches all items. If the filter func changes its filtering behavior, [methodGtk.Filter.changed] needs to be called. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
function to filter items
user data to pass to Match_Func
procedure Set_Filter_Func_User
(Self : not null access Gtk.Custom_Filter.Gtk_Custom_Filter_Record'Class;
Match_Func : Gtk_Custom_Filter_Func_User;
User_Data : User_Data_Type)
Sets the function used for filtering items. If Match_Func is NULL, the filter matches all items. If the filter func changes its filtering behavior, [methodGtk.Filter.changed] needs to be called. If a previous function was set, its User_Destroy will be called.
function to filter items
user data to pass to Match_Func
type User_Data_Type (<>) is private;