EZ
Up Prev Next Contents


3.16.4 Manipulating Trees

void EZ_TreeSetCharacter(EZ_TreeNode *node, int type,

int ident, int spacing, int draw_branch)

EZ_TreeNode *EZ_TreeAttachSubtree(EZ_TreeNode *node,

EZ_TreeNode *subtree)

This function merges subtree to the children list of node.

EZ_TreeNode *EZ_TreeNodeGetParent(EZ_TreeNode *node)

This function returns the parent node of node.

EZ_TreeNode *EZ_TreeNodeGetChildren(EZ_TreeNode *node)

This function returns the children node of node.

EZ_TreeNode *EZ_TreeNodeGetSibling(EZ_TreeNode *node)

This function returns the sibling node of node.

void EZ_TreeTraverseTree(EZ_TreeNode *root,

(*pre_func)(EZ_TreeNode *)

(*post_func)(EZ_TreeNode *))

Here are two utlity routines.

void EZ_TreeSetFGColorName(EZ_TreeNode *root,

char *color)

void EZ_TreeSetFGColor(EZ_TreeNode *root,

unsigned long pixelvalue)

These two functions traverses the subtree rooted at node and sets the foreground color of all nodes to the specified color.

void EZ_TreeSetBGColorName(EZ_TreeNode *root,

char *color)

void EZ_TreeSetBGColor(EZ_TreeNode *root,

unsigned long pixelvalue)

These two functions traverses the subtree rooted at node and sets the background color of all nodes to the given color.


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