Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtGenTreeCollapse()

Collapse a subtree

Synopsis:

int PtGenTreeCollapse( PtWidget_t *tree, 
                       PtGenTreeItem_t *item,
                       PhEvent_t *event );

Description:

This function collapses the given subtree item. The tree argument must point to the tree that contains the item or can be NULL if the item doesn't belong to any tree.

If the item belongs to the tree widget, the widget's Tree Item State method is called.

Returns:

The value returned by the Tree Item State method.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree, PtGenTreeItem_t

PhEvent_t in the Photon Library Reference