Index

Package: Compare_Funcs (generic)

Description

generic
      type Data_Type (<>) is private;
   package Compare_Funcs is
</doc_ignore>

Types

Data_Type

type Data_Type (<>) is private;

Gtk_Tree_Iter_Compare_Func

type Gtk_Tree_Iter_Compare_Func is access function
        (Model     : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class;
         A         : Gtk.Tree_Model.Gtk_Tree_Iter;
         B         : Gtk.Tree_Model.Gtk_Tree_Iter;
         User_Data : Data_Type) return Gint;

Destroy_Notify

type Destroy_Notify is access procedure (Data : in out Data_Type);
Free the memory used by Data

Subprograms & Entries

Set_Default_Sort_Func

procedure Set_Default_Sort_Func 
(Sortable: Gtk_Tree_Sortable;
Sort_Func: Gtk_Tree_Iter_Compare_Func;
User_Data: Data_Type;
Destroy: Destroy_Notify := null);

Set_Sort_Func

procedure Set_Sort_Func 
(Sortable: Gtk_Tree_Sortable;
Sort_Column_Id: Gint;
Sort_Func: Gtk_Tree_Iter_Compare_Func;
User_Data: Data_Type;
Destroy: Destroy_Notify := null);
Same as above, but an additional user data can be passed to the sort function.