1 #include "eventdispatcher.hh"
7 OtkEventDispatcher::OtkEventDispatcher()
12 OtkEventDispatcher::~OtkEventDispatcher()
16 void OtkEventDispatcher::clearAllHandlers(void)
21 void OtkEventDispatcher::registerHandler(Window id, OtkEventHandler *handler)
23 _map.insert(std::pair<Window, OtkEventHandler*>(id, handler));
26 void OtkEventDispatcher::clearHandler(Window id)
31 void OtkEventDispatcher::dispatchEvents(void)
34 OtkEventHandler *handler;
35 OtkEventMap::iterator it;
37 while (XPending(OBDisplay::display)) {
38 XNextEvent(OBDisplay::display, &e);
39 it = _map.find(e.xany.window);