summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-05-23 14:53:39 +0000
committeralberth <alberth@openttd.org>2010-05-23 14:53:39 +0000
commitae560aeb8b38bc32b05f9af7e3230de712ee5b5c (patch)
tree5d2967cb0f4ffffd6b68aeeb11656f6a02b44ea3 /src/window_gui.h
parent75856967a04b275eed7dd5c52a021da022565d28 (diff)
downloadopenttd-ae560aeb8b38bc32b05f9af7e3230de712ee5b5c.tar.xz
(svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr).
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 4e64cc5df..55a223581 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -657,6 +657,13 @@ public:
virtual void OnRightClick(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.
+ */
+ virtual void OnMouseDrag(Point pt, int widget) {}
+
+ /**
* A dragged 'object' has been released.
* @param pt the point inside the window where the release took place.
* @param widget the widget where the release took place.