diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-20 06:50:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-20 06:58:06 +0300 |
commit | 51f0c3fadf085b087a9f98a59db41af6aa632a57 (patch) | |
tree | ef30442435a4ad442ca307ab2d6910c1afba84a1 /source/blender/editors/include | |
parent | b0d61ea77089adc1722ee0e23e4be323c4d6899c (diff) |
UI: move tooltip API to public header
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 0e936fdd313..c20a61abea5 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1110,6 +1110,12 @@ void UI_butstore_register(uiButStore *bs_handle, uiBut **but_p); bool UI_butstore_register_update(uiBlock *block, uiBut *but_dst, const uiBut *but_src); void UI_butstore_unregister(uiButStore *bs_handle, uiBut **but_p); +/* ui_interface_region_tooltip.c */ +struct ARegion *UI_tooltip_create_from_button(struct bContext *C, struct ARegion *butregion, uiBut *but); +void UI_tooltip_free(struct bContext *C, struct ARegion *ar); + +/* How long before a tool-tip shows. */ +#define UI_TOOLTIP_DELAY 0.5 /* Float precision helpers */ #define UI_PRECISION_FLOAT_MAX 6 |