PtTree item attributes structure
typedef struct Pt_tree_item_attributes { PtGenListItemAttrs_t list; PhImage_t const *set_image, *unset_image; } PtTreeItemAttributes_t;
This data structure describes the attributes for a PtTreeItem_t. The members include at least:
It's your responsibility to allocate and deallocate the members of this structure, and to ensure that their contents don't change while the structure is in use.
Use this structure as a parameter to PtTreeCreateItem() to create a tree item with attributes (as opposed to PtTreeAllocItem()), and to PtTreeChangeItem() to change an existing tree item.
The list member is a PtGenListItemAttrs_t with this structure:
typedef struct Pt_genlist_item_attrs { const char *font; PtGenListColorSet_t unselected_colors; PtGenListColorSet_t selected_colors; unsigned flags; } PtGenListItemAttrs_t;
The members are:
typedef struct Pt_gen_list_color_set { PgColor_t text, fill; } PtGenListColorSet_t;
Photon
PtTree, PtTreeChangeItem(), PtTreeCreateItem(), PtTreeItem_t