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
41 struct ButtonReleaseAction {
45 ButtonReleaseAction() { win = 0; button = 0; time = 0; }
49 // milliseconds XXX: config option
50 static const unsigned int DOUBLECLICKDELAY;
52 //! The mouse button currently being watched from a press for a CLICK
54 //! The last button release processed for CLICKs
55 ButtonReleaseAction _release;
58 //! Constructs an OBActions object
60 //! Destroys the OBActions object
63 virtual void buttonPressHandler(const XButtonEvent &e);
64 virtual void buttonReleaseHandler(const XButtonEvent &e);
66 virtual void enterHandler(const XCrossingEvent &e);
67 virtual void leaveHandler(const XCrossingEvent &e);
69 virtual void keyPressHandler(const XKeyEvent &e);
71 virtual void motionHandler(const XMotionEvent &e);
73 virtual void mapRequestHandler(const XMapRequestEvent &e);
74 virtual void unmapHandler(const XUnmapEvent &e);
75 virtual void destroyHandler(const XDestroyWindowEvent &e);
80 #endif // __actions_hh