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