- //! Finds a keybinding and returns its id or '< 0' if it isn't found.
- /*!
- @return -1 if the keybinding was not found but does not conflict with
- any others; -2 if the keybinding conflicts with another.
- */
- int find_key(const StringVect &keylist);
+ void fireKey(int screen, unsigned int modifiers,unsigned int key, Time time);
+
+ void setResetKey(const std::string &key);
+
+ void grabKeys(bool grab);
+
+ bool addButton(const std::string &but, MouseContext context,
+ MouseAction action, PyObject *callback);
+
+ void grabButtons(bool grab, OBClient *client);
+
+ //! Removes all button bindings
+ void removeAllButtons();
+
+ void fireButton(ButtonData *data);
+
+ //! Bind a callback for an event
+ bool addEvent(EventAction action, PyObject *callback);