summaryrefslogtreecommitdiff
path: root/src/examples/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-04-04 15:09:58 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:46 +0100
commit68de26604c68c05ad9d737bbf010661de7276441 (patch)
tree1a0bdb99dd54e2cf4ec109c65c9c56ad6fe3671e /src/examples/elua
parent137be43b49cf331188db26c77bf62542817083f6 (diff)
elua: start binding Eina
Added initial eina logging module, added library handling utility funcs in util.lua, added .gitignores
Diffstat (limited to 'src/examples/elua')
-rw-r--r--src/examples/elua/.gitignore1
-rw-r--r--src/examples/elua/elm_test.lua12
2 files changed, 12 insertions, 1 deletions
diff --git a/src/examples/elua/.gitignore b/src/examples/elua/.gitignore
new file mode 100644
index 0000000..31b688b
--- /dev/null
+++ b/src/examples/elua/.gitignore
@@ -0,0 +1 @@
*.luac
diff --git a/src/examples/elua/elm_test.lua b/src/examples/elua/elm_test.lua
index 77076d4..95f362b 100644
--- a/src/examples/elua/elm_test.lua
+++ b/src/examples/elua/elm_test.lua
@@ -1,5 +1,12 @@
1local log = require("eina.log")
2
3local dom = log.Domain("elm_test", log.color.LIGHTRED)
4
1local win = elm.Window("test", "Hello World") 5local win = elm.Window("test", "Hello World")
2 6
7dom:log(log.level.INFO, "created window")
8dom:log(log.level.ERR, "error test!")
9
3win:smart_callback_add("delete,request", function() 10win:smart_callback_add("delete,request", function()
4 elm.exit() 11 elm.exit()
5end) 12end)
@@ -35,4 +42,7 @@ end)
35btn:show() 42btn:show()
36 43
37win:resize(360, 360) 44win:resize(360, 360)
38win:show() \ No newline at end of file 45win:show()
46
47dom:log(log.level.INFO, "done initing")
48dom:unregister() \ No newline at end of file