diff options
author | Max Horn | 2002-07-06 12:57:51 +0000 |
---|---|---|
committer | Max Horn | 2002-07-06 12:57:51 +0000 |
commit | 671678a6c50d9e6c8aed01e9ff86ad77ead930cc (patch) | |
tree | 73de9e88b858812c2ea9662a4e06eed0595ee5e1 /gui/dialog.cpp | |
parent | 71080f98ab69cb080c8f09349f72e969bfd5a7e5 (diff) | |
download | scummvm-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.cpp | 13 |
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. |