diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-23 20:46:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-23 20:48:28 +0300 |
commit | 933a0835875c71dc177227c87e8bbe281f0a7f55 (patch) | |
tree | 452babec7d8b3dd536a5ed7f5bb0980aa44bd3e3 /source/blender/editors/include/UI_interface.h | |
parent | b642b510e110abfe15d37344e67b07f98d73a273 (diff) |
UI: popup panel operator, as we have for menus
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 47ecbca227b..142f4590c16 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -42,6 +42,7 @@ struct ID; struct IDProperty; struct ListBase; struct ARegion; +struct ARegionType; struct ScrArea; struct bScreen; struct wmEvent; @@ -428,6 +429,12 @@ void UI_popup_menu_but_set(uiPopupMenu *pup, struct ARegion *butregion, uiBut *b typedef struct uiPopover uiPopover; +void UI_popover_panel_from_type( + struct bContext *C, struct uiLayout *layout, struct PanelType *pt); +int UI_popover_panel_invoke( + struct bContext *C, int space_id, int region_id, const char *idname, + struct ReportList *reports); + 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); @@ -836,6 +843,8 @@ struct PanelCategoryDyn *UI_panel_category_find_mouse_over(struct ARegion *ar, void UI_panel_category_clear_all(struct ARegion *ar); void UI_panel_category_draw_all(struct ARegion *ar, const char *category_id_active); +struct PanelType *UI_paneltype_find(int space_id, int region_id, const char *idname); + /* Handlers * * Handlers that can be registered in regions, areas and windows for |