## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Row_Data (generic)

- Goto spec source

# Description

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

<doc_ignore>

# Types

### Data_Type

- Goto declaration in source

    type Data_Type (<>) is private;

### Data_Type_Access

- Goto declaration in source

    type Data_Type_Access is access all Data_Type;

</doc_ignore>

### Gcompare_Func

- Goto declaration in source

    type Gcompare_Func is access
            function (A, B : in Data_Type) return Boolean;

Function used to compare data types in the functions Find_[All] By_Row_Data_Custom.

### Gtk_Ctree_Func

- Goto declaration in source

    type Gtk_Ctree_Func is access
            procedure (Ctree : access Gtk_Ctree_Record'Class;
                       Node  : in     Gtk_Ctree_Node;
                       Data  : in     Data_Type_Access);

Function used by Post/Pre_Recursive functions below.

# Subprograms & Entries

### Node_Set_Row_Data

- Goto spec in source

    procedure Node_Set_Row_Data (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Data: in     Data_Type);

Associate a Data with a Node.

### Node_Get_Row_Data

- Goto spec in source

    function Node_Get_Row_Data (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node) return Data_Type;

Retrieve a data associated with a Node. Error Handling: Gtkada.Types.Data_Error is raised when trying to retrieve the data from a Node for which no data has been set (using Node_Set_Row_Data).

### Find_By_Row_Data

- Goto spec in source

    function Find_By_Row_Data (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Data: in     Data_Type) return Gtk_Ctree_Node;

Find the first node containing a specified Data. Node is the starting point of the search. If null, the search will start from the root. Return the first Node whose associated data is Data, null if none can be found.

### Find_All_By_Row_Data

- Goto spec in source

    function Find_All_By_Row_Data (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Data: in     Data_Type) return Node_List.Glist;

Find all nodes containing a specified Data. Node is the starting point of the search. If null, the search will start from the root.

### Find_By_Row_Data_Custom

- Goto spec in source

    function Find_By_Row_Data_Custom (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Data: in     Data_Type;Func: in     Gcompare_Func) return Gtk_Ctree_Node;

Find the first node containing a specified Data. Similar to Find_By_Row_Data but Func is used to allow a more flexible (user defined) method to compare two nodes.

### Find_All_By_Row_Data_Custom

- Goto spec in source

    function Find_All_By_Row_Data_Custom (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Data: in     Data_Type;Func: in     Gcompare_Func) return Node_List.Glist;

Find all the nodes containing a specified Data. Similar to Find_All_By_Row_Data but Func is used to allow a more flexible (user defined) method to compare two nodes.

### Post_Recursive

- Goto spec in source

    procedure Post_Recursive (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Func: in     Gtk_Ctree_Func;Data: in     Data_Type_Access);

Apply Func to each node of a subtree. Node designates the root of the subtree. Data will be passed as a parameter to Func. This procedure will first apply Func to the children nodes.

### Post_Recursive_To_Depth

- Goto spec in source

    procedure Post_Recursive_To_Depth (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Depth: in     Gint;Func: in     Gtk_Ctree_Func;Data: in     Data_Type_Access);

Apply Func to each node of a subtree until a specified Depth. Node designates the root of the subtree. Data will be passed as a parameter to Func. This function is similar to Post_Recursive except that it stop at a specified subtree depth.

### Pre_Recursive

- Goto spec in source

    procedure Pre_Recursive (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Func: in     Gtk_Ctree_Func;Data: in     Data_Type_Access);

Apply Func to each node of a subtree. Similar to Post_Recursive but will apply Func to the parent before applying it to its children.

### Pre_Recursive_To_Depth

- Goto spec in source

    procedure Pre_Recursive_To_Depth (Ctree: access Gtk_Ctree_Record'Class;Node: in     Gtk_Ctree_Node;Depth: in     Gint;Func: in     Gtk_Ctree_Func;Data: in     Data_Type_Access);

Apply Func to each node of a subtree until a specific Depth. Similar to Post_Recursive_To_Depth but will apply Func to the parent before applying it to its children.