diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-04 10:57:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-04 11:05:17 +0300 |
commit | 571aead323dd4cb84d2a39894172c119d6dfbab5 (patch) | |
tree | 0714bd7ca441e74cfeadf6172dd3644e4251f15e /source/blender/editors/include | |
parent | e913e79fb51cb48d880473c82c00ca39c73cdca2 (diff) |
UI: support immediate non-overlapping tooltips
Use these for the toolbar, since they're non-overlapping the interface,
showing them quickly isn't a problem.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index e739308bd1e..51cff1c9440 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -407,6 +407,7 @@ typedef bool (*uiMenuStepFunc)(struct bContext *C, int direction, void *arg1); /* interface_query.c */ +bool UI_but_is_tooltip_no_overlap(const uiBut *but); bool UI_but_is_tool(const uiBut *but); #define UI_but_is_decorator(but) \ ((but)->func == ui_but_anim_decorate_cb) @@ -1281,6 +1282,8 @@ void UI_tooltip_free(struct bContext *C, struct bScreen *sc, struct ARegion *ar) /* How long before a tool-tip shows. */ #define UI_TOOLTIP_DELAY 0.5 +/* For cases when the tooltips don't overlap, use an 'instant' tip. */ +#define UI_TOOLTIP_DELAY_QUICK 0.05 /* Float precision helpers */ #define UI_PRECISION_FLOAT_MAX 6 |