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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-16 10:44:21 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-16 10:44:21 +0300
commit1c1c89262eea0ab4eb62788fd4daf1023ffbf8e1 (patch)
tree2b0fe1f1a0e45adb2522711c974186efb87efe75 /source/blender/windowmanager/WM_types.h
parentd272300da95648ccc5b383ab9debb19707aa48e3 (diff)
WM: changed WM_operator_call to take an argument, which specifies in
which context to run the operator: WM_OP_DEFAULT, WM_OP_REGION_WIN, WM_OP_AREA or WM_OP_SCREEN. This also replaces WM_operator_call_rwin since it is more general. This is useful for buttons and popup menus to run operators, and also used by a new function to lookup the keymap item for that operator in the right context.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index 7307cb4bf23..3afb3369466 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -38,6 +38,14 @@
/* flag */
#define OPTYPE_REGISTER 1
+/* context to call operator in for WM_operator_call */
+enum {
+ WM_OP_DEFAULT,
+ WM_OP_REGION_WIN,
+ WM_OP_AREA,
+ WM_OP_SCREEN
+};
+
/* ************** wmEvent ************************ */
/* each event should have full modifier state */