@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;
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();
// 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);
};
}