1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 @brief The action interface for user-available actions
9 #include "otk/point.hh"
10 #include "otk/rect.hh"
11 #include "otk/eventhandler.hh"
19 //! The action interface for user-available actions
21 When these actions are fired, hooks to the guile engine are fired so that
24 class OBActions
: public otk::OtkEventHandler
{
26 // update the same enum in openbox.i when making changes to this
39 struct ButtonReleaseAction
{
43 ButtonReleaseAction() { win
= 0; button
= 0; time
= 0; }
47 // milliseconds XXX: config option
48 static const unsigned int DOUBLECLICKDELAY
;
50 //! The mouse button currently being watched from a press for a CLICK
52 //! The last button release processed for CLICKs
53 ButtonReleaseAction _release
;
56 //! Constructs an OBActions object
58 //! Destroys the OBActions object
61 virtual void buttonPressHandler(const XButtonEvent
&e
);
62 virtual void buttonReleaseHandler(const XButtonEvent
&e
);
64 virtual void enterHandler(const XCrossingEvent
&e
);
65 virtual void leaveHandler(const XCrossingEvent
&e
);
67 virtual void keyPressHandler(const XKeyEvent
&e
);
69 virtual void motionHandler(const XMotionEvent
&e
);
74 #endif // __actions_hh