PtTree item structure
typedef struct Pt_tree_item { PtGenTreeItem_t gen; union { struct { short set, unset; } img; PtTreeItemAttributes_t const *ptr; } attr; void *data; char string[1]; } PtTreeItem_t;
This data structure describes an item in a PtTree. The members include at least:
Use PtTreeAllocItem() or PtTreeCreateItem() to allocate and fill in this structure.
Once the tree item has been created or changed, item->gen.list.flags indicates which half of the PtTreeItem_t's attr union is valid. When this flag is Pt_TREE_ITEM_HAS_ATTRS, attr.ptr is a pointer to an attributes structure (or NULL). When this flag is clear, attr.img.set and attr.img.unset are indexes into the Pt_ARG_TREE_IMAGES array (or -1).
Photon
PtGenList, PtGenTree, PtGenTreeItem_t, PtTree, PtTreeAddAfter(), PtTreeAddFirst(), PtTreeAllItems(), PtTreeAllocItem(), PtTreeChangeItem(), PtTreeCreateItem(), PtTreeFreeItems(), PtTreeGetCurrent(), PtTreeItemAttributes_t, PtTreeItemIndex(), PtTreeModifyItem(), PtTreeModifyItemString(), PtTreeRemoveItem(), PtTreeRootItem(), PtTreeSelectedItems()