]>
Dogcows Code - chaz/openbox/blob - otk/eventhandler.cc
7e1ad745c2ad37ef1726ee6716164496f0b78dca
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 motionHandler(e
.xmotion
);
36 return enterHandler(e
.xcrossing
);
38 return leaveHandler(e
.xcrossing
);
40 return focusHandler(e
.xfocus
);
42 return unfocusHandler(e
.xfocus
);
44 return exposeHandler(e
.xexpose
);
46 return graphicsExposeHandler(e
.xgraphicsexpose
);
48 return noExposeEventHandler(e
.xnoexpose
);
49 case CirculateRequest
:
50 return circulateRequestHandler(e
.xcirculaterequest
);
51 case ConfigureRequest
:
52 return configureRequestHandler(e
.xconfigurerequest
);
54 return mapRequestHandler(e
.xmaprequest
);
56 return resizeRequestHandler(e
.xresizerequest
);
58 return circulateHandler(e
.xcirculate
);
60 return configureHandler(e
.xconfigure
);
62 return createHandler(e
.xcreatewindow
);
64 return destroyHandler(e
.xdestroywindow
);
66 return gravityHandler(e
.xgravity
);
68 return mapHandler(e
.xmap
);
70 return mappingHandler(e
.xmapping
);
72 return reparentHandler(e
.xreparent
);
74 return unmapHandler(e
.xunmap
);
75 case VisibilityNotify
:
76 return visibilityHandler(e
.xvisibility
);
78 return colorMapHandler(e
.xcolormap
);
80 return clientMessageHandler(e
.xclient
);
82 return propertyHandler(e
.xproperty
);
84 return selectionClearHandler(e
.xselectionclear
);
86 return selectionHandler(e
.xselection
);
87 case SelectionRequest
:
88 return selectionRequestHandler(e
.xselectionrequest
);
91 if (e
.type
== otk::OBDisplay::shapeEventBase())
92 return shapeHandler((*(XShapeEvent
*)&e
));
95 if (e
.type
== otk::OBDisplay::xkbEventBase())
96 return xkbHandler((*(XkbEvent
*)&e
));
103 void OtkEventHandler::clientMessageHandler(const XClientMessageEvent
&)
This page took 0.042741 seconds and 4 git commands to generate.