1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 #include "eventhandler.hh"
10 EventHandler::EventHandler()
15 EventHandler::~EventHandler()
20 void EventHandler::handle(const XEvent &e)
24 return keyPressHandler(e.xkey);
26 return keyReleaseHandler(e.xkey);
28 return buttonPressHandler(e.xbutton);
30 return buttonReleaseHandler(e.xbutton);
32 return motionHandler(e.xmotion);
34 return enterHandler(e.xcrossing);
36 return leaveHandler(e.xcrossing);
38 return focusHandler(e.xfocus);
40 return unfocusHandler(e.xfocus);
42 return exposeHandler(e.xexpose);
44 return graphicsExposeHandler(e.xgraphicsexpose);
46 return noExposeEventHandler(e.xnoexpose);
47 case CirculateRequest:
48 return circulateRequestHandler(e.xcirculaterequest);
49 case ConfigureRequest:
50 return configureRequestHandler(e.xconfigurerequest);
52 return mapRequestHandler(e.xmaprequest);
54 return resizeRequestHandler(e.xresizerequest);
56 return circulateHandler(e.xcirculate);
58 return configureHandler(e.xconfigure);
60 return createHandler(e.xcreatewindow);
62 return destroyHandler(e.xdestroywindow);
64 return gravityHandler(e.xgravity);
66 return mapHandler(e.xmap);
68 return mappingHandler(e.xmapping);
70 return reparentHandler(e.xreparent);
72 return unmapHandler(e.xunmap);
73 case VisibilityNotify:
74 return visibilityHandler(e.xvisibility);
76 return colorMapHandler(e.xcolormap);
78 return clientMessageHandler(e.xclient);
80 return propertyHandler(e.xproperty);
82 return selectionClearHandler(e.xselectionclear);
84 return selectionHandler(e.xselection);
85 case SelectionRequest:
86 return selectionRequestHandler(e.xselectionrequest);
89 if (e.type == display->shapeEventBase())
90 return shapeHandler((*(XShapeEvent*)&e));
93 if (e.type == display->xkbEventBase())
94 return xkbHandler((*(XkbEvent*)&e));
101 void EventHandler::clientMessageHandler(const XClientMessageEvent &)