00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00026 #ifndef FBTK_EVENTHANDLER_HH
00027 #define FBTK_EVENTHANDLER_HH
00028
00029 #include <X11/Xlib.h>
00030
00031 namespace FbTk {
00032
00033
00035
00044 class EventHandler {
00045 public:
00046 virtual ~EventHandler() { }
00047
00051 virtual void handleEvent(XEvent &) { }
00052 virtual void buttonPressEvent(XButtonEvent &) { }
00053 virtual void buttonReleaseEvent(XButtonEvent &) { }
00054 virtual void exposeEvent(XExposeEvent &) { }
00055 virtual void motionNotifyEvent(XMotionEvent &) { }
00056 virtual void keyPressEvent(XKeyEvent &) { }
00057 virtual void keyReleaseEvent(XKeyEvent &) { }
00058 virtual void leaveNotifyEvent(XCrossingEvent &) { }
00059 virtual void enterNotifyEvent(XCrossingEvent &) { }
00060 };
00061
00062 }
00063
00064 #endif // FBTK_EVENTHANDLER_HH