PtGenTreeSelect()

Select a given item

Synopsis:

void PtGenTreeSelect( PtWidget_t *widget, 
                      PtGenTreeItem_t *item );

Description:

This function selects the given item. As with other PtGenTree*() functions, the tree argument can be set to NULL if item doesn't belong to a widget.

If tree isn't NULL and none of item's ancestors is collapsed, PtGenListSelect() is called. If tree is NULL or some of the ancestors of the item are collapsed, PtGenTreeSelect() simply sets the Pt_LIST_ITEM_SELECTED flag in the item.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree, PtGenTreeItem_t