Home | All Classes | Grouped Classes | Index | Search

CL_Menu::create_node

Convenience function for easy creation of menus. Creates needed menus, items and nodes automatically

	CL_MenuNode* create_node(
		const std::string& path, const std::string& labels=std::string());

Parameters:

std::string path
path of the menu node to create. Ex. "File/Open"
std::string labels
labels to give menu items. Ex. "Fil/Aben". If empty, the path is used for labels.

See also:

CL_Menu | CL_MenuNode



Questions or comments, write to the ClanLib mailing list.