diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 07:55:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 07:55:52 +0000 |
| commit | 56d7b547ae156e17c8e03ada3b80468f5a0b2605 (patch) | |
| tree | 155caca7568be2949c7f99468e8cae55327312cb /src/actions.hh | |
| parent | 925262bee2d1edfbec1c3fb1725f09cc926b4c7d (diff) | |
button press/releases WORK
Diffstat (limited to 'src/actions.hh')
| -rw-r--r-- | src/actions.hh | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/src/actions.hh b/src/actions.hh index 4c001be7..924a8dc0 100644 --- a/src/actions.hh +++ b/src/actions.hh @@ -9,6 +9,7 @@ #include "otk/display.hh" #include "otk/point.hh" #include "otk/rect.hh" +#include "otk/eventhandler.hh" namespace ob { @@ -17,7 +18,7 @@ namespace ob { When these actions are fired, hooks to the guile engine are fired so that guile code is run. */ -class OBActions { +class OBActions : public otk::OtkEventHandler { public: struct MousePressAction { Window win; @@ -28,7 +29,7 @@ public: private: // milliseconds XXX: config option - static const unsigned int DOUBLECLICKDELAY = 200; + static const unsigned int DOUBLECLICKDELAY; //! The last 2 button presses processed for CLICKs /*! @@ -46,27 +47,11 @@ public: OBActions(); virtual ~OBActions(); - //! Notify that a mouse button press has occured on a window. - /*! - @param win The window on which the action was performed. - @param modifiers The modifier state for the action. - @param button The mouse button the action is for. - @param time The time at which the event occured (from the XEvent). - */ - void bpress(Window win, unsigned int modifiers, unsigned int button, - Time time); + virtual void buttonPressHandler(const XButtonEvent &e); + virtual void buttonReleaseHandler(const XButtonEvent &e); + + - //! Notify that a mouse button release has occured on a window. - /*! - @param win The window on which the action was performed. - @param area The area of the window on which the action was performed. - @param mpos The position of the mouse pointer relative to the root window. - @param modifiers The modifier state for the action. - @param button The mouse button the action is for. - @param time The time at which the event occured (from the XEvent). - */ - void brelease(Window win, const otk::Rect &area, const otk::Point &mpos, - unsigned int modifiers, unsigned int button, Time time); //! Notify that a mouse enter action has occured on a window. /*! |
