C4 Engine
C4 Engine API Documentation


Defined in:  C4Widgets.h
Adds an item to the beginning of a tree.

void PrependListItem(TreeItemWidget *item);

item The item to add to the tree.
The PrependTreeItem function adds an item to the beginning of a tree at the top level of the hierarchy.

Note that unless that kListItemsEnabled flag has been set with the ListWidget::SetListFlags function, the item added to the tree is disabled before the PrependTreeItem function returns so that clicks go through to the tree widget. To allow an item in a tree or any of its subwidgets to receive events, call the Widget::EnableWidget function for that item after adding it to the tree.
See Also