PtGenList item structure
typedef struct Pt_genlist_item { unsigned flags; PhDim_t size; PtGenListItem_t *next, *prev; } PtGenListItem_t;
This data structure describes an item in a PtGenList widget.
Applications should view this as a read-only structure; subclasses usually define ways to modify PtGenListItem_t members. |
The members include at least:
The Pt_LIST_ITEM_USED_FLAGS macro defines the flags used by the PtGenList widget. The remaining bits are available for the child class.
It's safe to set item flags before adding the item to a widget - when you add the item to a widget, the widget sets most of the flags to a correct value without even looking at the current value. The following flags are preserved if they don't conflict with the current state of the widget:
Don't modify the flags directly after the item is in a list; they're set and cleared by the convenience functions.
Photon
PtGenList, PtGenTree, PtGenTreeItem_t, PtList, PtTreeItem_t