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

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

PtTreeItem_t

PtTree item structure

Synopsis:

typedef struct Pt_tree_item {
    PtGenTreeItem_t gen;
    short set_img, unset_img;
    void *data;
    char string[1]; 
    } PtTreeItem_t;

Description:

This data structure describes an item in a PtTree. The members include at least:

gen
A structure that describes a generic-tree item. This structure includes state information for the item (whether or not it's selected, the current item, damaged, out of view, expandable, expanded, and so on), its size, and links to other generic-tree items. For more information, see PtGenTreeItem_t.
set_img
The index into the tree's Pt_ARG_TREE_IMAGES resource of the image that's displayed when the item is set. An item is considered set if its flags masked with the tree's Pt_ARG_TREE_IMGMASK resource give a nonzero value.
unset_img
The index of the image displayed when the item isn't set.
data
A pointer to arbitrary user data. This isn't used by the widget.
string
The string to be displayed for the item. This field is allocated the appropriate amount of space when it's set.

Use PtTreeAllocItem() to allocate and fill in this structure.

Classification:

Photon

See also:

PtGenList, PtGenTree, PtGenTreeItem_t, PtTree, PtTreeAddAfter(), PtTreeAddFirst(), PtTreeAllItems(), PtTreeAllocItem(), PtTreeFreeItems(), PtTreeGetCurrent(), PtTreeItemIndex(), PtTreeModifyItem(), PtTreeRemoveItem(), PtTreeRootItem(), PtTreeSelectedItems()


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