## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Compare_Funcs (generic)

- Goto spec source

# Description

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

</doc_ignore>

# Types

### Data_Type

- Goto declaration in source

    type Data_Type (<>) is private;

### Gtk_Tree_Iter_Compare_Func

- Goto declaration in source

    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

- Goto declaration in source

    type Destroy_Notify is access procedure (Data : in out Data_Type);

Free the memory used by Data

# Subprograms & Entries

### Set_Default_Sort_Func

- Goto spec in source

    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

- Goto spec in source

    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.