aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-06 12:57:51 +0000
committerMax Horn2002-07-06 12:57:51 +0000
commit671678a6c50d9e6c8aed01e9ff86ad77ead930cc (patch)
tree73de9e88b858812c2ea9662a4e06eed0595ee5e1 /gui/dialog.cpp
parent71080f98ab69cb080c8f09349f72e969bfd5a7e5 (diff)
downloadscummvm-rg350-671678a6c50d9e6c8aed01e9ff86ad77ead930cc.tar.gz
scummvm-rg350-671678a6c50d9e6c8aed01e9ff86ad77ead930cc.tar.bz2
scummvm-rg350-671678a6c50d9e6c8aed01e9ff86ad77ead930cc.zip
added mouse over effect
svn-id: r4466
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 2cdc1f4380..31ab646236 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -43,6 +43,19 @@ void Dialog::handleClick(int x, int y, int button)
w->handleClick(button);
}
+void Dialog::handleMouseMoved(int x, int y, int button)
+{
+ Widget *w = findWidget(x - _x, y - _y);
+ if (_mouseWidget != w) {
+ if (_mouseWidget)
+ _mouseWidget->handleMouseLeft(button);
+ if (w)
+ w->handleMouseEntered(button);
+ _mouseWidget = w;
+ }
+}
+
+
/*
* Determine the widget at location (x,y) if any. Assumes the coordinates are
* in the local coordinate system, i.e. relative to the top left of the dialog.