Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-10-08 23:06:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-08 23:06:32 +0400
commit5c867406aa66a1d89260c233a6bbc1a2a7912dbe (patch)
tree0cce14e7a49cb61b6114b69f457ca6a920db8de4 /source/blender/windowmanager/WM_api.h
parent3ebd58673fb9a8c5ef13048b2e8e8a4cb7bb3a4e (diff)
menus are now global (like operators), so for eg, the info add menu and the 3D add menu can be shared.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index b29dbec6364..eaf8b00163c 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -41,6 +41,7 @@ struct wmNotifier;
struct rcti;
struct PointerRNA;
struct EnumPropertyItem;
+struct MenuType;
typedef struct wmJob wmJob;
@@ -187,6 +188,12 @@ char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struc
void WM_operator_bl_idname(char *to, const char *from);
void WM_operator_py_idname(char *to, const char *from);
+/* *************** menu types ******************** */
+struct MenuType *WM_menutype_find(const char *idname, int quiet);
+int WM_menutype_add(struct MenuType* mt);
+void WM_menutype_freelink(struct MenuType* mt);
+void WM_menutype_free(void);
+
/* default operator callbacks for border/circle/lasso */
int WM_border_select_invoke (struct bContext *C, struct wmOperator *op, struct wmEvent *event);
int WM_border_select_modal (struct bContext *C, struct wmOperator *op, struct wmEvent *event);