Syntax
xBool ButtonBarSetCargo( ButtonBar *buttonBar, void *cargo );
Arguments
buttonBar the button bar.
cargo the application data pointer, or NULL to clear it.
Return value
T on success, or F if the object is NULL.
Description
The application manages the lifetime of the data. A button's callback receives its own `MenuItem *` and can read that item's separate cargo with `MenuItemGetCargo()`.