diff options
author | Valentin <Poulpator> | 2020-03-02 18:05:59 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-03-02 18:07:34 +0300 |
commit | 7b8db971d42f6d6b7b1c74959758266ce8c859e0 (patch) | |
tree | 1ba8b885eaa68a50cdfd4ca37a229ae46c21e00a /source/blender/editors/include/ED_select_utils.h | |
parent | 51bce18b6f97dd6c21899e43f4ee4491d0061e92 (diff) |
Cleanup: Use generics properties for arrow keys navigation (walk-select)
This patch refactors arrow keys navigation to move properties and enum
to generic ED_select_utils.h and property to
WM_operator_properties_select_walk_direction()
No functional change
Reviewed By: Julian Eisel
Differential Revision: https://developer.blender.org/D4771
Diffstat (limited to 'source/blender/editors/include/ED_select_utils.h')
-rw-r--r-- | source/blender/editors/include/ED_select_utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_select_utils.h b/source/blender/editors/include/ED_select_utils.h index 9a4846391c2..9c7cc0ef7a2 100644 --- a/source/blender/editors/include/ED_select_utils.h +++ b/source/blender/editors/include/ED_select_utils.h @@ -34,6 +34,13 @@ enum { SEL_INVERT = 3, }; +typedef enum WalkSelectDirection { + UI_SELECT_WALK_UP, + UI_SELECT_WALK_DOWN, + UI_SELECT_WALK_LEFT, + UI_SELECT_WALK_RIGHT, +} WalkSelectDirections; + /** See #WM_operator_properties_select_operation */ typedef enum { SEL_OP_ADD = 1, |