summaryrefslogtreecommitdiff
path: root/src/bindings.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings.hh')
-rw-r--r--src/bindings.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bindings.hh b/src/bindings.hh
index 71df3011..8e91b5b6 100644
--- a/src/bindings.hh
+++ b/src/bindings.hh
@@ -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);
};
}