]> Dogcows Code - chaz/openbox/blobdiff - src/bindings.hh
so close to keybindings. wont link for now.
[chaz/openbox] / src / bindings.hh
index be73b51fefa4eb5c69de4cdca7393c5f059e00df..3fbf3b8d773718b6598f95d334738998e8ac8d64 100644 (file)
@@ -6,11 +6,15 @@
   @brief I dunno.. some binding stuff?
 */
 
+#include "actions.hh"
+
 #include <string>
 #include <vector>
 
 namespace ob {
 
+class OBClient;
+
 typedef struct Binding {
   unsigned int modifiers;
   unsigned int key;
@@ -51,11 +55,14 @@ private:
 
   BindingTree *_mousetree; // this tree is a list. it has only siblings
   
-  int find_key(BindingTree *search);
-  bool translate(const std::string &str, Binding &b, bool askey);
-  BindingTree *buildtree(const StringVect &keylist, int id);
-  void OBBindings::assimilate(BindingTree *node);
+  int find_key(BindingTree *search) const;
+  bool translate(const std::string &str, Binding &b, bool askey) const;
+  BindingTree *buildtree(const StringVect &keylist, int id) const;
+  void assimilate(BindingTree *node);
+
+  void grabMouseOnAll(bool grab);
+  void grabKeys(bool grab);
+  
 public:
   //! Initializes an OBBinding object
   OBBindings();
@@ -109,6 +116,11 @@ public:
   //      for reseting too...)
 
   void display();
+
+  void fire(OBActions::ActionType type, Window window, unsigned int modifiers,
+            unsigned int key, Time time);
+
+  void grabMouse(bool grab, const OBClient *client);
 };
 
 }
This page took 0.023341 seconds and 4 git commands to generate.