EZ
Up Prev Next Contents


3.16.3 Creating Trees

EZ_TreeNode is a special data structure used exclusively in ListTree widgets.

To create a TreeNode, use

EZ_TreeNode *EZ_CreateTreeNode(EZ_TreeNode *parent

EZ_Item *item)

This function creats and returns a tree node created using item.

To get the item stored at a TreeNode, use

void EZ_TreeNodeGetItem(EZ_TreeNode *node)

To destroy all descendants of a tree node, use

void EZ_TreeDestroyNodeDescendants(EZ_TreeNode *node)

This function destroy all descendants of a tree node. The node itself, however, is retained. The display will be updated if necessary.

To destroy a subtree, use

void EZ_TreeDestroySubtree(EZ_TreeNode *node)

This function destroy all descendants of a tree node, together with node. The display will be updated if necessary.


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>