Home | All Classes | Grouped Classes | Index | Search

CL_TreeNode::insert_item

Inserts an item at index. Inserts an item (uses any type of component) at index.

	CL_TreeNode* insert_item(
		const std::string& text, int index = -1);

	CL_TreeNode* insert_item(
		CL_Component* component, bool delete_component = false, int index = -1);

Return value:

the node of the item.the node of the item.

Detailed description:

If index is negative, text is inserted at the end of the list.

If index is negative, text is inserted at the end of the list. Set delete_component to true if you want the component to be deleted when this node gets deleted.

See also:

CL_TreeNode



Questions or comments, write to the ClanLib mailing list.