diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-25 14:20:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-25 14:20:27 +0300 |
commit | 58362939906b31fce02b8f9598f4321e83971b7d (patch) | |
tree | 063fc98223075259e7ec2abe97ede97748d69af8 /source/blender/windowmanager/WM_types.h | |
parent | fd4d7fbf131a02862b93915d65559d66177a6f18 (diff) | |
parent | 2d46ea52cdd69f929ad7efe8e482cfc0a16de35f (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 7254301b874..8ec6438ca45 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -702,12 +702,20 @@ typedef struct wmDropBox { } wmDropBox; +/** + * Struct to store tool-tip timer and possible creation if the time is reached. + * Allows UI code to call #WM_tooltip_timer_init without each user having to handle the timer. + */ typedef struct wmTooltipState { + /** Create tooltip on this event. */ struct wmTimer *timer; + /** The region the tooltip is created in. */ struct ARegion *region_from; + /** The tooltip region. */ struct ARegion *region; + /** Create the tooltip region (assign to '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. */ + /** Exit on any event, not needed for buttons since their highlight state is used. */ bool exit_on_event; } wmTooltipState; |