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>2018-07-09 09:39:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-09 09:39:09 +0300
commit32396b316455c5b207b1103f03ddc4c8e81cfd00 (patch)
tree0ddd42d9674668a85e13e28a2c588fc5935d52d8 /source/blender/makesdna/DNA_windowmanager_types.h
parentac8aff2b28e93500d596a1fcdc2aa5089d4377c2 (diff)
WM: support for filtering modal keymap items
Modal keymap display often shows items which aren't used, add a poll funciton to hide these from the status bar.
Diffstat (limited to 'source/blender/makesdna/DNA_windowmanager_types.h')
-rw-r--r--source/blender/makesdna/DNA_windowmanager_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h
index bd2811d3306..80ad3840a8f 100644
--- a/source/blender/makesdna/DNA_windowmanager_types.h
+++ b/source/blender/makesdna/DNA_windowmanager_types.h
@@ -331,6 +331,8 @@ typedef struct wmKeyMap {
/* runtime */
/** Verify if enabled in the current context, use #WM_keymap_poll instead of direct calls. */
bool (*poll)(struct bContext *);
+ bool (*poll_modal_item)(const struct wmOperator *op, int value);
+
/** For modal, #EnumPropertyItem for now. */
const void *modal_items;
} wmKeyMap;