Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
type Gcompare_Data_Func is access function
(A : not null access GObject_Record'Class;
B : not null access GObject_Record'Class;
User_Data : User_Data_Type) return Glib.Gint;
Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second.
a value
a value to compare with
user data
negative value if A < B; zero if A = B; positive value if A > B
function Gtk_Custom_Sorter_New_User
(Sort_Func : Gcompare_Data_Func;
User_Data : User_Data_Type)
return Gtk_Custom_Sorter
Creates a new GtkSorter that works by calling Sort_Func to compare items. If Sort_Func is null, all items are considered equal.
the GCompareDataFunc to use for sorting
procedure Gtk_New_User
(Self : out Gtk_Custom_Sorter;
Sort_Func : Gcompare_Data_Func;
User_Data : User_Data_Type)
Creates a new GtkSorter that works by calling Sort_Func to compare items. If Sort_Func is null, all items are considered equal. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the GCompareDataFunc to use for sorting
procedure Initialize_User
(Self : not null access Gtk_Custom_Sorter_Record'Class;
Sort_Func : Gcompare_Data_Func;
User_Data : User_Data_Type)
Creates a new GtkSorter that works by calling Sort_Func to compare items. If Sort_Func is null, all items are considered equal. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the GCompareDataFunc to use for sorting
procedure Set_Sort_Func_User
(Self : not null access Gtk.Custom_Sorter.Gtk_Custom_Sorter_Record'Class;
Sort_Func : Gcompare_Data_Func;
User_Data : User_Data_Type)
Sets (or unsets) the function used for sorting items. If Sort_Func is null, all items are considered equal. If the sort func changes its sorting behavior, Gtk.Sorter.Changed needs to be called. If a previous function was set, its User_Destroy will be called now.
function to sort items
user data to pass to Match_Func
type User_Data_Type (<>) is private;