]> icculus.org git repositories - mikachu/openbox.git/blob - src/python.hh
global python scripts. client motion/resizing is all done via python now
[mikachu/openbox.git] / src / python.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef   __python_hh
3 #define   __python_hh
4
5 /*! @file python.hh
6   @brief wee
7 */
8
9 #include "actions.hh"
10 #include "widget.hh"
11
12 extern "C" {
13 #include <Python.h>
14 }
15
16 namespace ob {
17
18 bool python_register(int action, PyObject *callback);
19 bool python_unregister(int action, PyObject *callback);
20
21 void python_callback(OBActions::ActionType action, Window window,
22                      OBWidget::WidgetType type, unsigned int state,
23                      long d1 = LONG_MIN, long d2 = LONG_MIN,
24                      long d3 = LONG_MIN, long d4 = LONG_MIN);
25
26 }
27
28 #endif // __python_hh