Gtk.Tree_Selection.Selected_Foreach_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

Gtk_Tree_Selection_Foreach_Func

type Gtk_Tree_Selection_Foreach_Func is access procedure
  (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);

A function used by Gtk.Tree_Selection.Selected_Foreach to map all selected rows. It will be called on every selected row in the view.

Parameters
Model

The Gtk.Tree_Model.Gtk_Tree_Model being viewed

Path

The Gtk.Tree_Model.Gtk_Tree_Path of a selected row

Iter

A Gtk.Tree_Model.Gtk_Tree_Iter pointing to a selected row

Data

user data

Selected_Foreach

procedure Selected_Foreach
   (Selection : not null access Gtk.Tree_Selection.Gtk_Tree_Selection_Record'Class;
    Func      : Gtk_Tree_Selection_Foreach_Func;
    Data      : User_Data_Type)

Calls a function for each selected node. Note that you cannot modify the tree or selection from within this function. As a result, gtk_tree_selection_get_selected_rows might be more useful.

Parameters
Selection
Func

The function to call for each selected node.

Data

user data to pass to the function.

User_Data_Type

type User_Data_Type (<>) is private;