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/windowmanager/WM_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/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index cd78a519dbf..ded96619a88 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -690,6 +690,15 @@ typedef struct wmDropBox { } wmDropBox; +typedef struct wmTooltipState { + struct wmTimer *timer; + struct ARegion *region_from; + struct ARegion *region; + struct ARegion *(*init)(struct bContext *, struct ARegion *, bool *r_exit_on_event); + /* Exit on any event, not needed for buttons since their highlight state is used. */ + bool exit_on_event; +} wmTooltipState; + /* *************** migrated stuff, clean later? ************** */ typedef struct RecentFile { |