summaryrefslogtreecommitdiff
path: root/bindings/swig/swposition.i
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/swig/swposition.i')
-rw-r--r--bindings/swig/swposition.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/bindings/swig/swposition.i b/bindings/swig/swposition.i
new file mode 100644
index 0000000..d76f616
--- /dev/null
+++ b/bindings/swig/swposition.i
@@ -0,0 +1,15 @@
+%{
+#include "swkey.h"
+using namespace sword;
+%}
+
+class SW_POSITION {
+public:
+ SW_POSITION(char ipos);
+};
+
+%define POS_TOP ((char)1)
+%define POS_BOTTOM ((char)2)
+
+%define TOP SW_POSITION(POS_TOP)
+%define BOTTOM SW_POSITION(POS_BOTTOM)