From 9cf9bb9b920c682515ddbd5ce56f1debe00ebd0d Mon Sep 17 00:00:00 2001 From: terkhen Date: Sun, 11 Jul 2010 11:00:09 +0000 Subject: (svn r20121) -Add: OnHover method for windows. --- src/window_gui.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/window_gui.h') 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 @@ -657,6 +657,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. -- cgit v1.2.3-54-g00ecf