diff options
Diffstat (limited to 'source/blender/editors/include/ED_screen.h')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index a2a619209db..0785b63ca37 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -62,6 +62,7 @@ struct wmMsgSubscribeKey; struct wmMsgSubscribeValue; struct wmOperatorType; struct IDProperty; +struct MenuType; /* regions */ void ED_region_do_listen( @@ -325,10 +326,18 @@ struct bUserMenu *ED_screen_user_menu_ensure(struct bContext *C); struct bUserMenuItem_Op *ED_screen_user_menu_item_find_operator( struct ListBase *lb, - struct wmOperatorType *ot, struct IDProperty *prop, short opcontext); + const struct wmOperatorType *ot, struct IDProperty *prop, short opcontext); +struct bUserMenuItem_Menu *ED_screen_user_menu_item_find_menu( + struct ListBase *lb, + const struct MenuType *mt); + void ED_screen_user_menu_item_add_operator( struct ListBase *lb, const char *ui_name, - struct wmOperatorType *ot, struct IDProperty *prop, short opcontext); + const struct wmOperatorType *ot, const struct IDProperty *prop, short opcontext); +void ED_screen_user_menu_item_add_menu( + struct ListBase *lb, const char *ui_name, + const struct MenuType *mt); + void ED_screen_user_menu_item_remove( struct ListBase *lb, struct bUserMenuItem *umi); void ED_screen_user_menu_register(void); |