summaryrefslogtreecommitdiff
path: root/iup/srclua3/spin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srclua3/spin.lua')
-rwxr-xr-xiup/srclua3/spin.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/iup/srclua3/spin.lua b/iup/srclua3/spin.lua
new file mode 100755
index 0000000..b0b23fc
--- /dev/null
+++ b/iup/srclua3/spin.lua
@@ -0,0 +1,24 @@
+IUPSPIN = {parent = WIDGET}
+
+function IUPSPIN:CreateIUPelement (obj)
+ return iupCreateSpin ()
+end
+
+function iupspin (o)
+ return IUPSPIN:Constructor (o)
+end
+iup.spin = iupspin
+
+IUPSPINBOX = {parent = WIDGET}
+
+function IUPSPINBOX:CreateIUPelement (obj)
+ return iupCreateSpinbox (obj[1])
+end
+
+function iupspinbox (o)
+ return IUPSPINBOX:Constructor (o)
+end
+iup.spinbox = iupspinbox
+
+iup_callbacks.spincb = {"SPIN_CB", iup_spin_cb}
+iup_callbacks.spin_cb = iup_callbacks.spincb