MAN page from OpenSuSE blt-devel-2.5-lp155.126.1.x86_64.rpm
Blt_TreeDeleteNode
Section: BLT Library Procedures (3)
Updated: 2.5
Index
NAME
Blt_TreeDeleteNode - Deletes a node and its descendants.
SYNOPSIS
#include <bltTree.h>Blt_TreeNodeBlt_TreeDeleteNode(tree, node)
ARGUMENTS
- Blt_Tree tree (in)
Tree containing the node. - Blt_TreeNode node (in)
Node to be deleted.
DESCRIPTION
This procedure deletes a given node and all it descendants from a treedata object.
The arguments are as follows:
- tree
- The tree containing the parent node.
- node
- Node to be deleted. The node and its descendant nodes are deleted.Each node's data values are deleted also. The reference count ofthe Tcl_Obj is decremented.
Since all tree objects must contain at least a root node, the rootnode itself can't be deleted unless the tree is released anddestroyed. Therefore you can clear a tree by deleting its root, butthe root node will remain until the tree is destroyed.
RETURNS
Always returns TCL_OK. Errors generated in a notification callbacksare backgrounded (see
Tcl_TreeCreateNotifyHandler).
EXAMPLE
The following example deletes the root node.
Blt_TreeNode root;root = Blt_TreeRootNode(token);Blt_TreeDeleteNode(token, root);
NOTIFICATIONS
Blt_TreeDeleteNode can trigger tree notify events.You can be notified whenever a node is deleted by using the
Blt_TreeCreateNotifyHandler. A callback routine is registeredthat will be automatically invoked whenever a node is deletedvia
Blt_TreeDeleteNode to the tree.
KEYWORDS
tree, token
Index
- NAME
- SYNOPSIS
- ARGUMENTS
- DESCRIPTION
- RETURNS
- EXAMPLE
- NOTIFICATIONS
- KEYWORDS
This document was created byman2html,using the manual pages.