Function flipperzero_sys::button_menu_add_item
source · [−]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
@param button_menu ButtonMenu instance @param label text inside new button @param index value to distinct between buttons inside ButtonMenuItemCallback @param callback The callback @param type type of button to create. Differ by button drawing. Control buttons have no frames, and have more squared borders. @param callback_context The callback context
@return pointer to just-created item