- bool addButton(const std::string &but, MouseContext context,
- MouseAction action, PyObject *callback);
+ bool grabKeyboard(int screen, PyObject *callback);
+ void ungrabKeyboard();
+
+ bool grabPointer(int screen);
+ void ungrabPointer();
+
+ bool addButton(const std::string &but, MouseContext::MC context,
+ MouseAction::MA action, PyObject *callback);
+
+ void grabButtons(bool grab, Client *client);
+
+ //! Removes all button bindings
+ void removeAllButtons();
+
+ void fireButton(MouseData *data);
+
+ //! Bind a callback for an event
+ bool addEvent(EventAction::EA action, PyObject *callback);
+
+ //! Unbind the callback function from an event
+ bool removeEvent(EventAction::EA action, PyObject *callback);