summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/eventhandler.cc')
-rw-r--r--plugingui/eventhandler.cc23
1 files changed, 22 insertions, 1 deletions
diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc
index 696b242..fd333b8 100644
--- a/plugingui/eventhandler.cc
+++ b/plugingui/eventhandler.cc
@@ -254,10 +254,31 @@ void EventHandler::processEvents()
closeNotifier();
break;
+
+ case EventType::mouseEnter:
+ {
+ auto enterEvent = static_cast<MouseEnterEvent*>(event.get());
+ auto widget = window.find(enterEvent->x, enterEvent->y);
+ if(widget)
+ {
+ widget->mouseEnterEvent();
+ }
+ }
+ break;
+
+ case EventType::mouseLeave:
+ {
+ auto widget = window.mouseFocus();
+ if(widget)
+ {
+ widget->mouseLeaveEvent();
+ }
+ }
+ break;
}
}
- // Probe window and children to readrw as needed.
+ // Probe window and children to redraw as needed.
// NOTE: This method will invoke native->redraw() if a redraw is needed.
window.updateBuffer();
}