aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-20 14:33:53 +1000
committerDavid Walter Seikel2014-03-20 14:33:53 +1000
commitae15c08a2205c5934bee8f1ee942180be402c32f (patch)
tree3b3f20aa3e0eaf3054d936a2a3e19d3d6a53644e /ClientHamr/GuiLua/skang.lua
parentMore tests. (diff)
downloadSledjHamr-ae15c08a2205c5934bee8f1ee942180be402c32f.zip
SledjHamr-ae15c08a2205c5934bee8f1ee942180be402c32f.tar.gz
SledjHamr-ae15c08a2205c5934bee8f1ee942180be402c32f.tar.bz2
SledjHamr-ae15c08a2205c5934bee8f1ee942180be402c32f.tar.xz
Move skang specific notes inte skang.lua.
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua52
1 files changed, 52 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 25aedac..1b0a199 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -1,3 +1,55 @@
1-- TODO - This should be in C, but so far development has been quite rapid doing it in Lua.
2--[[
3In here should live all the internals of matrix-RAD that don't
4specifically relate to widgets. This would include the "window" though.
5
6skang.module(Evas)
7skang.module(Elementary)
8skang.skang('some/skang/file.skang')
9
10This package is also what "apps" that use the system should "inherit"
11from, in the same way matrix-RAD apps did. Skang "apps" could be Lua
12modules. They could also be C code, like the extantz modules are likely
13to be. Skang "apps" would automatically be associated with skang files
14of the same name.
15
16For a .skang file, the skang command (written in C) would strip off the
17first line, add the two implied lines, then run it as Lua. The
18skang.load() command would do the same. So that skang C comand would
19just pass the file name to skang.load() in this library. B-)
20
21The old skang argument types are -
22
23 {"name", "java.lang.String"},
24 {"action", "java.lang.String"},
25 {"type", "java.lang.String"},
26 {"data", "java.lang.String"},
27 {"URL", "java.lang.String"},
28 {"file", "java.lang.String"},
29 {"method", "java.lang.String"},
30 {"lx", "java.lang.String"},
31 {"ly", "java.lang.String"},
32 {"lw", "java.lang.String"},
33 {"lh", "java.lang.String"},
34 {"normal", "java.lang.String"},
35 {"ghost", "java.lang.String"},
36 {"active", "java.lang.String"},
37 {"toggle", "java.lang.String"},
38 {"boolean","java.lang.Boolean"},
39 {"number", "java.lang.Integer"},
40 {"int", "java.lang.Integer"},
41 {"x", "java.lang.Integer"},
42 {"y", "java.lang.Integer"},
43 {"w", "java.lang.Integer"},
44 {"h", "java.lang.Integer"},
45 {"r", "java.lang.Integer"},
46 {"g", "java.lang.Integer"},
47 {"b", "java.lang.Integer"},
48 {"alpha", "java.lang.Integer"},
49 {"acl", "net.matrix_rad.security.ACL"},
50]]
51
52
1-- Trying to capture best practices here for creating modules, especially since module() is broken and deprecated. 53-- Trying to capture best practices here for creating modules, especially since module() is broken and deprecated.
2 54
3-- Wrapping the entire module in do .. end helps if people just join a bunch of modules together, which apparently is popular. 55-- Wrapping the entire module in do .. end helps if people just join a bunch of modules together, which apparently is popular.