Menu: code format
This commit is contained in:
parent
e213954d2d
commit
23478fd175
@ -33,7 +33,8 @@ MenuItem* menu_item_alloc_menu(const char* label, void* icon) {
|
||||
return menu_item;
|
||||
}
|
||||
|
||||
MenuItem* menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context) {
|
||||
MenuItem*
|
||||
menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context) {
|
||||
MenuItem* menu_item = menu_item_alloc();
|
||||
|
||||
menu_item->type = MenuItemTypeFunction;
|
||||
|
@ -9,13 +9,14 @@ typedef enum {
|
||||
} MenuItemType;
|
||||
|
||||
typedef struct MenuItem MenuItem;
|
||||
typedef void (*MenuItemCallback)(void *context);
|
||||
typedef void (*MenuItemCallback)(void* context);
|
||||
|
||||
ARRAY_DEF(MenuItemArray, MenuItem*, M_PTR_OPLIST);
|
||||
|
||||
MenuItem* menu_item_alloc_menu(const char* label, void* icon);
|
||||
|
||||
MenuItem* menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context);
|
||||
MenuItem*
|
||||
menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context);
|
||||
|
||||
void menu_item_release(MenuItem* menu_item);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user