Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

tree-control-roots

Generic function

Summary

Returns the roots of the specified tree control.

Signature

tree-control-roots tree => roots

Arguments

tree
An instance of type <tree-control>.

Values

roots
An instance of type <sequence>.

Library

duim-gadgets

Module

duim-gadgets

Description

Returns the roots of tree.

Example

Create a tree control as follows:

*tree* := contain(make(<tree-control>, 
                       roots: #(1, 2, 3), 
                       children-generator: 
                         method (x) 
                           vector(x, x + 1)
                         end));

You can return the roots of this tree control as follows:

tree-control-roots(*tree*);

See also

<tree-control>, page 679

tree-control-roots-setter, page 689


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index