TopBarMenu

TopBarAddItem

Append an item to the menu bar

Syntax

Signature
xBool       TopBarAddItem( TopBarMenu *topBar, MenuItem *item );

Arguments

topBar the top bar menu.

item the menu item to append. NULL is invalid.

Return value

T on success, or F if the object is NULL or item is NULL.

Description

On success the bar takes ownership of the item, including any submenu it owns. The caller retains ownership on failure.

See also