pub unsafe extern "C" fn button_menu_add_item(
button_menu: *mut ButtonMenu,
label: *const c_char,
index: i32,
callback: ButtonMenuItemCallback,
type_: ButtonMenuItemType,
callback_context: *mut c_void,
) -> *mut ButtonMenuItemExpand description
Add item to button menu instance
§Arguments
button_menu- ButtonMenu instancelabel- text inside new buttonindex- value to distinct between buttons inside ButtonMenuItemCallbackcallback- The callbacktype- type of button to create. Differ by button drawing. Control buttons have no frames, and have more squared borders.callback_context- The callback context
§Returns
pointer to just-created item