1 #include "eventdispatcher.hh"
6 OtkEventDispatcher::OtkEventDispatcher()
10 OtkEventDispatcher::~OtkEventDispatcher()
14 void OtkEventDispatcher::clearAllHandlers(void)
19 void OtkEventDispatcher::registerHandler(Window id, OtkEventHandler *handler)
21 _map.insert(std::pair<Window, OtkEventHandler*>(id, handler));
24 void OtkEventDispatcher::clearHandler(Window id)
29 void OtkEventDispatcher::dispatchEvents(void)
32 OtkEventHandler *handler;
33 OtkEventMap::iterator it;
35 while (XPending(OBDisplay::display)) {
36 XNextEvent(OBDisplay::display, &e);
37 it = _map.find(e.xany.window);