extern "C" {
#include <X11/Xlib.h>
-#include <Python.h>
}
#include <string>
#include <vector>
+
namespace ob {
class Client;
Titlebar,
Handle,
Window,
+ IconButton,
MaximizeButton,
CloseButton,
IconifyButton,
Grip,
Root,
MenuItem
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_MOUSE_CONTEXT
#endif
};
Click,
DoubleClick,
Motion
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_MOUSE_ACTION
#endif
};
enum KC {
Menu,
All
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_KEY_CONTEXT
#endif
};
enum KA {
Press,
Release
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_KEY_ACTION
#endif
};
The Client::urgent method can be used to get the status.
*/
UrgentWindow
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_EVENT_ACTION
#endif
};
typedef void (*KeyCallback)(KeyData*, void*);
typedef void (*EventCallback)(EventData*, void*);
-#ifndef SWIG
-
void python_init(char *argv0);
void python_destroy();
-bool python_exec(const std::string &path);
+//! Returns 0 for success, 1 for failing to open the file, 2 for an exception
+int python_exec(const std::string &path);
bool python_get_long(const char *name, long *value);
bool python_get_string(const char *name, otk::ustring *value);
bool python_get_stringlist(const char *name, std::vector<otk::ustring> *value);
-#endif // SWIG
-
}