]> Dogcows Code - chaz/openbox/blobdiff - src/bindings.hh
put event bindings in OBBindings too
[chaz/openbox] / src / bindings.hh
index 71df301105343c8fc1eeaf8fe37bbde8c757fc9b..8e91b5b681323acb63fe4b48c39f2aca0d44a400 100644 (file)
@@ -84,6 +84,8 @@ private:
 
   void grabButton(bool grab, const Binding &b, MouseContext context,
                   OBClient *client);
+
+  PyObject *_events[NUM_EVENTS];
   
 public:
   //! Initializes an OBBindings object
@@ -127,6 +129,17 @@ public:
   void removeAllButtons();
 
   void fireButton(ButtonData *data);
+
+  //! Bind a callback for an event
+  bool addEvent(EventAction action, PyObject *callback);
+
+  //! Unbind the callback function from an event
+  bool removeEvent(EventAction action);
+
+  //! Remove all callback functions
+  void removeAllEvents();
+
+  void fireEvent(EventData *data);
 };
 
 }
This page took 0.023712 seconds and 4 git commands to generate.