diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-25 08:17:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-25 08:22:21 +0300 |
commit | 693b41eb17557ba12e7c64c5ba589c499ff45c4d (patch) | |
tree | bb85c46690d1de4c57c3f4f3f614536b3a655068 /source/blender/makesdna/DNA_screen_types.h | |
parent | 9b32248894d133c6437174e1470dfefa23a10b87 (diff) |
UI: change tool-tips to be stored in the screen
Move timer and tip out of button code,
now the only requests a tooltip,
passing a creation callback to run.
Needed for manipulators in 2.8,
also helps de-duplicate logic - since we never want
multiple tool-tips showing at once.
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index a33aad4f343..a7718883438 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -44,6 +44,7 @@ struct PanelType; struct Scene; struct uiLayout; struct wmTimer; +struct wmTooltipState; typedef struct bScreen { ID id; @@ -76,6 +77,8 @@ typedef struct bScreen { struct wmTimer *animtimer; /* if set, screen has timer handler added in window */ void *context; /* context callback */ + + struct wmTooltipState *tool_tip; /* runtime */ } bScreen; typedef struct ScrVert { |