1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
8 #include "eventhandler.hh"
12 OtkEventHandler::OtkEventHandler()
17 OtkEventHandler::~OtkEventHandler()
22 void OtkEventHandler::handle(const XEvent &e)
26 return keyPressHandler(e.xkey);
28 return keyReleaseHandler(e.xkey);
30 return buttonPressHandler(e.xbutton);
32 return buttonReleaseHandler(e.xbutton);
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 == otk::OBDisplay::shapeEventBase())
90 return shapeHandler((*(XShapeEvent*)&e));
97 void OtkEventHandler::clientMessageHandler(const XClientMessageEvent &)