diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-30 13:08:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-30 13:08:08 +0300 |
commit | 41176cd3d820649488ec5a5475d5dc7e97a01a59 (patch) | |
tree | 31d8df071e656f1b629eefc4281c74d28ec2d639 /source/blender/editors/include/ED_screen.h | |
parent | 62ff53ff19e36da0203915d04fc0ce295002f173 (diff) |
UI: support adding menu's to favourites
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); |