diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-22 23:08:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-22 23:13:26 +0300 |
commit | 62cd5e0b7bf151c757c5607b5081ba677b5240a4 (patch) | |
tree | 48a0b844fbdf5b19320a4af1de0ac35ca7c372a9 /source/blender/editors/include | |
parent | 46375b8e03b7ac841af4d3cb16eb1561f959bdb7 (diff) |
UI: support for center popovers over buttons
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index b02ab8f0841..38d89a4099d 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -108,7 +108,8 @@ enum { UI_DIR_DOWN = (1 << 1), UI_DIR_LEFT = (1 << 2), UI_DIR_RIGHT = (1 << 3), - UI_DIR_CENTER_Y = (1 << 4), + UI_DIR_CENTER_X = (1 << 4), + UI_DIR_CENTER_Y = (1 << 5), UI_DIR_ALL = (UI_DIR_UP | UI_DIR_DOWN | UI_DIR_LEFT | UI_DIR_RIGHT), }; @@ -140,6 +141,7 @@ enum { #define UI_BLOCK_POPUP_HOLD (1 << 18) #define UI_BLOCK_LIST_ITEM (1 << 19) #define UI_BLOCK_RADIAL (1 << 20) +#define UI_BLOCK_POPOVER (1 << 21) /* uiPopupBlockHandle->menuretval */ #define UI_RETURN_CANCEL (1 << 0) /* cancel all menus cascading */ |