]> Dogcows Code - chaz/openbox/blob - otk/eventhandler.cc
event handling classes
[chaz/openbox] / otk / eventhandler.cc
1 #include "eventhandler.hh"
2
3 namespace otk {
4
5 OtkEventHandler::OtkEventHandler()
6 {
7 }
8
9
10 OtkEventHandler::~OtkEventHandler()
11 {
12 }
13
14
15 int OtkEventHandler::handle(const XEvent &e)
16 {
17 switch(e.type){
18 case KeyPress:
19 return keyPressHandler(e.xkey);
20 case KeyRelease:
21 return keyReleaseHandler(e.xkey);
22 case ButtonPress:
23 return buttonPressHandler(e.xbutton);
24 case ButtonRelease:
25 return buttonReleaseHandler(e.xbutton);
26 case EnterNotify:
27 return enterHandler(e.xcrossing);
28 case LeaveNotify:
29 return leaveHandler(e.xcrossing);
30 case FocusIn:
31 return focusHandler(e.xfocus);
32 case FocusOut:
33 return unfocusHandler(e.xfocus);
34 case Expose:
35 return exposeHandler(e.xexpose);
36 case GraphicsExpose:
37 return graphicsExposeHandler(e.xgraphicsexpose);
38 case NoExpose:
39 return noExposeEventHandler(e.xnoexpose);
40 case CirculateRequest:
41 return circulateRequestHandler(e.xcirculaterequest);
42 case ConfigureRequest:
43 return configureRequestHandler(e.xconfigurerequest);
44 case MapRequest:
45 return mapRequestHandler(e.xmaprequest);
46 case ResizeRequest:
47 return resizeRequestHandler(e.xresizerequest);
48 case CirculateNotify:
49 return circulateHandler(e.xcirculate);
50 case ConfigureNotify:
51 return configureHandler(e.xconfigure);
52 case CreateNotify:
53 return createHandler(e.xcreatewindow);
54 case DestroyNotify:
55 return destroyHandler(e.xdestroywindow);
56 case GravityNotify:
57 return gravityHandler(e.xgravity);
58 case MapNotify:
59 return mapHandler(e.xmap);
60 case MappingNotify:
61 return mappingHandler(e.xmapping);
62 case ReparentNotify:
63 return reparentHandler(e.xreparent);
64 case UnmapNotify:
65 return unmapHandler(e.xunmap);
66 case VisibilityNotify:
67 return visibilityHandler(e.xvisibility);
68 case ColormapNotify:
69 return colorMapHandler(e.xcolormap);
70 case ClientMessage:
71 return clientMessageHandler(e.xclient);
72 case PropertyNotify:
73 return propertyHandler(e.xproperty);
74 case SelectionClear:
75 return selectionClearHandler(e.xselectionclear);
76 case SelectionNotify:
77 return selectionHandler(e.xselection);
78 case SelectionRequest:
79 return selectionRequestHandler(e.xselectionrequest);
80 };
81 return 0;
82 }
83
84 }
This page took 0.039504 seconds and 5 git commands to generate.