-//! Add a python callback funtion to the back of the hook list
-bool python_register(int action, PyObject *callback);
-//! Add a python callback funtion to the front of the hook list
-bool python_preregister(int action, PyObject *callback);
-//! Remove a python callback function from the hook list
-bool python_unregister(int action, PyObject *callback);
-
-//! Removes all python callback functions from the hook list
-bool python_unregister_all(int action);
-
-//! Add a keybinding
-/*!
- @param keylist A python list of modifier/key/buttons, in the form:
- "C-A-space" or "A-Button1" etc.
- @param callback A python function to call when the binding is used.
-*/
-bool python_bind_key(PyObject *keylist, PyObject *callback);
+class Client;
+
+struct MouseContext {
+ enum MC {
+ Frame,
+ Titlebar,
+ Handle,
+ Window,
+ IconButton,
+ MaximizeButton,
+ CloseButton,
+ IconifyButton,
+ AllDesktopsButton,
+ Grip,
+ Root,
+ MenuItem
+#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+ , NUM_MOUSE_CONTEXT
+#endif
+ };
+};
+
+struct MouseAction {
+ enum MA {
+ Press,
+ Release,
+ Click,
+ DoubleClick,
+ Motion
+#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+ , NUM_MOUSE_ACTION
+#endif
+ };
+};
+
+struct KeyContext {
+ enum KC {
+ Menu,
+ All
+#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+ , NUM_KEY_CONTEXT
+#endif
+ };
+};
+
+struct KeyAction {
+ enum KA {
+ Press,
+ Release
+#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+ , NUM_KEY_ACTION
+#endif
+ };
+};
+
+struct EventAction {
+ enum EA {
+ EnterWindow, //!< Occurs when the mouse enters a window
+ LeaveWindow, //!< Occurs when the mouse leaves a window
+ //! Occurs while a window is being managed. The handler should call
+ //! Client::move on the window
+ PlaceWindow,
+ //! Occurs while a window is being managed, just before the window is
+ //! displayed
+ /*!
+ Note that the window's state may not be completely stabilized by this
+ point. The NewWindow event should be used when possible.
+ */
+ DisplayingWindow,
+ //! Occurs when a window is finished being managed
+ NewWindow,
+ //! Occurs when a window has been closed and is going to be unmanaged
+ CloseWindow,
+ //! Occurs when the window manager manages a screen
+ /*!
+ This event occurs on each managed screen during startup.
+ */
+ Startup,
+ //! Occurs when the window manager unmanages a screen
+ /*!
+ This event occurs on each managed screen during shutdown.
+ */
+ Shutdown,
+ //! Occurs when the input focus target changes
+ /*!
+ The data.client will be None of no client is focused.
+ */
+ Focus,
+ //! Occurs when the system is fired through X.
+ /*!
+ The data.client will hold the client associated with the bell if
+ one has been specified, or None.
+ */
+ Bell,
+ //! Occurs when a client toggles its urgent status.
+ /*!
+ The Client::urgent method can be used to get the status.
+ */
+ UrgentWindow
+#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+ , NUM_EVENT_ACTION
+#endif
+ };
+};