Gtk.Tree_Model_Sort.Foreach_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

Foreach

procedure Foreach
   (Tree_Model : not null access Gtk.Tree_Model_Sort.Gtk_Tree_Model_Sort_Record'Class;
    Func       : Gtk_Tree_Model_Foreach_Func;
    User_Data  : User_Data_Type)

Calls func on each node in model in a depth-first fashion. If Func returns True, then the tree ceases to be walked, and Gtk.Tree_Model.Foreach returns.

Parameters
Tree_Model
Func

a function to be called on each row

User_Data

user data to passed to Func

Gtk_Tree_Model_Foreach_Func

type Gtk_Tree_Model_Foreach_Func is access function
  (Model : Gtk.Tree_Model.Gtk_Tree_Model;
   Path  : Gtk.Tree_Model.Gtk_Tree_Path;
   Iter  : Gtk.Tree_Model.Gtk_Tree_Iter;
   Data  : User_Data_Type) return Boolean;

Type of the callback passed to Gtk.Tree_Model.Foreach to iterate over the rows in a tree model.

Parameters
Model

the Gtk.Tree_Model.Gtk_Tree_Model being iterated

Path

the current Gtk.Tree_Model.Gtk_Tree_Path

Iter

the current Gtk.Tree_Model.Gtk_Tree_Iter

Data

The user data passed to Gtk.Tree_Model.Foreach

Return Value

True to stop iterating, False to continue

User_Data_Type

type User_Data_Type (<>) is private;