Menu: code format

This commit is contained in:
Aleksandr Kutuzov 2020-10-16 16:11:51 +03:00
parent e213954d2d
commit 23478fd175
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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);