diff options
author | terkhen <terkhen@openttd.org> | 2010-07-11 11:00:09 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-07-11 11:00:09 +0000 |
commit | 9cf9bb9b920c682515ddbd5ce56f1debe00ebd0d (patch) | |
tree | ad192b72495c4ceae20a744bb81b8298cd1dcc48 /src/window_gui.h | |
parent | 10fbb87823dd689844c93ce8b0d43a5098acdba9 (diff) | |
download | openttd-9cf9bb9b920c682515ddbd5ce56f1debe00ebd0d.tar.xz |
(svn r20121) -Add: OnHover method for windows.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index f25ebba08..38129cbfc 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -658,6 +658,13 @@ public: virtual void OnRightClick(Point pt, int widget) {} /** + * The mouse is hovering over a widget in the window, perform an action for it, like opening a custom tooltip. + * @param pt The point where the mouse is hovering. + * @param widget The widget where the mouse is hovering. + */ + virtual void OnHover(Point pt, int widget) {} + + /** * An 'object' is being dragged at the provided position, highlight the target if possible. * @param pt The point inside the window that the mouse hovers over. * @param widget The widget the mouse hovers over. |