]> Dogcows Code - chaz/openbox/blobdiff - src/bindings.hh
decor and functions set set right for !normal windows
[chaz/openbox] / src / bindings.hh
index 4da0583627d3a6ffb35daa701e6575f96476bd39..8e91b5b681323acb63fe4b48c39f2aca0d44a400 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef __binding_hh
 #define __binding_hh
 
-/*! @file binding.hh
+/*! @file bindings.hh
   @brief I dunno.. some binding stuff?
 */
 
@@ -77,11 +77,16 @@ private:
                             PyObject *callback) const;
   void assimilate(KeyBindingTree *node);
 
-  static void reset(OBBindings *self); // the timer's timeout function
+  static void resetChains(OBBindings *self); // the timer's timeout function
 
   typedef std::list <ButtonBinding*> ButtonBindingList;
   ButtonBindingList _buttons[NUM_MOUSE_CONTEXT];
 
+  void grabButton(bool grab, const Binding &b, MouseContext context,
+                  OBClient *client);
+
+  PyObject *_events[NUM_EVENTS];
+  
 public:
   //! Initializes an OBBindings object
   OBBindings();
@@ -124,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.024004 seconds and 4 git commands to generate.