Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
QNX Community Resources

QNX Community Resources

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PtTreeRemoveItem
[Previous] [Contents] [Index] [Next]

PtTreeRemoveItem()

Unlink an item

Synopsis:

void PtTreeRemoveItem( PtWidget_t *tree,
                       PtTreeItem_t *item );

Description:

This function unlinks the given item together with its children from its parent and brothers (if any) and sets the item->gen.father and item->gen.brother fields to NULL:


Example of PtTreeRemoveItem()


The results of using PtTreeRemoveItem().


The tree argument must point to the PtTree widget containing the item, or be NULL if the item doesn't belong to any tree.

Note that if tree is NULL and the item has no parent but has a previous brother, then the function can't find the previous brother and unlinks the item from its brother. The function does nothing if item->gen.father and tree are NULL.

PtTreeRemoveItem() never clears the Pt_TREE_ITEM_EXPANDABLE flag in the item's parent.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTree, PtTreeAddAfter(), PtTreeAddFirst(), PtTreeAllocItem(), PtTreeFreeAllItems(), PtTreeFreeItems(), PtTreeItem_t, PtTreeModifyItem(), PtTreeRemoveChildren(), PtTreeRemoveList()


[Previous] [Contents] [Index] [Next]