Syntax
MenuItem *TopBarGetItem( const TopBarMenu *topBar, int position );
Arguments
topBar the top bar menu.
position the one-based position of an existing item.
Return value
The item at position, or NULL if the object is NULL or position is outside the item list.
Description
The bar retains ownership of the item. Use the `MenuItem` setters to change its attributes while it belongs to the bar.