diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-13 19:39:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-13 20:15:13 +0300 |
commit | af0fc660499a63b367dcc63222d0baee93aa665c (patch) | |
tree | 823952ab0763af43b962d4f249b8c37c3ab8ef93 /source/blender/windowmanager/WM_api.h | |
parent | 6845306c68a874cb1a9171d6a08a1578eea41a8a (diff) |
WM: register global list of panel types
Allows simple lookups for popovers.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 68cbc3828fc..32900b75514 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -441,6 +441,13 @@ void WM_menutype_freelink(struct MenuType *mt); void WM_menutype_free(void); bool WM_menutype_poll(struct bContext *C, struct MenuType *mt); +/* wm_panel_type.c */ +void WM_paneltype_init(void); +void WM_paneltype_clear(void); +struct PanelType *WM_paneltype_find(const char *idname, bool quiet); +bool WM_paneltype_add(struct PanelType *mt); +void WM_paneltype_remove(struct PanelType *mt); + /* wm_gesture_ops.c */ int WM_gesture_border_invoke (struct bContext *C, struct wmOperator *op, const struct wmEvent *event); int WM_gesture_border_modal (struct bContext *C, struct wmOperator *op, const struct wmEvent *event); |