diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-20 23:34:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-20 23:39:14 +0300 |
commit | e7895bac07f32d4f66184aff2ed2c08956daaac7 (patch) | |
tree | c817ebf7e0415253393b12aad58e5719c4e8ffba /source/blender/editors/include/UI_interface.h | |
parent | 46514cf865238c6bbed70971da5ab8e1a8ef9fc2 (diff) |
UI: support for custom keymaps for popovers
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 417aca1210e..47ecbca227b 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -74,6 +74,7 @@ struct wmDrag; struct wmEvent; struct wmManipulator; struct wmMsgBus; +struct wmKeyMap; typedef struct uiBut uiBut; typedef struct uiBlock uiBlock; @@ -427,8 +428,8 @@ void UI_popup_menu_but_set(uiPopupMenu *pup, struct ARegion *butregion, uiBut *b typedef struct uiPopover uiPopover; -uiPopover *UI_popover_begin(struct bContext *C) ATTR_NONNULL(); -void UI_popover_end(struct bContext *C, struct uiPopover *head); +uiPopover *UI_popover_begin(struct bContext *C) ATTR_NONNULL(1); +void UI_popover_end(struct bContext *C, struct uiPopover *head, struct wmKeyMap *keymap); struct uiLayout *UI_popover_layout(uiPopover *head); void UI_popover_once_clear(uiPopover *pup); |