summaryrefslogtreecommitdiff
path: root/otk/otk.i
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-24 21:27:16 +0000
committerDana Jansens <danakj@orodu.net>2002-12-24 21:27:16 +0000
commit5869cc29ef15181427e65079d9a52c5d21190206 (patch)
tree383c3373beab350f66cb4fa64dcc6aac262cbd3b /otk/otk.i
parent2e273ae3ac020cc6a43c37942089b3eb7d214102 (diff)
wrap otk with swig/python
Diffstat (limited to 'otk/otk.i')
-rw-r--r--otk/otk.i81
1 files changed, 81 insertions, 0 deletions
diff --git a/otk/otk.i b/otk/otk.i
new file mode 100644
index 00000000..9fcd5b6c
--- /dev/null
+++ b/otk/otk.i
@@ -0,0 +1,81 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+%module otk
+
+%{
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
+#include "application.hh"
+#include "appwidget.hh"
+#include "assassin.hh"
+#include "button.hh"
+#include "color.hh"
+#include "configuration.hh"
+#include "display.hh"
+#include "eventdispatcher.hh"
+#include "eventhandler.hh"
+#include "focuslabel.hh"
+#include "focuswidget.hh"
+#include "font.hh"
+#include "gccache.hh"
+#include "image.hh"
+#include "label.hh"
+#include "point.hh"
+#include "property.hh"
+#include "rect.hh"
+#include "screeninfo.hh"
+#include "strut.hh"
+#include "style.hh"
+#include "texture.hh"
+#include "timer.hh"
+#include "timerqueue.hh"
+#include "timerqueuemanager.hh"
+#include "util.hh"
+#include "widget.hh"
+%}
+
+%include stl.i
+//%include std_list.i
+
+namespace otk {
+%rename(setValue_bool) Configuration::setValue(std::string const &,bool);
+%rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int);
+%rename(setValue_long) Configuration::setValue(const std::string &, long);
+%rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long);
+%rename(setValue_string) Configuration::setValue(const std::string &, const std::string &);
+%rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);
+
+%rename(itostring_unsigned) itostring(unsigned int);
+%rename(itostring_long) itostring(long);
+%rename(itostring_unsigned_long) itostring(unsigned long);
+}
+
+%include "eventdispatcher.hh"
+%include "eventhandler.hh"
+%include "widget.hh"
+%include "focuswidget.hh"
+%include "focuslabel.hh"
+%include "appwidget.hh"
+%include "application.hh"
+%include "assassin.hh"
+%include "button.hh"
+%include "color.hh"
+%include "configuration.hh"
+%include "display.hh"
+%include "font.hh"
+%include "gccache.hh"
+%include "image.hh"
+%include "label.hh"
+%include "point.hh"
+%include "property.hh"
+%include "rect.hh"
+%include "screeninfo.hh"
+%include "strut.hh"
+%include "style.hh"
+%include "texture.hh"
+%include "timer.hh"
+%include "timerqueue.hh"
+%include "timerqueuemanager.hh"
+%include "util.hh"