Index

Package: Foreach_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Foreach_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

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. "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

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Foreach

procedure Foreach 
(Tree_Model: not null access Gtk.List_Store.Gtk_List_Store_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. "func": a function to be called on each row "user_data": user data to passed to Func