summaryrefslogtreecommitdiff
path: root/iup/srclua3/dial.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/srclua3/dial.lua
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/srclua3/dial.lua')
-rwxr-xr-xiup/srclua3/dial.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/iup/srclua3/dial.lua b/iup/srclua3/dial.lua
new file mode 100755
index 0000000..ee2c488
--- /dev/null
+++ b/iup/srclua3/dial.lua
@@ -0,0 +1,15 @@
+IUPDIAL = {parent = WIDGET}
+
+function IUPDIAL:CreateIUPelement (obj)
+ return iupCreateDial (obj[1])
+end
+
+function iupdial (o)
+ return IUPDIAL:Constructor (o)
+end
+iup.dial = iupdial
+
+iup_callbacks.mousemove.dial = iup_val_mousemove_cb -- same callback at IupVal
+
+-- iup_callbacks.buttonpress = {"BUTTON_PRESS_CB", iup_val_button_press_cb} -- same callback at IupVal
+-- iup_callbacks.buttonrelease = {"BUTTON_RELEASE_CB", iup_val_button_release_cb} -- same callback at IupVal