X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Feventhandler.hh;h=9308ed03fb28d3668df9b0df501a0da5f48c685e;hb=6a80c577b031604c92e68327545153ae28ee3ac8;hp=bb4f6d6ba4fae9eee3c9093210e13353fc8bab36;hpb=1d897f432e54400cb2a0e1499712782b336fd728;p=chaz%2Fopenbox diff --git a/otk/eventhandler.hh b/otk/eventhandler.hh index bb4f6d6b..9308ed03 100644 --- a/otk/eventhandler.hh +++ b/otk/eventhandler.hh @@ -11,7 +11,7 @@ extern "C" { namespace otk { -class OtkEventHandler{ +class OtkEventHandler { public: //! Dispatches events to one of the other handlers based on their type. virtual void handle(const XEvent &e); @@ -28,6 +28,9 @@ public: //! Called whenever a button of the pointer is released. virtual void buttonReleaseHandler(const XButtonEvent &) {} + //! Called whenever the pointer moved + virtual void motionHandler(const XMotionEvent &) {} + //! Called whenever the pointer enters a window. virtual void enterHandler(const XCrossingEvent &) {} @@ -118,14 +121,14 @@ public: #if defined(SHAPE) || defined(DOXYGEN_IGNORE) //! Called when a shape extention event fires - virtual void shapeHandler(const XShapeEvent &) {}; + virtual void shapeHandler(const XShapeEvent &) {} #endif // SHAPE virtual ~OtkEventHandler(); protected: - /*! Constructor for the XEventHandler class. - This is protected so that XEventHandlers can't be instantiated on their + /*! Constructor for the OtkEventHandler class. + This is protected so that OtkEventHandlers can't be instantiated on their own. */ OtkEventHandler();